gazelle_styleguide 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/gazelle_styleguide/cli.rb +2 -0
- data/lib/gazelle_styleguide/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmIyMTJlZDc1Yzc4NDg5NDAzNzUzZDI3MzE0ZTJiZmU4MzkzYTBlMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDMwMjQ5MTY1MDQ3N2YxNmRiNjQzN2VkNTJjNTZmYWRhOWQ0OGMxOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDEwOWVmMGRkMzllOTQ0MDM5OWNiMGM5MDIwZjAwYmJhMGQyMzhhN2U5MTk0
|
10
|
+
NjI3Y2I3ZDBlNGJhMmJkNmI4MDdhN2MwMDMyMzIwOWUzZmU2MDRmZDAzMTFj
|
11
|
+
MDBiN2YxZWMwMzA4Zjg2ZmIyZmViNDc3ODY1ZjU5NWRhNTA4ZTk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTI4MjVhMzVhOWExZGQ1NWFiYmRmYzg3ZjAyNTE1MmMwMTZlODE3NDkwODk3
|
14
|
+
ZmY4NDdjZTE1MmIzZWYzOTBjMzA4OTg2YTc3OTcxNTkyMmM1MWJmOGJlZmYy
|
15
|
+
NDhiMzUyZDFmOTY2NTI5OTIyMDM4NGQyMDg4ZDA0NWEyOTAzMjA=
|
@@ -33,10 +33,12 @@ module GazelleStyleguide
|
|
33
33
|
option :all, aliases: :a
|
34
34
|
option :changed, aliases: :c
|
35
35
|
option :staged, aliases: :s
|
36
|
+
option :debug, aliases: :d
|
36
37
|
def fix(*files)
|
37
38
|
require 'rubocop'
|
38
39
|
files = lint_files(files, options).select{|file| file =~ /\.rb|Gemfile|Rakefile|\.task|\.rake/}
|
39
40
|
args = ['-a', '-c', GazelleStyleguide.config_for('rubocop.yml')] + files
|
41
|
+
args.unshift('-d') if options[:debug]
|
40
42
|
|
41
43
|
Rubocop::CLI.new.run(args)
|
42
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gazelle_styleguide
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Allen Madsen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pre-commit
|