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: 327090c9bbd094d7a6dd418e76bf9821122dc5227919cefc4b2d891ad11e233c
4
- data.tar.gz: 7fc67732f6da3c4af91ab25c493b252368ac8370c91952b09cac1d97c7066dea
3
+ metadata.gz: d32f8ff541acd263deda1ff9dc9e9d623c8c25eba206d0936f5ca5d2c73a3096
4
+ data.tar.gz: a9161a2f2925fd33ebb75bbb1afba16b1bf0cd1b74613b7116372ed033133bfd
5
5
  SHA512:
6
- metadata.gz: a6777932b5de6f3495f5dc03e7b171d0578fdbec59c8136571d0f836306ed58a471628b420dcc1ed5015ff6f6b48fab5368c8646a5be69332545009abe337b2c
7
- data.tar.gz: a2201469cab50eb566860d9a4efaa41ed8bf514c15069f7a2ad8975645a656bf71a75008bf30e53ba9c8bed2eefbca94a37bbf20185cfea406938225e851ea2a
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
- department = cop_name.split('/').first.downcase
52
- ["rubocop-#{department}", "::RuboCop::Cop::#{cop_class_suffix}"]
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
@@ -1,3 +1,3 @@
1
1
  module RubocopAutoCorrector
2
- VERSION = '0.1.0.beta2'.freeze
2
+ VERSION = '0.1.0'.freeze
3
3
  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.beta2
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-29 00:00:00.000000000 Z
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: 1.3.1
186
+ version: '0'
187
187
  requirements: []
188
188
  rubyforge_project:
189
189
  rubygems_version: 2.7.6