jslint-v8 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jslint-v8 (1.1.0)
5
- therubyracer (~> 0.9.4)
4
+ jslint-v8 (1.1.1)
5
+ therubyracer (~> 0.10.0)
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
@@ -10,7 +10,7 @@ GEM
10
10
  libv8 (3.3.10.4)
11
11
  rake (0.9.2.2)
12
12
  test-unit (2.4.5)
13
- therubyracer (0.9.9)
13
+ therubyracer (0.10.1)
14
14
  libv8 (~> 3.3.10)
15
15
 
16
16
  PLATFORMS
@@ -2,14 +2,14 @@
2
2
 
3
3
  # Description
4
4
 
5
- JSLintV8 is simply a ruby wrapper that helps you run JSLint as an automated
5
+ jslint-v8 is simply a ruby wrapper that helps you run JSHint as an automated
6
6
  code quality standards tool inside your projects. It's geared towards being run
7
7
  in a continuous integration process (CI), such as Jenkins.
8
8
 
9
9
  While it is focused on Ruby projects it can just as easily be used for any other
10
10
  language out there so long as you have Ruby installed on your system.
11
11
 
12
- Like it's name implies we run JSLint on the JavaScript V8 interpreter so, in
12
+ Like it's name implies we run JSHint on the JavaScript V8 interpreter so, in
13
13
  other words, it runs really really fast.
14
14
 
15
15
  # How to use
@@ -20,7 +20,11 @@ other words, it runs really really fast.
20
20
 
21
21
  3. Run the following command ```jslint-v8 path/to/file.js```
22
22
 
23
- For full details on using the command line interface simply type ```jslint-v8```
23
+ For full details on using the command line interface simply type ```jslint-v8 --help``` into your console
24
+
25
+ # Default options
26
+
27
+ You can see which options are enabled by default by examining the output of ```jslint-v8 --help```
24
28
 
25
29
  # Rake Task
26
30
 
@@ -34,18 +38,40 @@ a set of files. Inside your Rakefile add the following:
34
38
  namespace :js do
35
39
  JSLintV8::RakeTask.new do |task|
36
40
  task.name = "lint"
41
+ task.description = "runs jslint against all important javascript files"
42
+
43
+ task.output_stream = STDOUT
44
+
37
45
  task.include_pattern = "app/javascripts/**/*.js"
38
46
  task.exclude_pattern = "app/javascripts/{generated,lib}/**/*.js"
47
+
48
+ # pass boolean options to jshint like this, these are merged with the default options
49
+ task.jquery = true # predefine jQuery globals
50
+ task.browser = true # predefine Browser globals
51
+ task.bitwise = false # allow bitwise operators to be used
52
+
53
+ # or just access the options hash directly, be sure to use strings for keys
54
+ task.lint_options["strict"] = true
39
55
  end
40
56
  end
41
57
  ```
42
58
 
43
- Modify the settings as needed. This code will make a task "js:lint" which will
44
- run against all javascript files under ```app/javascripts``` except under
45
- ```app/javascripts/lib``` and ```app/javascripts/generated```
59
+ Modify the above as needed.
60
+
61
+ The code above:
62
+
63
+ - generates a rake task named "js:lint" with the given description
64
+ - write results to standard output (STDOUT)
65
+ - run against all javascript files under ```app/javascripts``` except under ```app/javascripts/lib``` and ```app/javascripts/generated```
66
+ - runs with all the default jshint options enabled except bitwise, but also enabling strict, jquery and browser
46
67
 
47
68
  # Contributing
48
69
 
49
70
  Whatever works, but my preference is for you to fork this repository on github
50
71
  and write your changes on a separate branch. When finished you can send them
51
- to me by issuing a pull request.
72
+ to me by issuing a pull request.
73
+
74
+ # Feature Requests / Suggestions
75
+
76
+ You can open up an Issue here on Github or if you'd prefer send me a message
77
+ here on Github, please try and give me a good use case for your feature request / suggestion.
@@ -3,7 +3,7 @@ module JSLintV8
3
3
  module Version
4
4
  MAJOR = 1
5
5
  MINOR = 1
6
- PATCH = 0
6
+ PATCH = 1
7
7
  BUILD = nil
8
8
 
9
9
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jslint-v8
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-02 00:00:00.000000000 Z
12
+ date: 2012-04-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: therubyracer
16
- requirement: &71601450 !ruby/object:Gem::Requirement
16
+ requirement: &70136160 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 0.9.4
21
+ version: 0.10.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *71601450
24
+ version_requirements: *70136160
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &71601100 !ruby/object:Gem::Requirement
27
+ requirement: &70135870 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *71601100
35
+ version_requirements: *70135870
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: test-unit
38
- requirement: &71600860 !ruby/object:Gem::Requirement
38
+ requirement: &70135600 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *71600860
46
+ version_requirements: *70135600
47
47
  description: Ruby gem wrapper for a jslint cli. Uses the The Ruby Racer library for
48
48
  performance reasons targeted for usage in CI environments and backed up with a full
49
49
  test suite.
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  requirements: []
95
95
  rubyforge_project:
96
- rubygems_version: 1.8.10
96
+ rubygems_version: 1.8.17
97
97
  signing_key:
98
98
  specification_version: 3
99
99
  summary: JSLint CLI and rake tasks via therubyracer (JavaScript V8 gem)