some fixes for bad things. i'm sad
This commit is contained in:
parent
bad6839760
commit
4f11cba073
1
Gemfile
1
Gemfile
@ -15,7 +15,6 @@ gem 'guard-cucumber'
|
|||||||
require 'rbconfig'
|
require 'rbconfig'
|
||||||
case RbConfig::CONFIG['host_os']
|
case RbConfig::CONFIG['host_os']
|
||||||
when /darwin/
|
when /darwin/
|
||||||
gem 'rb-fsevent'
|
|
||||||
when /linux/
|
when /linux/
|
||||||
gem 'libnotify'
|
gem 'libnotify'
|
||||||
end
|
end
|
||||||
|
2
Rakefile
2
Rakefile
@ -14,7 +14,7 @@ require 'jasmine/headless/task'
|
|||||||
|
|
||||||
Jasmine::Headless::Task.new
|
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 = '')
|
def rvm_bundle(command = '')
|
||||||
Bundler.with_clean_env do
|
Bundler.with_clean_env do
|
||||||
|
@ -24,5 +24,5 @@ Gem::Specification.new do |s|
|
|||||||
s.add_runtime_dependency 'coffee-script'
|
s.add_runtime_dependency 'coffee-script'
|
||||||
s.add_runtime_dependency 'rainbow'
|
s.add_runtime_dependency 'rainbow'
|
||||||
s.add_runtime_dependency 'multi_json'
|
s.add_runtime_dependency 'multi_json'
|
||||||
s.add_runtime_dependency 'sprockets', '~> 2'
|
s.add_runtime_dependency 'sprockets', '>= 2'
|
||||||
end
|
end
|
||||||
|
@ -35,13 +35,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var location = window.location.href;
|
||||||
|
|
||||||
var getLastModified = function(callback) {
|
var getLastModified = function(callback) {
|
||||||
var http = new XMLHttpRequest();
|
var http = new XMLHttpRequest();
|
||||||
var header;
|
var header;
|
||||||
|
|
||||||
http.open('HEAD', window.location.href, false);
|
http.open('HEAD', location, true);
|
||||||
|
|
||||||
http.onreadystatechange = function() {
|
http.onreadystatechange = function() {
|
||||||
|
console.log(http);
|
||||||
|
console.log(http.getResponseHeader('Last-Modified'));
|
||||||
callback(http.getResponseHeader('Last-Modified'));
|
callback(http.getResponseHeader('Last-Modified'));
|
||||||
};
|
};
|
||||||
http.send();
|
http.send();
|
||||||
|
Loading…
Reference in New Issue
Block a user