jslint-v8 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +0 -1
 - data/lib/jslint-v8/js/jslint.js +3886 -538
 - data/lib/jslint-v8/runner.rb +2 -2
 - data/lib/jslint-v8/version.rb +1 -1
 - data/test/test_cli.rb +2 -1
 - data/test/test_runner.rb +1 -0
 - metadata +6 -8
 
    
        data/lib/jslint-v8/runner.rb
    CHANGED
    
    | 
         @@ -53,11 +53,11 @@ module JSLintV8 
     | 
|
| 
       53 
53 
     | 
    
         
             
                  end
         
     | 
| 
       54 
54 
     | 
    
         | 
| 
       55 
55 
     | 
    
         
             
                  def jslint_function
         
     | 
| 
       56 
     | 
    
         
            -
                     runtime[" 
     | 
| 
      
 56 
     | 
    
         
            +
                     runtime["JSHINT"];
         
     | 
| 
       57 
57 
     | 
    
         
             
                  end
         
     | 
| 
       58 
58 
     | 
    
         | 
| 
       59 
59 
     | 
    
         
             
                  def jslint_result
         
     | 
| 
       60 
     | 
    
         
            -
                     runtime[" 
     | 
| 
      
 60 
     | 
    
         
            +
                     runtime["JSHINT"]["errors"].to_a.compact.map do |error_object|
         
     | 
| 
       61 
61 
     | 
    
         
             
                        JSLintV8::LintError.new(error_object)
         
     | 
| 
       62 
62 
     | 
    
         
             
                     end
         
     | 
| 
       63 
63 
     | 
    
         
             
                  end
         
     | 
    
        data/lib/jslint-v8/version.rb
    CHANGED
    
    
    
        data/test/test_cli.rb
    CHANGED
    
    | 
         @@ -34,8 +34,9 @@ class TestCli < Test::Unit::TestCase 
     | 
|
| 
       34 
34 
     | 
    
         
             
                defined_options = js_filename("defined-options")
         
     | 
| 
       35 
35 
     | 
    
         
             
                invalid = js_filename("invalid")
         
     | 
| 
       36 
36 
     | 
    
         
             
                valid = js_filename("valid")
         
     | 
| 
      
 37 
     | 
    
         
            +
                forloop = js_filename("forloop")
         
     | 
| 
       37 
38 
     | 
    
         | 
| 
       38 
     | 
    
         
            -
                result = %x{#{Executable} "#{defined_globals}" "#{defined_options}" "#{invalid}" "#{valid}"}
         
     | 
| 
      
 39 
     | 
    
         
            +
                result = %x{#{Executable} "#{defined_globals}" "#{defined_options}" "#{forloop}" "#{invalid}" "#{valid}" }
         
     | 
| 
       39 
40 
     | 
    
         | 
| 
       40 
41 
     | 
    
         
             
                assert_equal false, $?.success?
         
     | 
| 
       41 
42 
     | 
    
         
             
                assert_equal erb_fixture("cli-suite-expected-output"), result
         
     | 
    
        data/test/test_runner.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,13 +1,13 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification 
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: jslint-v8
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       4 
     | 
    
         
            -
              hash:  
     | 
| 
      
 4 
     | 
    
         
            +
              hash: 21
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: 
         
     | 
| 
       6 
6 
     | 
    
         
             
              segments: 
         
     | 
| 
       7 
7 
     | 
    
         
             
              - 1
         
     | 
| 
       8 
8 
     | 
    
         
             
              - 0
         
     | 
| 
       9 
     | 
    
         
            -
              -  
     | 
| 
       10 
     | 
    
         
            -
              version: 1.0. 
     | 
| 
      
 9 
     | 
    
         
            +
              - 1
         
     | 
| 
      
 10 
     | 
    
         
            +
              version: 1.0.1
         
     | 
| 
       11 
11 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       12 
12 
     | 
    
         
             
            authors: 
         
     | 
| 
       13 
13 
     | 
    
         
             
            - William Howard
         
     | 
| 
         @@ -15,8 +15,7 @@ autorequire: 
     | 
|
| 
       15 
15 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       16 
16 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       17 
17 
     | 
    
         | 
| 
       18 
     | 
    
         
            -
            date: 2011-08- 
     | 
| 
       19 
     | 
    
         
            -
            default_executable: jslint-v8
         
     | 
| 
      
 18 
     | 
    
         
            +
            date: 2011-08-31 00:00:00 Z
         
     | 
| 
       20 
19 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       21 
20 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       22 
21 
     | 
    
         
             
              name: therubyracer
         
     | 
| 
         @@ -71,12 +70,12 @@ extensions: [] 
     | 
|
| 
       71 
70 
     | 
    
         
             
            extra_rdoc_files: 
         
     | 
| 
       72 
71 
     | 
    
         
             
            - README.markdown
         
     | 
| 
       73 
72 
     | 
    
         
             
            files: 
         
     | 
| 
       74 
     | 
    
         
            -
            - lib/jslint-v8.rb
         
     | 
| 
       75 
73 
     | 
    
         
             
            - lib/jslint-v8/formatter.rb
         
     | 
| 
       76 
74 
     | 
    
         
             
            - lib/jslint-v8/runner.rb
         
     | 
| 
       77 
75 
     | 
    
         
             
            - lib/jslint-v8/rake_task.rb
         
     | 
| 
       78 
76 
     | 
    
         
             
            - lib/jslint-v8/lint_error.rb
         
     | 
| 
       79 
77 
     | 
    
         
             
            - lib/jslint-v8/version.rb
         
     | 
| 
      
 78 
     | 
    
         
            +
            - lib/jslint-v8.rb
         
     | 
| 
       80 
79 
     | 
    
         
             
            - lib/jslint-v8/js/jslint.js
         
     | 
| 
       81 
80 
     | 
    
         
             
            - Gemfile
         
     | 
| 
       82 
81 
     | 
    
         
             
            - Gemfile.lock
         
     | 
| 
         @@ -89,7 +88,6 @@ files: 
     | 
|
| 
       89 
88 
     | 
    
         
             
            - test/suite.rb
         
     | 
| 
       90 
89 
     | 
    
         
             
            - test/test_formatter.rb
         
     | 
| 
       91 
90 
     | 
    
         
             
            - test/test_cli.rb
         
     | 
| 
       92 
     | 
    
         
            -
            has_rdoc: true
         
     | 
| 
       93 
91 
     | 
    
         
             
            homepage: http://github.com/whoward/jslint-v8
         
     | 
| 
       94 
92 
     | 
    
         
             
            licenses: []
         
     | 
| 
       95 
93 
     | 
    
         | 
| 
         @@ -119,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       119 
117 
     | 
    
         
             
            requirements: []
         
     | 
| 
       120 
118 
     | 
    
         | 
| 
       121 
119 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       122 
     | 
    
         
            -
            rubygems_version: 1. 
     | 
| 
      
 120 
     | 
    
         
            +
            rubygems_version: 1.8.6
         
     | 
| 
       123 
121 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       124 
122 
     | 
    
         
             
            specification_version: 3
         
     | 
| 
       125 
123 
     | 
    
         
             
            summary: JSLint CLI and rake tasks via therubyracer (JavaScript V8 gem)
         
     |