rails-erb-lint 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails-erb-lint/linter/check_validity.rb +4 -2
- data/lib/rails-erb-lint/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbfad7a72e2caed63a797f09866aa0150bf1b4da
|
4
|
+
data.tar.gz: 84c08b7e998a6f0e2b07944760bdff2c62418b97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5feb6a82a718db0de32b6fefcb89454c44ee7dc29048d97ae7e80acd6395953eeb858f4bf9e408c94d07957e3c70f6c3839e56e91c5601cde028aa6a02c7b80a
|
7
|
+
data.tar.gz: 2b6fb12992e231dc00eb85c738dfee1e750a71496280602f3a05aebc958cb2b12073d1dfabd8df95175eaaa53a2e01e39f53569fda08f32f02537e9731cb7c15
|
@@ -11,7 +11,8 @@ program_desc 'A simple lint tool for ERB Rails views.'
|
|
11
11
|
|
12
12
|
desc 'Check for syntax errors on views'
|
13
13
|
command :check do |c|
|
14
|
-
c.
|
14
|
+
c.switch :verbose, default_value: false
|
15
|
+
c.action do |global_options, options|
|
15
16
|
valid = []
|
16
17
|
invalid = []
|
17
18
|
erb_files = []
|
@@ -28,6 +29,7 @@ command :check do |c|
|
|
28
29
|
|
29
30
|
erb_files.each do |f|
|
30
31
|
if RailsErbCheck.valid_syntax?(File.read(f))
|
32
|
+
puts "#{f} => valid".green if options[:verbose]
|
31
33
|
valid << f
|
32
34
|
else
|
33
35
|
puts "#{f} => invalid".red
|
@@ -35,7 +37,7 @@ command :check do |c|
|
|
35
37
|
end
|
36
38
|
end
|
37
39
|
|
38
|
-
|
40
|
+
puts "#{valid.size + invalid.size} files, #{invalid.size} invalid files".yellow
|
39
41
|
end
|
40
42
|
end
|
41
43
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-erb-lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katherine Pe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 4.1.
|
61
|
+
version: 4.1.4
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 4.1.
|
68
|
+
version: 4.1.4
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: builder
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 2.
|
89
|
+
version: 2.12.0
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 2.
|
96
|
+
version: 2.12.0
|
97
97
|
description: Lint tool for Rails ERB views
|
98
98
|
email: katherinepe@me.com
|
99
99
|
executables:
|