rubocop_auto_corrector 0.4.1 → 0.4.2

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: d4e67b9bf9193c7cd0bf3567b5b2a013d7b7f567c037ab5b24da012696e7386e
4
- data.tar.gz: 44506fb91cfc0870753e367ed4e5cfa20ab91ca335c51e59fa6fc15cf58acc31
3
+ metadata.gz: 11a12e8bf21d53f7aa83c186b3230db612841612c148872d7e3368291ed02e6d
4
+ data.tar.gz: e9af4a19ee58ac527c89f088038e3470e65e2ae1f4ec23dba24dd8221d14ec99
5
5
  SHA512:
6
- metadata.gz: d32a74a30272d7aef5ac683ab8c5c1fb6f4f3950a722abb89be76e2b7038350daa7181e3896f68d3b907156a77009cdaf516132501288fd9da58f1dfce1fb87c
7
- data.tar.gz: 37b79cf33ae2054e3dcb738c998ce7e60a843ecfa4aa2055e4e57020c8828cba13d0ecbde337d83d509a8e982998930f786064ec1accd8d73b528cd1d892dd4b
6
+ metadata.gz: 0a53fd7dca79bbcea054873c0270363e4d7bba8b165afb9c56b766f20c87fd18093a66d4a194cf99d945d3f2fe57fc93e966fbbcb82c2119d574d8d9dd882eb2
7
+ data.tar.gz: 55b8554127b2387e0aba60c4bae279ea80c0ccf3c69a260a0f371563638167f325d83ad031cb7d0917ca336f28a3bf7b36651368aa966362599ab51640ee4027
@@ -26,10 +26,10 @@ jobs:
26
26
 
27
27
  matrix:
28
28
  ruby:
29
- - ruby:2.4
30
29
  - ruby:2.5
31
30
  - ruby:2.6
32
31
  - ruby:2.7
32
+ - ruby:3.0
33
33
  - rubylang/ruby:master-nightly-bionic
34
34
  include:
35
35
  - ruby: rubylang/ruby:master-nightly-bionic
@@ -61,7 +61,6 @@ jobs:
61
61
  with:
62
62
  codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
63
63
  command: before-build
64
- if: matrix.ruby >= 'ruby:2.4'
65
64
  continue-on-error: true
66
65
 
67
66
  - name: Set up git
@@ -82,11 +81,10 @@ jobs:
82
81
  with:
83
82
  codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
84
83
  command: after-build
85
- if: matrix.ruby >= 'ruby:2.4' && always()
86
84
  continue-on-error: true
87
85
 
88
86
  - name: Slack Notification (not success)
89
- uses: homoluctus/slatify@master
87
+ uses: lazy-actions/slatify@master
90
88
  if: "! success()"
91
89
  continue-on-error: true
92
90
  with:
@@ -104,7 +102,7 @@ jobs:
104
102
 
105
103
  steps:
106
104
  - name: Slack Notification (success)
107
- uses: homoluctus/slatify@master
105
+ uses: lazy-actions/slatify@master
108
106
  if: always()
109
107
  continue-on-error: true
110
108
  with:
data/.rubocop.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.4
2
+ # rubocop 1.13.0+ requires ruby 2.5+
3
+ TargetRubyVersion: 2.5
3
4
 
4
5
  Exclude:
5
6
  - 'spec/dummy/**/*'
@@ -10,6 +11,7 @@ AllCops:
10
11
  - '.git/**/*'
11
12
 
12
13
  NewCops: enable
14
+ SuggestExtensions: false
13
15
 
14
16
  Metrics/BlockLength:
15
17
  Exclude:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## master
2
- [full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.4.1...master)
2
+ [full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.4.2...master)
3
+
4
+ ## v0.4.2
5
+ [full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.4.1...v0.4.2)
6
+
7
+ * Requires rubocop v1.13.0+ and drop ruby 2.4
8
+ * https://github.com/sue445/rubocop_auto_corrector/pull/43
3
9
 
4
10
  ## v0.4.1
5
11
  [full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.4.0...v0.4.1)
@@ -13,6 +13,14 @@ module RubocopAutoCorrector
13
13
  # @return [Boolean]
14
14
  def auto_correctable?
15
15
  Object.new.instance_eval <<-RUBY, __FILE__, __LINE__ + 1
16
+ # begin
17
+ # require 'rubocop-rspec'
18
+ # rescue LoadError
19
+ # end
20
+ #
21
+ # return ::RuboCop::Cop::RSpec::AlignLeftLetBrace.support_autocorrect? if ::RuboCop::Cop::RSpec::AlignLeftLetBrace.respond_to?(:support_autocorrect?)
22
+ # ::RuboCop::Cop::RSpec::AlignLeftLetBrace.new.respond_to?(:autocorrect)
23
+
16
24
  begin
17
25
  require '#{gem_name}'
18
26
  rescue LoadError
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubocopAutoCorrector
4
- VERSION = '0.4.1'
4
+ VERSION = '0.4.2'
5
5
  end
@@ -35,9 +35,9 @@ Gem::Specification.new do |spec|
35
35
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
36
36
  spec.require_paths = ['lib']
37
37
 
38
- spec.required_ruby_version = '>= 2.4.0'
38
+ spec.required_ruby_version = '>= 2.5.0'
39
39
 
40
- spec.add_dependency 'rubocop', '>= 0.87.0'
40
+ spec.add_dependency 'rubocop', '>= 1.13.0'
41
41
 
42
42
  spec.add_development_dependency 'bundler', '>= 1.17'
43
43
  spec.add_development_dependency 'coveralls'
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.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-10 00:00:00.000000000 Z
11
+ date: 2021-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.87.0
19
+ version: 1.13.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.87.0
26
+ version: 1.13.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -184,7 +184,7 @@ metadata:
184
184
  homepage_uri: https://github.com/sue445/rubocop_auto_corrector
185
185
  source_code_uri: https://github.com/sue445/rubocop_auto_corrector
186
186
  changelog_uri: https://github.com/sue445/rubocop_auto_corrector/blob/master/CHANGELOG.md
187
- post_install_message:
187
+ post_install_message:
188
188
  rdoc_options: []
189
189
  require_paths:
190
190
  - lib
@@ -192,15 +192,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
192
192
  requirements:
193
193
  - - ">="
194
194
  - !ruby/object:Gem::Version
195
- version: 2.4.0
195
+ version: 2.5.0
196
196
  required_rubygems_version: !ruby/object:Gem::Requirement
197
197
  requirements:
198
198
  - - ">="
199
199
  - !ruby/object:Gem::Version
200
200
  version: '0'
201
201
  requirements: []
202
- rubygems_version: 3.1.2
203
- signing_key:
202
+ rubygems_version: 3.2.3
203
+ signing_key:
204
204
  specification_version: 4
205
205
  summary: Run `rubocop --auto-correct && git commit` with each cop.
206
206
  test_files: []