guard-jslint-on-rails 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/guard/jslint-on-rails.rb +3 -3
- metadata +4 -4
data/README.md
CHANGED
@@ -5,19 +5,19 @@ require 'jslint'
|
|
5
5
|
|
6
6
|
module Guard
|
7
7
|
class JslintOnRails < Guard
|
8
|
-
VERSION = '0.0.
|
8
|
+
VERSION = '0.0.8'
|
9
9
|
|
10
10
|
def run_on_change(paths)
|
11
11
|
error = nil
|
12
12
|
begin
|
13
13
|
output = capture_output do
|
14
|
-
lint = JSLint::Lint.new(
|
14
|
+
lint = ::JSLint::Lint.new(
|
15
15
|
:paths => paths,
|
16
16
|
:config_path => File.join(Dir.pwd, 'config', 'jslint.yml')
|
17
17
|
)
|
18
18
|
lint.run
|
19
19
|
end
|
20
|
-
rescue JSLint::LintCheckFailure => e
|
20
|
+
rescue ::JSLint::LintCheckFailure => e
|
21
21
|
error = e
|
22
22
|
end
|
23
23
|
Notifier.notify((error ? 'failed' : 'passed'), :title => 'JSLint results', :image => (error ? :failed : :success))
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-jslint-on-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Sonnek
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-09-
|
18
|
+
date: 2011-09-21 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: guard
|