rubocop_auto_corrector 0.4.0 → 0.4.1

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: 509d6918b9fdfe52298f58bbe9be36931e3dd47115becd4e4fda20de29dec3ef
4
- data.tar.gz: f65fd537d05dc43b5c7e33d525781a67f2941b4f77e63caad3edae309d15a29f
3
+ metadata.gz: d4e67b9bf9193c7cd0bf3567b5b2a013d7b7f567c037ab5b24da012696e7386e
4
+ data.tar.gz: 44506fb91cfc0870753e367ed4e5cfa20ab91ca335c51e59fa6fc15cf58acc31
5
5
  SHA512:
6
- metadata.gz: 5096bf602e4f4158c9f4daeee6f02ceb7f1dd144bcc4d3a46d01afecc3bfe55ed5e3ee73aa909f4ef2e4765c829e86091d56b40038f1b5c1c85f1da80c576855
7
- data.tar.gz: 228c3f22ecad65538f108e3218079866e2c7b1071cca78e6dc266ec6e297ff950a719610a73fd88b9c7a1555c18f4180f4fc374cc2fb156ffa41e8b59043667f
6
+ metadata.gz: d32a74a30272d7aef5ac683ab8c5c1fb6f4f3950a722abb89be76e2b7038350daa7181e3896f68d3b907156a77009cdaf516132501288fd9da58f1dfce1fb87c
7
+ data.tar.gz: 37b79cf33ae2054e3dcb738c998ce7e60a843ecfa4aa2055e4e57020c8828cba13d0ecbde337d83d509a8e982998930f786064ec1accd8d73b528cd1d892dd4b
@@ -1,5 +1,11 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.4.0...master)
2
+ [full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.4.1...master)
3
+
4
+ ## v0.4.1
5
+ [full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.4.0...v0.4.1)
6
+
7
+ * Fixed. `auto_correctable?` doesn't work when cop has `.support_autocorrect?` and doesn't have `#autocorrect`
8
+ * https://github.com/sue445/rubocop_auto_corrector/pull/35
3
9
 
4
10
  ## v0.4.0
5
11
  [full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.3.0...v0.4.0)
@@ -17,6 +17,8 @@ module RubocopAutoCorrector
17
17
  require '#{gem_name}'
18
18
  rescue LoadError
19
19
  end
20
+
21
+ return #{cop_class_name}.support_autocorrect? if #{cop_class_name}.respond_to?(:support_autocorrect?)
20
22
  #{cop_class_name}.new.respond_to?(:autocorrect)
21
23
  RUBY
22
24
  rescue NameError
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubocopAutoCorrector
4
- VERSION = '0.4.0'
4
+ VERSION = '0.4.1'
5
5
  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.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-07 00:00:00.000000000 Z
11
+ date: 2020-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop