From 4f11cba0730abcd0e3e607cd7673604efcb28b85 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Fri, 3 Feb 2012 15:12:28 -0500 Subject: [PATCH] some fixes for bad things. i'm sad --- Gemfile | 1 - Rakefile | 2 +- jasmine-headless-webkit.gemspec | 2 +- skel/template.html.erb | 6 +++++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index eaf2cd4..b736b0d 100644 --- a/Gemfile +++ b/Gemfile @@ -15,7 +15,6 @@ gem 'guard-cucumber' require 'rbconfig' case RbConfig::CONFIG['host_os'] when /darwin/ - gem 'rb-fsevent' when /linux/ gem 'libnotify' end diff --git a/Rakefile b/Rakefile index def34d7..3dcac83 100644 --- a/Rakefile +++ b/Rakefile @@ -14,7 +14,7 @@ require 'jasmine/headless/task' Jasmine::Headless::Task.new -PLATFORMS = %w{1.8.7 1.9.2 ree 1.9.3} +PLATFORMS = %w{1.9.2 1.9.3} def rvm_bundle(command = '') Bundler.with_clean_env do diff --git a/jasmine-headless-webkit.gemspec b/jasmine-headless-webkit.gemspec index 2a6c27e..56d70af 100644 --- a/jasmine-headless-webkit.gemspec +++ b/jasmine-headless-webkit.gemspec @@ -24,5 +24,5 @@ Gem::Specification.new do |s| s.add_runtime_dependency 'coffee-script' s.add_runtime_dependency 'rainbow' s.add_runtime_dependency 'multi_json' - s.add_runtime_dependency 'sprockets', '~> 2' + s.add_runtime_dependency 'sprockets', '>= 2' end diff --git a/skel/template.html.erb b/skel/template.html.erb index e3ba9ff..930fc10 100644 --- a/skel/template.html.erb +++ b/skel/template.html.erb @@ -35,13 +35,17 @@ } } + var location = window.location.href; + var getLastModified = function(callback) { var http = new XMLHttpRequest(); var header; - http.open('HEAD', window.location.href, false); + http.open('HEAD', location, true); http.onreadystatechange = function() { + console.log(http); + console.log(http.getResponseHeader('Last-Modified')); callback(http.getResponseHeader('Last-Modified')); }; http.send();