jslintrb_v8 0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/jslintrb-v8.rb +17 -0
  2. metadata +12 -8
data/lib/jslintrb-v8.rb CHANGED
@@ -16,6 +16,23 @@ require 'v8'
16
16
  # Pass options into the constructor:
17
17
  #
18
18
  # JSLint.new(:undef => false, :sub => true)
19
+ #
20
+ # Here is an example rake task:
21
+ # require 'jslintrb-v8'
22
+ # task :jslint do
23
+ # jsl = JSLint.new(:undef => false, :strict => false, :nomen => false, :onevar => false, :newcap => false)
24
+ # errors = []
25
+ # Dir['javascript', '**', '*.js'].each do |f|
26
+ # e = jsl.check(File.read(f))
27
+ # errors << "\nIn [#{f}]:\n#{e}\n" if e
28
+ # end
29
+ # if errors.empty?
30
+ # puts "JSLinty-fresh!"
31
+ # else
32
+ # raise "JSLint Errors Found"
33
+ # end
34
+ # end
35
+ #
19
36
  class JSLint
20
37
  # if ADsafe should be enforced
21
38
  attr_accessor :adsafe
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jslintrb_v8
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 23
5
+ prerelease:
5
6
  segments:
6
- - 0
7
7
  - 1
8
8
  - 0
9
- version: 0.1.0
9
+ - 0
10
+ version: 1.0.0
10
11
  platform: ruby
11
12
  authors:
12
13
  - Nick Gauthier
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-11-15 00:00:00 -05:00
18
+ date: 2011-02-23 00:00:00 -05:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
@@ -25,11 +26,12 @@ dependencies:
25
26
  requirements:
26
27
  - - "="
27
28
  - !ruby/object:Gem::Version
29
+ hash: 63
28
30
  segments:
29
31
  - 0
30
- - 7
31
- - 5
32
- version: 0.7.5
32
+ - 8
33
+ - 0
34
+ version: 0.8.0
33
35
  type: :runtime
34
36
  version_requirements: *id001
35
37
  description:
@@ -58,6 +60,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
58
60
  requirements:
59
61
  - - ">="
60
62
  - !ruby/object:Gem::Version
63
+ hash: 3
61
64
  segments:
62
65
  - 0
63
66
  version: "0"
@@ -66,13 +69,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
69
  requirements:
67
70
  - - ">="
68
71
  - !ruby/object:Gem::Version
72
+ hash: 3
69
73
  segments:
70
74
  - 0
71
75
  version: "0"
72
76
  requirements: []
73
77
 
74
78
  rubyforge_project:
75
- rubygems_version: 1.3.7
79
+ rubygems_version: 1.5.2
76
80
  signing_key:
77
81
  specification_version: 3
78
82
  summary: Run JSLint from Ruby