rubocop_auto_corrector 0.1.0 → 0.4.2
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 +113 -0
- data/.rubocop.yml +15 -8
- data/CHANGELOG.md +34 -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 +16 -2
- data/lib/rubocop_auto_corrector/version.rb +3 -1
- data/rubocop_auto_corrector.gemspec +9 -4
- metadata +32 -19
- 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: 11a12e8bf21d53f7aa83c186b3230db612841612c148872d7e3368291ed02e6d
|
4
|
+
data.tar.gz: e9af4a19ee58ac527c89f088038e3470e65e2ae1f4ec23dba24dd8221d14ec99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a53fd7dca79bbcea054873c0270363e4d7bba8b165afb9c56b766f20c87fd18093a66d4a194cf99d945d3f2fe57fc93e966fbbcb82c2119d574d8d9dd882eb2
|
7
|
+
data.tar.gz: 55b8554127b2387e0aba60c4bae279ea80c0ccf3c69a260a0f371563638167f325d83ad031cb7d0917ca336f28a3bf7b36651368aa966362599ab51640ee4027
|
@@ -0,0 +1,113 @@
|
|
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.5
|
30
|
+
- ruby:2.6
|
31
|
+
- ruby:2.7
|
32
|
+
- ruby:3.0
|
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
|
+
continue-on-error: true
|
65
|
+
|
66
|
+
- name: Set up git
|
67
|
+
run: |
|
68
|
+
set -xe
|
69
|
+
git config --global user.email "github-runner@example.com"
|
70
|
+
git config --global user.name "github runner"
|
71
|
+
|
72
|
+
- name: Run test
|
73
|
+
run: |
|
74
|
+
set -xe
|
75
|
+
bundle exec rspec
|
76
|
+
bundle exec rubocop -P
|
77
|
+
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
78
|
+
|
79
|
+
- name: Teardown Code Climate Test Reporter
|
80
|
+
uses: aktions/codeclimate-test-reporter@v1
|
81
|
+
with:
|
82
|
+
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
83
|
+
command: after-build
|
84
|
+
continue-on-error: true
|
85
|
+
|
86
|
+
- name: Slack Notification (not success)
|
87
|
+
uses: lazy-actions/slatify@master
|
88
|
+
if: "! success()"
|
89
|
+
continue-on-error: true
|
90
|
+
with:
|
91
|
+
job_name: ${{ format('*build* ({0})', matrix.ruby) }}
|
92
|
+
type: ${{ job.status }}
|
93
|
+
icon_emoji: ":octocat:"
|
94
|
+
url: ${{ secrets.SLACK_WEBHOOK }}
|
95
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
96
|
+
|
97
|
+
notify:
|
98
|
+
needs:
|
99
|
+
- test
|
100
|
+
|
101
|
+
runs-on: ubuntu-latest
|
102
|
+
|
103
|
+
steps:
|
104
|
+
- name: Slack Notification (success)
|
105
|
+
uses: lazy-actions/slatify@master
|
106
|
+
if: always()
|
107
|
+
continue-on-error: true
|
108
|
+
with:
|
109
|
+
job_name: '*build*'
|
110
|
+
type: ${{ job.status }}
|
111
|
+
icon_emoji: ":octocat:"
|
112
|
+
url: ${{ secrets.SLACK_WEBHOOK }}
|
113
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
data/.rubocop.yml
CHANGED
@@ -1,18 +1,25 @@
|
|
1
|
-
require: rubocop-rspec
|
2
|
-
|
3
1
|
AllCops:
|
4
|
-
|
2
|
+
# rubocop 1.13.0+ requires ruby 2.5+
|
3
|
+
TargetRubyVersion: 2.5
|
5
4
|
|
6
5
|
Exclude:
|
7
|
-
- 'spec/dummy
|
6
|
+
- 'spec/dummy/**/*'
|
8
7
|
|
9
|
-
#
|
8
|
+
# c.f. https://github.com/rubocop-hq/rubocop/blob/v0.72.0/config/default.yml#L60-L63
|
10
9
|
- 'node_modules/**/*'
|
11
10
|
- 'vendor/**/*'
|
12
11
|
- '.git/**/*'
|
13
12
|
|
14
|
-
|
15
|
-
|
13
|
+
NewCops: enable
|
14
|
+
SuggestExtensions: false
|
15
|
+
|
16
|
+
Metrics/BlockLength:
|
17
|
+
Exclude:
|
18
|
+
- '*.gemspec'
|
19
|
+
- 'spec/**/*_spec.rb'
|
20
|
+
|
21
|
+
Layout/LineLength:
|
22
|
+
Max: 110
|
16
23
|
|
17
|
-
|
24
|
+
Style/Documentation:
|
18
25
|
Enabled: false
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,38 @@
|
|
1
1
|
## master
|
2
|
-
[full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.
|
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
|
9
|
+
|
10
|
+
## v0.4.1
|
11
|
+
[full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.4.0...v0.4.1)
|
12
|
+
|
13
|
+
* Fixed. `auto_correctable?` doesn't work when cop has `.support_autocorrect?` and doesn't have `#autocorrect`
|
14
|
+
* https://github.com/sue445/rubocop_auto_corrector/pull/35
|
15
|
+
|
16
|
+
## v0.4.0
|
17
|
+
[full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.3.0...v0.4.0)
|
18
|
+
|
19
|
+
* Add `--all` option for `rubocop --auto-correct-all`
|
20
|
+
* https://github.com/sue445/rubocop_auto_corrector/pull/34
|
21
|
+
* 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.
|
22
|
+
* Upgrade rubocop and drop support ruby 2.3
|
23
|
+
* https://github.com/sue445/rubocop_auto_corrector/pull/31
|
24
|
+
|
25
|
+
## v0.3.0
|
26
|
+
[full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.2.0...v0.3.0)
|
27
|
+
|
28
|
+
* Support `rubocop-rails` gem (requires rubocop 0.72.0+ and ruby 2.3.0+)
|
29
|
+
* https://github.com/sue445/rubocop_auto_corrector/pull/18
|
30
|
+
|
31
|
+
## v0.2.0
|
32
|
+
[full changelog](http://github.com/sue445/rubocop_auto_corrector/compare/v0.1.0...v0.2.0)
|
33
|
+
|
34
|
+
* Support `rubocop-performance` gem
|
35
|
+
* https://github.com/sue445/rubocop_auto_corrector/pull/16
|
3
36
|
|
4
37
|
## v0.1.0
|
5
38
|
* 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,21 @@ 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
|
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
|
+
|
14
24
|
begin
|
15
25
|
require '#{gem_name}'
|
16
26
|
rescue LoadError
|
17
27
|
end
|
28
|
+
|
29
|
+
return #{cop_class_name}.support_autocorrect? if #{cop_class_name}.respond_to?(:support_autocorrect?)
|
18
30
|
#{cop_class_name}.new.respond_to?(:autocorrect)
|
19
31
|
RUBY
|
20
32
|
rescue NameError
|
@@ -35,6 +47,7 @@ module RubocopAutoCorrector
|
|
35
47
|
|
36
48
|
private
|
37
49
|
|
50
|
+
# rubocop:disable Metrics/MethodLength
|
38
51
|
def rubocop_cop_info
|
39
52
|
cop_class_suffix = cop_name.gsub('/', '::')
|
40
53
|
|
@@ -43,7 +56,7 @@ module RubocopAutoCorrector
|
|
43
56
|
['rubocop-rspec', "::RuboCop::Cop::#{cop_class_suffix}"]
|
44
57
|
when %r{^(FactoryBot|Capybara)/}, 'Rails/HttpStatus'
|
45
58
|
['rubocop-rspec', "::RuboCop::Cop::RSpec::#{cop_class_suffix}"]
|
46
|
-
when %r{^(Layout|Lint|Metrics|Naming|
|
59
|
+
when %r{^(Layout|Lint|Metrics|Naming|Security|Style|Bundler|Gemspec)/}
|
47
60
|
# Official cops
|
48
61
|
['rubocop', "::RuboCop::Cop::#{cop_class_suffix}"]
|
49
62
|
else
|
@@ -53,5 +66,6 @@ module RubocopAutoCorrector
|
|
53
66
|
["rubocop-#{department_snake}", "::RuboCop::Cop::#{cop_class_suffix}"]
|
54
67
|
end
|
55
68
|
end
|
69
|
+
# rubocop:enable Metrics/MethodLength
|
56
70
|
end
|
57
71
|
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.5.0'
|
39
|
+
|
40
|
+
spec.add_dependency 'rubocop', '>= 1.13.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.
|
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:
|
11
|
+
date: 2021-04-23 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:
|
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:
|
26
|
+
version: 1.13.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
|
@@ -170,7 +184,7 @@ metadata:
|
|
170
184
|
homepage_uri: https://github.com/sue445/rubocop_auto_corrector
|
171
185
|
source_code_uri: https://github.com/sue445/rubocop_auto_corrector
|
172
186
|
changelog_uri: https://github.com/sue445/rubocop_auto_corrector/blob/master/CHANGELOG.md
|
173
|
-
post_install_message:
|
187
|
+
post_install_message:
|
174
188
|
rdoc_options: []
|
175
189
|
require_paths:
|
176
190
|
- lib
|
@@ -178,16 +192,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
178
192
|
requirements:
|
179
193
|
- - ">="
|
180
194
|
- !ruby/object:Gem::Version
|
181
|
-
version:
|
195
|
+
version: 2.5.0
|
182
196
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
183
197
|
requirements:
|
184
198
|
- - ">="
|
185
199
|
- !ruby/object:Gem::Version
|
186
200
|
version: '0'
|
187
201
|
requirements: []
|
188
|
-
|
189
|
-
|
190
|
-
signing_key:
|
202
|
+
rubygems_version: 3.2.3
|
203
|
+
signing_key:
|
191
204
|
specification_version: 4
|
192
205
|
summary: Run `rubocop --auto-correct && git commit` with each cop.
|
193
206
|
test_files: []
|
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
|