rubocop_rules 1.0.1 → 1.0.2
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/rubocop_rules/cli.rb +2 -1
- data/lib/rubocop_rules/version.rb +1 -1
- data/rubocop-rules.gemspec +2 -0
- data/spec/lint_spec.rb +10 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3b8336ab0273eaa5a7c4a0d088bc7ac9810a741e
|
|
4
|
+
data.tar.gz: 922465650ca90d1b9446ea248baeea1bdb05c1ae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 868353dd4492d90ee7d19ce9921b61ba227ee93d48b19eb8868525bde7a302ed414c436c36be35214f3d2b3dad3ca98bf9379cd2b946ebe116b2457ef2e8087b
|
|
7
|
+
data.tar.gz: 42f7691892bc591236b633b3de76b6d3c2e38f425541741c027e4a2964e3dd063c1cf1232eb450621025521b2e0e9f8c4ddfcc3f55ec0fe343c11503e3fa8562
|
data/CHANGELOG.md
CHANGED
data/lib/rubocop_rules/cli.rb
CHANGED
|
@@ -21,6 +21,7 @@ module RubocopRules
|
|
|
21
21
|
|
|
22
22
|
desc 'init', 'Initialize RubocopRules in your project'
|
|
23
23
|
def init
|
|
24
|
+
puts 'Copying config... '
|
|
24
25
|
copy_file '.rubocop_common.yml', '.rubocop_common.yml'
|
|
25
26
|
copy_file '.rubocop.yml', '.rubocop.yml'
|
|
26
27
|
copy_file 'spec/lint_spec.rb', 'spec/lint_spec.rb'
|
|
@@ -31,7 +32,7 @@ module RubocopRules
|
|
|
31
32
|
print 'Generating rubocop_todo... '
|
|
32
33
|
run_process(command: 'rubocop --auto-gen-config')
|
|
33
34
|
|
|
34
|
-
|
|
35
|
+
puts 'Adding rubocop_todo to configuration... '
|
|
35
36
|
insert_into_file '.rubocop.yml', ' - .rubocop_todo.yml', after: " - .rubocop_common.yml\n"
|
|
36
37
|
end
|
|
37
38
|
|
data/rubocop-rules.gemspec
CHANGED
|
@@ -27,6 +27,8 @@ Gem::Specification.new do |spec|
|
|
|
27
27
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
28
28
|
f.match(%r{^(test|spec|features)/})
|
|
29
29
|
end
|
|
30
|
+
spec.files << 'spec/lint_spec.rb'
|
|
31
|
+
|
|
30
32
|
spec.bindir = 'bin'
|
|
31
33
|
spec.executables = spec.files.grep(%r{^bin/rubocop-rules}) { |f| File.basename(f) }
|
|
32
34
|
spec.require_paths = ['lib']
|
data/spec/lint_spec.rb
ADDED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubocop_rules
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mathias Klippinge
|
|
@@ -122,6 +122,7 @@ files:
|
|
|
122
122
|
- lib/rubocop_rules/cli.rb
|
|
123
123
|
- lib/rubocop_rules/version.rb
|
|
124
124
|
- rubocop-rules.gemspec
|
|
125
|
+
- spec/lint_spec.rb
|
|
125
126
|
homepage:
|
|
126
127
|
licenses: []
|
|
127
128
|
metadata:
|