The single-file lib/jasmine.js no longer has a version number in the filename. We'll make it available for download with the version number seperately.

Add lint check for 'window'.
Remove last 'window' reference.
This commit is contained in:
Lee Byrd & Christian Williams 2010-06-23 11:31:38 -07:00
parent ed47ececa9
commit 8f5f6a6d27
5 changed files with 13 additions and 2324 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
.idea/
.svn/
lib/jasmine-*.js

View File

@ -46,6 +46,11 @@ namespace :jasmine do
puts "Dangerous undefined at #{src}:#{i}:\n > #{line}"
passed = false
end
if line.scan(/window/).length > 0
puts "Dangerous window at #{src}:#{i}:\n > #{line}"
passed = false
end
end
end
@ -64,11 +69,9 @@ namespace :jasmine do
version = version_hash
old_jasmine_files = Dir.glob('lib/jasmine*.js')
old_jasmine_files.each do |file|
File.delete(file)
end
old_jasmine_files.each { |file| File.delete(file) }
jasmine = File.new("lib/#{jasmine_filename version}", 'w')
jasmine = File.new("lib/jasmine.js", 'w')
sources.each do |source_filename|
jasmine.puts(File.read(source_filename))
@ -84,6 +87,8 @@ jasmine.version_= {
}
jasmine.close
FileUtils.cp("lib/jasmine.js", "lib/#{jasmine_filename version}")
end
desc "Build jasmine documentation"

File diff suppressed because it is too large Load Diff

View File

@ -50,7 +50,7 @@ jasmine.bindOriginal_ = function(base, name) {
};
} else {
// IE support
return window[name];
return jasmine.getGlobal()[name];
}
};
@ -2313,5 +2313,5 @@ jasmine.version_= {
"major": 0,
"minor": 11,
"build": 0,
"revision": 1277317401
"revision": 1277317833
};

View File

@ -50,7 +50,7 @@ jasmine.bindOriginal_ = function(base, name) {
};
} else {
// IE support
return window[name];
return jasmine.getGlobal()[name];
}
};