guard-jslint-on-rails 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ Guard::JslintOnRails
2
+ =============
3
+
4
+ Guard plugin to verify that Javascript files comply with [JSLint](http://www.jslint.com/) validations.
5
+
6
+
7
+ Install
8
+ -------
9
+
10
+ Install and configure the [JSLint on Rails](https://github.com/psionides/jslint_on_rails) gem
11
+
12
+ Install the gem:
13
+
14
+ $ gem install guard-jslint-on-rails
15
+
16
+ Add it to your Gemfile (inside development group):
17
+
18
+ ``` ruby
19
+ gem 'guard-jslint-on-rails'
20
+ ```
21
+
22
+ Add guard definition to your Guardfile by running this command:
23
+
24
+ $ guard init guard-jslint-on-rails
25
+
26
+ Configuration
27
+ -------------
28
+
29
+ ``` ruby
30
+ # Guardfile
31
+ guard 'jslint-on-rails' do
32
+ # watch for changes on any of your application javascript files
33
+ watch(%r{^app/assets/javascripts/.*\.js$})
34
+ # watch for changes to the JSLint configuration
35
+ watch('config/jslint.yml')
36
+ end
37
+ ```
38
+
39
+ Please read [Guard doc](https://github.com/guard/guard#readme) for more information about the Guardfile DSL.
@@ -5,7 +5,7 @@ require 'jslint'
5
5
 
6
6
  module Guard
7
7
  class JslintOnRails < Guard
8
- VERSION = '0.0.5'
8
+ VERSION = '0.0.6'
9
9
 
10
10
  def run_on_change(paths)
11
11
  error = nil
@@ -0,0 +1,4 @@
1
+ guard 'jslint-on-rails' do
2
+ watch(%r{^app/assets/javascripts/.*\.js$})
3
+ watch('config/jslint.yml')
4
+ 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: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
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-08-03 00:00:00 Z
18
+ date: 2011-09-14 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: guard
@@ -62,9 +62,11 @@ files:
62
62
  - .gitignore
63
63
  - .rvmrc
64
64
  - Gemfile
65
+ - README.md
65
66
  - Rakefile
66
67
  - guard-jslint-on-rails.gemspec
67
68
  - lib/guard/jslint-on-rails.rb
69
+ - lib/guard/jslint-on-rails/templates/Guardfile
68
70
  homepage: ""
69
71
  licenses: []
70
72