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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79b2976d52e2c0f0be68725eea5735ab25c6aeac
4
- data.tar.gz: 4faf04496b5de9a2a20e48abeb8681ab664e926c
3
+ metadata.gz: bbfad7a72e2caed63a797f09866aa0150bf1b4da
4
+ data.tar.gz: 84c08b7e998a6f0e2b07944760bdff2c62418b97
5
5
  SHA512:
6
- metadata.gz: 2dd304a0007fb7816d382187301a66e8492cbafe0ac3c7c01f576e5b08663841548482eb1786abf60f21bb37dfca623d8c75895e448abf1bed8a2287e7478cd4
7
- data.tar.gz: 5242ecf9257a67505d26c8abb2631d58eb3cf77a5c853c5155c36d54b7d089b8113954be9ca0c716fa1f52a238d59b367f44d668966b0fac30b4472de217b261
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.action do |global_options,options|
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
- p "#{valid.size + invalid.size} files, #{invalid.size} invalid files"
40
+ puts "#{valid.size + invalid.size} files, #{invalid.size} invalid files".yellow
39
41
  end
40
42
  end
41
43
 
@@ -1,3 +1,3 @@
1
1
  module RailsErbLint
2
- VERSION = '1.0.8'
2
+ VERSION = '1.0.9'
3
3
  end
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.8
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-05-03 00:00:00.000000000 Z
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.0
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.0
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.10.0
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.10.0
96
+ version: 2.12.0
97
97
  description: Lint tool for Rails ERB views
98
98
  email: katherinepe@me.com
99
99
  executables: