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.
Files changed (3) hide show
  1. data/README.md +1 -1
  2. data/lib/guard/jslint-on-rails.rb +3 -3
  3. metadata +4 -4
data/README.md CHANGED
@@ -21,7 +21,7 @@ gem 'guard-jslint-on-rails'
21
21
 
22
22
  Add guard definition to your Guardfile by running this command:
23
23
 
24
- $ guard init guard-jslint-on-rails
24
+ $ guard init jslint-on-rails
25
25
 
26
26
  Configuration
27
27
  -------------
@@ -5,19 +5,19 @@ require 'jslint'
5
5
 
6
6
  module Guard
7
7
  class JslintOnRails < Guard
8
- VERSION = '0.0.7'
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: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
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-14 00:00:00 Z
18
+ date: 2011-09-21 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: guard