jshintrb 0.2.2 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/jshintrb/lint.rb CHANGED
@@ -45,7 +45,7 @@ module Jshintrb
45
45
 
46
46
  @globals = globals
47
47
 
48
- @context = ExecJS.compile(File.open(SourcePath, "r:UTF-8").read)
48
+ @context = ExecJS.compile("var window = {};\n" + File.open(SourcePath, "r:UTF-8").read)
49
49
  end
50
50
 
51
51
  def lint(source)
@@ -1,4 +1,4 @@
1
1
  module Jshintrb
2
- VERSION = "0.2.2"
3
- SUBMODULE = "f31118b78877f2c64b07a30934424512762e6af7"
2
+ VERSION = "0.2.4"
3
+ SUBMODULE = "d459a40914a26c566ba82bb145e97573ff123879"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jshintrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - stereobooster
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-13 00:00:00.000000000 Z
11
+ date: 2013-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec