guard-jslint-on-rails 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +39 -0
- data/lib/guard/jslint-on-rails.rb +1 -1
- data/lib/guard/jslint-on-rails/templates/Guardfile +4 -0
- metadata +6 -4
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.
|
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: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
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-
|
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
|
|