rubocop_auto_corrector 0.1.0.beta2 → 0.1.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d32f8ff541acd263deda1ff9dc9e9d623c8c25eba206d0936f5ca5d2c73a3096
|
4
|
+
data.tar.gz: a9161a2f2925fd33ebb75bbb1afba16b1bf0cd1b74613b7116372ed033133bfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d3cca7fd0d545b954453bf20136ca36ba04b316c6c4fbee4cbcc43345bfabaac3b6c6fa57de78237793bd9b3303f58a23991e6d6a40f219750f0b9b62bc7a8e
|
7
|
+
data.tar.gz: 7a9a0fd09136ac3b2bf5bbc2f2ce76eabddbf03781f96f9131d5d51415c65ffac54e4a9245820ea1334305ad0a1419ac29c7ec81eec70990d841ec2688b5f52b
|
@@ -48,8 +48,9 @@ module RubocopAutoCorrector
|
|
48
48
|
['rubocop', "::RuboCop::Cop::#{cop_class_suffix}"]
|
49
49
|
else
|
50
50
|
# Unknown cops
|
51
|
-
|
52
|
-
["
|
51
|
+
department_camel = cop_name.split('/').first
|
52
|
+
department_snake = department_camel.gsub(/(?<=.)([A-Z])/) { |s| "_#{s}" }.downcase
|
53
|
+
["rubocop-#{department_snake}", "::RuboCop::Cop::#{cop_class_suffix}"]
|
53
54
|
end
|
54
55
|
end
|
55
56
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop_auto_corrector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -181,9 +181,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
181
181
|
version: '0'
|
182
182
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
183
183
|
requirements:
|
184
|
-
- - "
|
184
|
+
- - ">="
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version:
|
186
|
+
version: '0'
|
187
187
|
requirements: []
|
188
188
|
rubyforge_project:
|
189
189
|
rubygems_version: 2.7.6
|