rubocop_auto_corrector 0.1.0.beta2 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +115 -0
- data/.rubocop.yml +13 -8
- data/CHANGELOG.md +28 -1
- data/Gemfile +2 -0
- data/README.md +10 -3
- data/Rakefile +2 -0
- data/bin/console +1 -0
- data/exe/rubocop_auto_corrector +15 -3
- data/lib/rubocop_auto_corrector.rb +2 -0
- data/lib/rubocop_auto_corrector/cli.rb +8 -6
- data/lib/rubocop_auto_corrector/cop_finder.rb +11 -4
- data/lib/rubocop_auto_corrector/version.rb +3 -1
- data/rubocop_auto_corrector.gemspec +9 -4
- metadata +31 -18
- data/.travis.yml +0 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4e67b9bf9193c7cd0bf3567b5b2a013d7b7f567c037ab5b24da012696e7386e
|
4
|
+
data.tar.gz: 44506fb91cfc0870753e367ed4e5cfa20ab91ca335c51e59fa6fc15cf58acc31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d32a74a30272d7aef5ac683ab8c5c1fb6f4f3950a722abb89be76e2b7038350daa7181e3896f68d3b907156a77009cdaf516132501288fd9da58f1dfce1fb87c
|
7
|
+
data.tar.gz: 37b79cf33ae2054e3dcb738c998ce7e60a843ecfa4aa2055e4e57020c8828cba13d0ecbde337d83d509a8e982998930f786064ec1accd8d73b528cd1d892dd4b
|
@@ -0,0 +1,115 @@
|
|
1
|
+
name: test
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
pull_request:
|
8
|
+
types:
|
9
|
+
- opened
|
10
|
+
- synchronize
|
11
|
+
- reopened
|
12
|
+
schedule:
|
13
|
+
- cron: "0 10 * * 5" # JST 19:00 (Fri)
|
14
|
+
|
15
|
+
env:
|
16
|
+
CI: "true"
|
17
|
+
|
18
|
+
jobs:
|
19
|
+
test:
|
20
|
+
runs-on: ubuntu-latest
|
21
|
+
|
22
|
+
container: ${{ matrix.ruby }}
|
23
|
+
|
24
|
+
strategy:
|
25
|
+
fail-fast: false
|
26
|
+
|
27
|
+
matrix:
|
28
|
+
ruby:
|
29
|
+
- ruby:2.4
|
30
|
+
- ruby:2.5
|
31
|
+
- ruby:2.6
|
32
|
+
- ruby:2.7
|
33
|
+
- rubylang/ruby:master-nightly-bionic
|
34
|
+
include:
|
35
|
+
- ruby: rubylang/ruby:master-nightly-bionic
|
36
|
+
allow_failures: "true"
|
37
|
+
|
38
|
+
steps:
|
39
|
+
- uses: actions/checkout@v2
|
40
|
+
|
41
|
+
|
42
|
+
- name: Cache vendor/bundle
|
43
|
+
uses: actions/cache@v1
|
44
|
+
id: cache_gem
|
45
|
+
with:
|
46
|
+
path: vendor/bundle
|
47
|
+
key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ github.sha }}
|
48
|
+
restore-keys: |
|
49
|
+
v1-gem-${{ runner.os }}-${{ matrix.ruby }}-
|
50
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
51
|
+
|
52
|
+
- name: bundle update
|
53
|
+
run: |
|
54
|
+
set -xe
|
55
|
+
bundle config path vendor/bundle
|
56
|
+
bundle update --jobs $(nproc) --retry 3
|
57
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
58
|
+
|
59
|
+
- name: Setup Code Climate Test Reporter
|
60
|
+
uses: aktions/codeclimate-test-reporter@v1
|
61
|
+
with:
|
62
|
+
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
63
|
+
command: before-build
|
64
|
+
if: matrix.ruby >= 'ruby:2.4'
|
65
|
+
continue-on-error: true
|
66
|
+
|
67
|
+
- name: Set up git
|
68
|
+
run: |
|
69
|
+
set -xe
|
70
|
+
git config --global user.email "github-runner@example.com"
|
71
|
+
git config --global user.name "github runner"
|
72
|
+
|
73
|
+
- name: Run test
|
74
|
+
run: |
|
75
|
+
set -xe
|
76
|
+
bundle exec rspec
|
77
|
+
bundle exec rubocop -P
|
78
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
79
|
+
|
80
|
+
- name: Teardown Code Climate Test Reporter
|
81
|
+
uses: aktions/codeclimate-test-reporter@v1
|
82
|
+
with:
|
83
|
+
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
84
|
+
command: after-build
|
85
|
+
if: matrix.ruby >= 'ruby:2.4' && always()
|
86
|
+
continue-on-error: true
|
87
|
+
|
88
|
+
- name: Slack Notification (not success)
|
89
|
+
uses: homoluctus/slatify@master
|
90
|
+
if: "! success()"
|
91
|
+
continue-on-error: true
|
92
|
+
with:
|
93
|
+
job_name: ${{ format('*build* ({0})', matrix.ruby) }}
|
94
|
+
type: ${{ job.status }}
|
95
|
+
icon_emoji: ":octocat:"
|
96
|
+
url: ${{ secrets.SLACK_WEBHOOK }}
|
97
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
98
|
+
|
99
|
+
notify:
|
100
|
+
needs:
|
101
|
+
- test
|
102
|
+
|
103
|
+
runs-on: ubuntu-latest
|
104
|
+
|
105
|
+
steps:
|
106
|
+
- name: Slack Notification (success)
|
107
|
+
uses: homoluctus/slatify@master
|
108
|
+
if: always()
|
109
|
+
continue-on-error: true
|
110
|
+
with:
|
111
|
+
job_name: '*build*'
|
112
|
+
type: ${{ job.status }}
|
113
|
+
icon_emoji: ":octocat:"
|
114
|
+
url: ${{ secrets.SLACK_WEBHOOK }}
|
115
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
data/.rubocop.yml
CHANGED
@@ -1,18 +1,23 @@
|
|
1
|
-
require: rubocop-rspec
|
2
|
-
|
3
1
|
AllCops:
|
4
|
-
TargetRubyVersion: 2.
|
2
|
+
TargetRubyVersion: 2.4
|
5
3
|
|
6
4
|
Exclude:
|
7
|
-
- 'spec/dummy
|
5
|
+
- 'spec/dummy/**/*'
|
8
6
|
|
9
|
-
#
|
7
|
+
# c.f. https://github.com/rubocop-hq/rubocop/blob/v0.72.0/config/default.yml#L60-L63
|
10
8
|
- 'node_modules/**/*'
|
11
9
|
- 'vendor/**/*'
|
12
10
|
- '.git/**/*'
|
13
11
|
|
14
|
-
|
15
|
-
|
12
|
+
NewCops: enable
|
13
|
+
|
14
|
+
Metrics/BlockLength:
|
15
|
+
Exclude:
|
16
|
+
- '*.gemspec'
|
17
|
+
- 'spec/**/*_spec.rb'
|
18
|
+
|
19
|
+
Layout/LineLength:
|
20
|
+
Max: 110
|
16
21
|
|
17
|
-
|
22
|
+
Style/Documentation:
|
18
23
|
Enabled: false
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,32 @@
|
|
1
1
|
## master
|
2
|
-
[full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.1
|
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
|
9
|
+
|
10
|
+
## v0.4.0
|
11
|
+
[full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.3.0...v0.4.0)
|
12
|
+
|
13
|
+
* Add `--all` option for `rubocop --auto-correct-all`
|
14
|
+
* https://github.com/sue445/rubocop_auto_corrector/pull/34
|
15
|
+
* When `--all` arg is passed to `rubocop_auto_corrector` (e.g. `rubocop_auto_corrector --all`), run `rubocop --auto-correct-all && git commit` with each cop.
|
16
|
+
* Upgrade rubocop and drop support ruby 2.3
|
17
|
+
* https://github.com/sue445/rubocop_auto_corrector/pull/31
|
18
|
+
|
19
|
+
## v0.3.0
|
20
|
+
[full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.2.0...v0.3.0)
|
21
|
+
|
22
|
+
* Support `rubocop-rails` gem (requires rubocop 0.72.0+ and ruby 2.3.0+)
|
23
|
+
* https://github.com/sue445/rubocop_auto_corrector/pull/18
|
24
|
+
|
25
|
+
## v0.2.0
|
26
|
+
[full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.1.0...v0.2.0)
|
27
|
+
|
28
|
+
* Support `rubocop-performance` gem
|
29
|
+
* https://github.com/sue445/rubocop_auto_corrector/pull/16
|
3
30
|
|
4
31
|
## v0.1.0
|
5
32
|
* first release
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -3,19 +3,25 @@
|
|
3
3
|
Run `rubocop --auto-correct && git commit` with each cop.
|
4
4
|
|
5
5
|
[![Gem Version](https://badge.fury.io/rb/rubocop_auto_corrector.svg)](https://badge.fury.io/rb/rubocop_auto_corrector)
|
6
|
-
[![Build Status](https://
|
6
|
+
[![Build Status](https://github.com/sue445/rubocop_auto_corrector/workflows/test/badge.svg?branch=master)](https://github.com/sue445/rubocop_auto_corrector/actions?query=workflow%3Atest)
|
7
7
|
[![Maintainability](https://api.codeclimate.com/v1/badges/384834e50f94e344c439/maintainability)](https://codeclimate.com/github/sue445/rubocop_auto_corrector/maintainability)
|
8
8
|
[![Coverage Status](https://coveralls.io/repos/github/sue445/rubocop_auto_corrector/badge.svg?branch=master)](https://coveralls.io/github/sue445/rubocop_auto_corrector?branch=master)
|
9
9
|
|
10
|
-
|
10
|
+
## Example
|
11
11
|
See https://github.com/sue445/rubocop_auto_corrector/pull/3/commits
|
12
12
|
|
13
|
+
## Requirements
|
14
|
+
* Ruby
|
15
|
+
* git
|
16
|
+
|
13
17
|
## Installation
|
14
18
|
|
15
19
|
Add this line to your application's Gemfile:
|
16
20
|
|
17
21
|
```ruby
|
18
|
-
|
22
|
+
group :development do
|
23
|
+
gem 'rubocop_auto_corrector', require: false
|
24
|
+
end
|
19
25
|
```
|
20
26
|
|
21
27
|
And then execute:
|
@@ -36,6 +42,7 @@ $ bundle exec rubocop_auto_corrector
|
|
36
42
|
$ bundle exec rubocop_auto_corrector --help
|
37
43
|
Usage: rubocop_auto_corrector [options]
|
38
44
|
--auto-correct-count COUNT Run `rubocop --auto-correct` and `git commit` for this number of times. (default. 2)
|
45
|
+
--all Whether run `rubocop` with `--auto-correct-all`. (default. run with `--auto-correct`)
|
39
46
|
```
|
40
47
|
|
41
48
|
## Development
|
data/Rakefile
CHANGED
data/bin/console
CHANGED
data/exe/rubocop_auto_corrector
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
2
3
|
|
3
4
|
require 'rubocop_auto_corrector/cli'
|
4
5
|
require 'rubocop_auto_corrector/version'
|
@@ -6,16 +7,27 @@ require 'optparse'
|
|
6
7
|
|
7
8
|
opt = OptionParser.new
|
8
9
|
params = {
|
9
|
-
auto_correct_count: 2
|
10
|
+
auto_correct_count: 2,
|
11
|
+
auto_correct_all: false
|
10
12
|
}
|
11
13
|
|
12
14
|
Version = RubocopAutoCorrector::VERSION
|
13
|
-
|
15
|
+
|
16
|
+
opt.on(
|
17
|
+
'--auto-correct-count COUNT',
|
18
|
+
'Run `rubocop --auto-correct` and `git commit` for this number of times. (default. 2)'
|
19
|
+
) do |v|
|
20
|
+
params[:auto_correct_count] = v.to_i
|
21
|
+
end
|
22
|
+
|
23
|
+
opt.on('--all', 'Whether run `rubocop` with `--auto-correct-all`. (default. run with `--auto-correct`)') do
|
24
|
+
params[:auto_correct_all] = true
|
25
|
+
end
|
14
26
|
|
15
27
|
opt.parse!(ARGV)
|
16
28
|
|
17
29
|
cli = RubocopAutoCorrector::CLI.new
|
18
30
|
|
19
31
|
params[:auto_correct_count].times do
|
20
|
-
cli.perform
|
32
|
+
cli.perform(params[:auto_correct_all])
|
21
33
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module RubocopAutoCorrector
|
2
4
|
require 'json'
|
3
5
|
require 'yaml'
|
@@ -13,11 +15,11 @@ module RubocopAutoCorrector
|
|
13
15
|
@exclude_cops = data['exclude_cops']
|
14
16
|
end
|
15
17
|
|
16
|
-
def perform
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
18
|
+
def perform(auto_collect_all)
|
19
|
+
rubocop_option = auto_collect_all ? '--auto-correct-all' : '--auto-correct'
|
20
|
+
|
21
|
+
cop_names = collect_offense_cop_names.select { |cop_name| auto_correctable?(cop_name) }
|
22
|
+
.sort_by { |cop_name| [cop_order(cop_name), cop_name] }
|
21
23
|
|
22
24
|
cop_names.each do |cop_name|
|
23
25
|
if (reason = exclude_reason(cop_name))
|
@@ -25,7 +27,7 @@ module RubocopAutoCorrector
|
|
25
27
|
next
|
26
28
|
end
|
27
29
|
|
28
|
-
run_and_commit "rubocop
|
30
|
+
run_and_commit "rubocop #{rubocop_option} --only #{cop_name}"
|
29
31
|
end
|
30
32
|
end
|
31
33
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module RubocopAutoCorrector
|
2
4
|
class CopFinder
|
3
5
|
attr_reader :cop_name
|
@@ -10,11 +12,13 @@ module RubocopAutoCorrector
|
|
10
12
|
# Whether this cop is auto correctable
|
11
13
|
# @return [Boolean]
|
12
14
|
def auto_correctable?
|
13
|
-
Object.new.instance_eval <<-RUBY
|
15
|
+
Object.new.instance_eval <<-RUBY, __FILE__, __LINE__ + 1
|
14
16
|
begin
|
15
17
|
require '#{gem_name}'
|
16
18
|
rescue LoadError
|
17
19
|
end
|
20
|
+
|
21
|
+
return #{cop_class_name}.support_autocorrect? if #{cop_class_name}.respond_to?(:support_autocorrect?)
|
18
22
|
#{cop_class_name}.new.respond_to?(:autocorrect)
|
19
23
|
RUBY
|
20
24
|
rescue NameError
|
@@ -35,6 +39,7 @@ module RubocopAutoCorrector
|
|
35
39
|
|
36
40
|
private
|
37
41
|
|
42
|
+
# rubocop:disable Metrics/MethodLength
|
38
43
|
def rubocop_cop_info
|
39
44
|
cop_class_suffix = cop_name.gsub('/', '::')
|
40
45
|
|
@@ -43,14 +48,16 @@ module RubocopAutoCorrector
|
|
43
48
|
['rubocop-rspec', "::RuboCop::Cop::#{cop_class_suffix}"]
|
44
49
|
when %r{^(FactoryBot|Capybara)/}, 'Rails/HttpStatus'
|
45
50
|
['rubocop-rspec', "::RuboCop::Cop::RSpec::#{cop_class_suffix}"]
|
46
|
-
when %r{^(Layout|Lint|Metrics|Naming|
|
51
|
+
when %r{^(Layout|Lint|Metrics|Naming|Security|Style|Bundler|Gemspec)/}
|
47
52
|
# Official cops
|
48
53
|
['rubocop', "::RuboCop::Cop::#{cop_class_suffix}"]
|
49
54
|
else
|
50
55
|
# Unknown cops
|
51
|
-
|
52
|
-
["
|
56
|
+
department_camel = cop_name.split('/').first
|
57
|
+
department_snake = department_camel.gsub(/(?<=.)([A-Z])/) { |s| "_#{s}" }.downcase
|
58
|
+
["rubocop-#{department_snake}", "::RuboCop::Cop::#{cop_class_suffix}"]
|
53
59
|
end
|
54
60
|
end
|
61
|
+
# rubocop:enable Metrics/MethodLength
|
55
62
|
end
|
56
63
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
lib = File.expand_path('lib', __dir__)
|
2
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
5
|
require 'rubocop_auto_corrector/version'
|
@@ -33,14 +35,17 @@ Gem::Specification.new do |spec|
|
|
33
35
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
34
36
|
spec.require_paths = ['lib']
|
35
37
|
|
36
|
-
spec.
|
38
|
+
spec.required_ruby_version = '>= 2.4.0'
|
39
|
+
|
40
|
+
spec.add_dependency 'rubocop', '>= 0.87.0'
|
37
41
|
|
38
|
-
spec.add_development_dependency 'bundler', '
|
42
|
+
spec.add_development_dependency 'bundler', '>= 1.17'
|
39
43
|
spec.add_development_dependency 'coveralls'
|
40
|
-
spec.add_development_dependency 'rake'
|
44
|
+
spec.add_development_dependency 'rake'
|
41
45
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
42
46
|
spec.add_development_dependency 'rspec-parameterized'
|
43
47
|
spec.add_development_dependency 'rspec-temp_dir', '>= 1.1.0'
|
44
48
|
spec.add_development_dependency 'rubocop-rspec'
|
45
|
-
spec.add_development_dependency 'simplecov'
|
49
|
+
spec.add_development_dependency 'simplecov', '< 0.18.0'
|
50
|
+
spec.add_development_dependency 'unparser', '>= 0.4.5'
|
46
51
|
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
|
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:
|
11
|
+
date: 2020-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,26 +16,26 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.87.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.
|
26
|
+
version: 0.87.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.17'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.17'
|
41
41
|
- !ruby/object:Gem::Dependency
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -124,18 +124,32 @@ dependencies:
|
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: simplecov
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "<"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.18.0
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "<"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.18.0
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: unparser
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
128
142
|
requirements:
|
129
143
|
- - ">="
|
130
144
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
145
|
+
version: 0.4.5
|
132
146
|
type: :development
|
133
147
|
prerelease: false
|
134
148
|
version_requirements: !ruby/object:Gem::Requirement
|
135
149
|
requirements:
|
136
150
|
- - ">="
|
137
151
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
152
|
+
version: 0.4.5
|
139
153
|
description: Run `rubocop --auto-correct && git commit` with each cop.
|
140
154
|
email:
|
141
155
|
- sue445@sue445.net
|
@@ -145,10 +159,10 @@ extensions: []
|
|
145
159
|
extra_rdoc_files: []
|
146
160
|
files:
|
147
161
|
- ".coveralls.yml"
|
162
|
+
- ".github/workflows/test.yml"
|
148
163
|
- ".gitignore"
|
149
164
|
- ".rspec"
|
150
165
|
- ".rubocop.yml"
|
151
|
-
- ".travis.yml"
|
152
166
|
- CHANGELOG.md
|
153
167
|
- Gemfile
|
154
168
|
- LICENSE.txt
|
@@ -178,15 +192,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
178
192
|
requirements:
|
179
193
|
- - ">="
|
180
194
|
- !ruby/object:Gem::Version
|
181
|
-
version:
|
195
|
+
version: 2.4.0
|
182
196
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
183
197
|
requirements:
|
184
|
-
- - "
|
198
|
+
- - ">="
|
185
199
|
- !ruby/object:Gem::Version
|
186
|
-
version:
|
200
|
+
version: '0'
|
187
201
|
requirements: []
|
188
|
-
|
189
|
-
rubygems_version: 2.7.6
|
202
|
+
rubygems_version: 3.1.2
|
190
203
|
signing_key:
|
191
204
|
specification_version: 4
|
192
205
|
summary: Run `rubocop --auto-correct && git commit` with each cop.
|
data/.travis.yml
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
cache: bundler
|
4
|
-
rvm:
|
5
|
-
- 2.2
|
6
|
-
- 2.3
|
7
|
-
- 2.4
|
8
|
-
- 2.5
|
9
|
-
- ruby-head
|
10
|
-
bundler_args: "--jobs=4"
|
11
|
-
before_install:
|
12
|
-
- gem update --system --no-document
|
13
|
-
- gem install bundler --no-document
|
14
|
-
before_script:
|
15
|
-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
16
|
-
- chmod +x ./cc-test-reporter
|
17
|
-
- ./cc-test-reporter before-build
|
18
|
-
script:
|
19
|
-
- bundle exec rspec
|
20
|
-
after_script:
|
21
|
-
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
22
|
-
branches:
|
23
|
-
only:
|
24
|
-
- master
|
25
|
-
notifications:
|
26
|
-
email: false
|
27
|
-
slack:
|
28
|
-
secure: StdMcwf2erVzwfR45Rsw8hKmzaCdg7xl6UzEyPkyrNi1eKS/qeys8Ga1Q5I4HFlmybpBuOTk8dwiya0svGIJtABPUeIe7UjkmGDhS6Q+K+Gk8tNayrvOXgS71JJlqPdTVoWCPqNeqs/a+G9xa/T/TcQgZhh+57Jl9fH4hz/UaXhO0uVuL5LwHvKW6UX35xbAnIdPqMXF7finqF8nxU8nzaGvZ+UrUmnLDIRBeeW1eSopWQP7O+89BM+Nr7vC0oC/fJDcszTnZwYk6b38z9kD8Rvb3H0BktERmeR4QROdokq8BeXKj7uNluHZcr7KQc8qhJA7jAhx326A2oi8C+Yyl4Mz75WsQ+a+JFnVwYgpTXjd4/DnTEA5JUokO2DzsDmcPgnvOgOzAVWdtx3Q96GIcs9vU4X1HuIlctye05ylwVUbOE6up4m47NYLkVmjfYgUq3YVGrqprrlv5gqDqTPb8Il7l+plEobvZhM2cjGx+A/HkpVDgiqfE2IwP3BBeZp5Nkn2P4XUAoFtHkVuTVly55b/Jtnvo83UTv6qJWvTKjM7EorQT9+NlsWe64z5T6VVM6Z5FYHIofFpyRdqSTxcP2AHVpHFckw19px3tC4WiwZzgj4PuMvwcHsgK80wErYOJxlkVAUKuw1nh7g8KZpHjHXp1bCwM6pIK4F9PGMFY/g=
|
29
|
-
matrix:
|
30
|
-
allow_failures:
|
31
|
-
- rvm: ruby-head
|
32
|
-
env:
|
33
|
-
global:
|
34
|
-
- CC_TEST_REPORTER_ID=ae386af24f1ca076680045ecadf328fc77fd71bf6c014b5503d406d8bd87c42a
|