guard-jslint-on-rails 0.0.1 → 0.0.2

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/guard/jslint-on-rails.rb +4 -3
  2. metadata +3 -3
@@ -4,7 +4,7 @@ require 'guard/guard'
4
4
  puts 'loading'
5
5
  module Guard
6
6
  class JslintOnRails < Guard
7
- VERSION = '0.0.1'
7
+ VERSION = '0.0.2'
8
8
 
9
9
  # def initialize(watchers = [], options = {})
10
10
  # @process = nil
@@ -47,8 +47,9 @@ module Guard
47
47
  # end
48
48
 
49
49
  def run_on_change(paths)
50
- puts paths.inspect
51
- reload
50
+ puts "Running JSLint:"
51
+ result = system "rake jslint paths=#{paths.join(',')}"
52
+ raise 'JSLint Failure' unless result
52
53
  end
53
54
  end
54
55
  end
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: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Sonnek