rails-erb-lint 1.0.6 → 1.0.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b949571497a4b80239512b7bcfcd0fc5a53f2e6f
4
- data.tar.gz: 1907293b08603ebdd670290a0eeb975ef5bfc7b1
3
+ metadata.gz: 093adcc8bed4d2ce00698466666b8a20a72d9c41
4
+ data.tar.gz: 2a56138d84df6c380ac2166bcf5b05b943bdbaae
5
5
  SHA512:
6
- metadata.gz: 708026b914bcb970457aee9c90ab621fe175f3a7aa77cfd72d060655716a887a919cf216e87fb58c72bc0d886175b24b59dcbbc542e3fcff771d433963b7b874
7
- data.tar.gz: 81e4ded8d6adbd9e0d8227bcc5f066afb1647e9660c6e8c543a6dd5e132dcc9e0662712c4a7e97df0e0492d84593522ad1da22bcab6a2478268e85ae6046be58
6
+ metadata.gz: 5817b79ba569364b5db51de314079b26d051015cf9963cf17c3391d6f481e41ebc4f401cb3141485c2730313203183169456594838f1ed9591f9ca01657935af
7
+ data.tar.gz: fb6e3e37514f4da36e87ec71857271eb1cf51b524dfdcd3b866f94e0257acd074f7bbe8eabb75ee8d45d4aa4f02541b8a881b0c57993b9ccd8b18117872411dc
data/bin/rails-erb-lint CHANGED
@@ -1,6 +1,2 @@
1
1
  #!/usr/bin/env ruby
2
- require 'gli'
3
2
  require 'rails-erb-lint'
4
- include GLI::App
5
-
6
- exit run(ARGV)
@@ -1,7 +1,8 @@
1
- #!/usr/bin/env ruby
2
1
  require 'gli'
3
2
  require 'action_view'
4
3
  require 'find'
4
+ require 'colorize'
5
+
5
6
  require_relative '../helpers/rails_erb_check'
6
7
 
7
8
  include GLI::App
@@ -16,7 +17,7 @@ command :check do |c|
16
17
  erb_files = []
17
18
 
18
19
  path = Dir.getwd
19
- p "Checking for files in current directory: #{path}"
20
+ puts "Checking for files in current directory: #{path}".green
20
21
 
21
22
  Find.find(path.to_s) do |f|
22
23
  next if FileTest.directory?(f)
@@ -27,10 +28,10 @@ command :check do |c|
27
28
 
28
29
  erb_files.each do |f|
29
30
  if RailsErbCheck.valid_syntax?(File.read(f))
30
- p "#{f} => valid"
31
+ puts "#{f} => valid".green
31
32
  valid << f
32
33
  else
33
- p "#{f} => invalid"
34
+ puts "#{f} => invalid".red
34
35
  invalid << f
35
36
  end
36
37
  end
@@ -38,7 +39,7 @@ command :check do |c|
38
39
  p "#{valid.size + invalid.size} files, #{invalid.size} invalid files"
39
40
  if invalid.size > 0
40
41
  invalid.each do |f|
41
- p "Please edit #{f} and fix errors."
42
+ puts "Please edit #{f} and fix errors.".red
42
43
  end
43
44
  end
44
45
 
@@ -1,3 +1,3 @@
1
1
  module RailsErbLint
2
- VERSION = '1.0.6'
2
+ VERSION = '1.0.7'
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.6
4
+ version: 1.0.7
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-01-19 00:00:00.000000000 Z
11
+ date: 2014-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: colorize
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: actionpack
43
57
  requirement: !ruby/object:Gem::Requirement