rails-erb-lint 1.1.4 → 1.1.5
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 +5 -5
- data/lib/rails-erb-lint/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85a8d6ab9f36962cbf33524287d504e24ee0341e
|
4
|
+
data.tar.gz: 664d984bb87f013b123fbd219f9b4a1ade878d01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dabf6c434b2a73c1700473967f1cb9ed62efee5fa3b9b9529720fc13c798ebc5cb4bac9758038439b967ae3222b2a13ce7450b4ac4eb2e49037f8e91a9f7f721
|
7
|
+
data.tar.gz: 3970c58be2133cec00ac743b5c79c218121a1c84af075e76ebb216e13684c930c6ddcb3d36e51c0e3e279b65c9d89bc592a60c4acbd973d0dcd2156b76ff3fd3
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'gli'
|
2
2
|
require 'action_view'
|
3
3
|
require 'find'
|
4
|
-
require '
|
4
|
+
require 'rainbow'
|
5
5
|
|
6
6
|
require_relative '../helpers/rails_erb_check'
|
7
7
|
|
@@ -18,7 +18,7 @@ command :check do |c|
|
|
18
18
|
erb_files = []
|
19
19
|
|
20
20
|
path = Dir.getwd
|
21
|
-
puts "Checking for files in current directory: #{path}".green
|
21
|
+
puts Rainbow("Checking for files in current directory: #{path}").green
|
22
22
|
|
23
23
|
Find.find(path.to_s) do |f|
|
24
24
|
next if FileTest.directory?(f)
|
@@ -29,17 +29,17 @@ command :check do |c|
|
|
29
29
|
|
30
30
|
erb_files.each do |f|
|
31
31
|
if RailsErbCheck.valid_syntax?(File.read(f))
|
32
|
-
puts "#{f} => valid".green if options[:verbose]
|
32
|
+
puts Rainbow("#{f} => valid").green if options[:verbose]
|
33
33
|
valid << f
|
34
34
|
else
|
35
|
-
puts "#{f} => invalid".red
|
35
|
+
puts Rainbow("#{f} => invalid").red
|
36
36
|
invalid << f
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
40
|
exit_now!("#{invalid.size} invalid files") if invalid.any?
|
41
41
|
|
42
|
-
puts "#{valid.size + invalid.size} files, no invalid files".yellow
|
42
|
+
puts Rainbow("#{valid.size + invalid.size} files, no invalid files").yellow
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
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.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katherine Pe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -39,19 +39,19 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: rainbow
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
47
|
+
version: '2.0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
54
|
+
version: '2.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: actionpack
|
57
57
|
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.1'
|
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.1'
|
97
97
|
description: Checks validity of ERB files for your Rails app.
|
98
98
|
email: katherinepe@me.com
|
99
99
|
executables:
|
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
127
|
version: '0'
|
128
128
|
requirements: []
|
129
129
|
rubyforge_project:
|
130
|
-
rubygems_version: 2.4.5
|
130
|
+
rubygems_version: 2.4.5.1
|
131
131
|
signing_key:
|
132
132
|
specification_version: 4
|
133
133
|
summary: Checks validity of ERB files for your Rails app.
|