rubocop_challenger 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.circleci/config.yml +22 -10
- data/.rubocop_todo.yml +1 -1
- data/Gemfile.lock +5 -14
- data/README.md +1 -1
- data/bin/create_release_pr +3 -0
- data/challenger.gemspec +1 -1
- data/lib/rubocop_challenger/version.rb +1 -1
- metadata +15 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 37ec8fd817642a69fe7bb68c99b6517f0058d7e8bc869b92f102e8b9e0ea1212
|
|
4
|
+
data.tar.gz: 04caf2ba5be3f8b41b27dc7fcaf7fb69eea7cbc466e9be1521c614dfe79dffb5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 750395303ee97a2cd991531a64ed837635537e85a3cbefa6e43efda0a0e970bdc37e74b11f632a74079f4afa1b3f245cbfc71910b0e09992365ba9117918f6eb
|
|
7
|
+
data.tar.gz: f6a587358270e6f32233014a931b62d4df600a22e9931af220553f6765c674859ddf80c485a3f6819ac95da18421de8ad5e8fb10e5d7c10b78d3d8e285db517a
|
data/.circleci/config.yml
CHANGED
|
@@ -5,6 +5,13 @@
|
|
|
5
5
|
version: 2
|
|
6
6
|
|
|
7
7
|
references:
|
|
8
|
+
- &download_cc_test_reporter
|
|
9
|
+
run:
|
|
10
|
+
name: Download cc-test-reporter
|
|
11
|
+
command: |
|
|
12
|
+
mkdir -p tmp/
|
|
13
|
+
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./tmp/cc-test-reporter
|
|
14
|
+
chmod +x ./tmp/cc-test-reporter
|
|
8
15
|
- &restore_bundle_install_cache
|
|
9
16
|
restore_cache:
|
|
10
17
|
keys:
|
|
@@ -20,24 +27,29 @@ references:
|
|
|
20
27
|
paths:
|
|
21
28
|
- ./vendor/bundle
|
|
22
29
|
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
|
|
30
|
+
- &run_rspec
|
|
31
|
+
run:
|
|
32
|
+
name: Run Rspec
|
|
33
|
+
command: |
|
|
34
|
+
mkdir /tmp/test-results
|
|
35
|
+
TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
|
|
36
|
+
./tmp/cc-test-reporter before-build
|
|
37
|
+
bundle exec rspec --format documentation \
|
|
38
|
+
--color \
|
|
39
|
+
--format RspecJunitFormatter \
|
|
40
|
+
--out /tmp/test-results/rspec.xml \
|
|
41
|
+
$TEST_FILES
|
|
42
|
+
./tmp/cc-test-reporter after-build --coverage-input-type simplecov --exit-code $?
|
|
23
43
|
|
|
24
44
|
- &build
|
|
25
45
|
working_directory: ~/repo
|
|
26
46
|
steps:
|
|
27
47
|
- checkout
|
|
48
|
+
- *download_cc_test_reporter
|
|
28
49
|
- *restore_bundle_install_cache
|
|
29
50
|
- *bundle_install
|
|
30
51
|
- *save_bundle_install_cache
|
|
31
|
-
-
|
|
32
|
-
name: Run Rspec
|
|
33
|
-
command: |
|
|
34
|
-
mkdir /tmp/test-results
|
|
35
|
-
TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
|
|
36
|
-
bundle exec rspec --format documentation \
|
|
37
|
-
--color \
|
|
38
|
-
--format RspecJunitFormatter \
|
|
39
|
-
--out /tmp/test-results/rspec.xml \
|
|
40
|
-
$TEST_FILES
|
|
52
|
+
- *run_rspec
|
|
41
53
|
- store_test_results:
|
|
42
54
|
path: /tmp/test-results
|
|
43
55
|
- store_artifacts:
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on 2018-11-
|
|
3
|
+
# on 2018-11-04 14:59:09 +0900 using RuboCop version 0.60.0.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
rubocop_challenger (0.5.
|
|
4
|
+
rubocop_challenger (0.5.2)
|
|
5
5
|
pr-daikou (~> 0.2.0)
|
|
6
6
|
rubocop
|
|
7
7
|
rubocop-rspec
|
|
@@ -12,12 +12,6 @@ GEM
|
|
|
12
12
|
remote: https://rubygems.org/
|
|
13
13
|
specs:
|
|
14
14
|
ast (2.4.0)
|
|
15
|
-
coveralls (0.8.22)
|
|
16
|
-
json (>= 1.8, < 3)
|
|
17
|
-
simplecov (~> 0.16.1)
|
|
18
|
-
term-ansicolor (~> 1.3)
|
|
19
|
-
thor (~> 0.19.4)
|
|
20
|
-
tins (~> 1.6)
|
|
21
15
|
diff-lcs (1.3)
|
|
22
16
|
docile (1.3.1)
|
|
23
17
|
jaro_winkler (1.5.1)
|
|
@@ -52,18 +46,15 @@ GEM
|
|
|
52
46
|
rainbow (>= 2.2.2, < 4.0)
|
|
53
47
|
ruby-progressbar (~> 1.7)
|
|
54
48
|
unicode-display_width (~> 1.4.0)
|
|
55
|
-
rubocop-rspec (1.30.
|
|
56
|
-
rubocop (>= 0.
|
|
49
|
+
rubocop-rspec (1.30.1)
|
|
50
|
+
rubocop (>= 0.60.0)
|
|
57
51
|
ruby-progressbar (1.10.0)
|
|
58
52
|
simplecov (0.16.1)
|
|
59
53
|
docile (~> 1.1)
|
|
60
54
|
json (>= 1.8, < 3)
|
|
61
55
|
simplecov-html (~> 0.10.0)
|
|
62
56
|
simplecov-html (0.10.2)
|
|
63
|
-
|
|
64
|
-
tins (~> 1.0)
|
|
65
|
-
thor (0.19.4)
|
|
66
|
-
tins (1.17.0)
|
|
57
|
+
thor (0.20.0)
|
|
67
58
|
unicode-display_width (1.4.0)
|
|
68
59
|
yard (0.9.16)
|
|
69
60
|
|
|
@@ -72,11 +63,11 @@ PLATFORMS
|
|
|
72
63
|
|
|
73
64
|
DEPENDENCIES
|
|
74
65
|
bundler (~> 1.16)
|
|
75
|
-
coveralls
|
|
76
66
|
rake (~> 10.0)
|
|
77
67
|
rspec
|
|
78
68
|
rspec_junit_formatter
|
|
79
69
|
rubocop_challenger!
|
|
70
|
+
simplecov
|
|
80
71
|
|
|
81
72
|
BUNDLED WITH
|
|
82
73
|
1.16.6
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Rubocop Challenger
|
|
2
2
|
|
|
3
|
-
[](https://circleci.com/gh/ryz310/rubocop_challenger/tree/master) [](https://badge.fury.io/rb/rubocop_challenger) [](https://circleci.com/gh/ryz310/rubocop_challenger/tree/master) [](https://badge.fury.io/rb/rubocop_challenger) [](https://codeclimate.com/github/ryz310/rubocop_challenger/maintainability) [](https://codeclimate.com/github/ryz310/rubocop_challenger/test_coverage) [](https://waffle.io/ryz310/rubocop_challenger)
|
|
4
4
|
|
|
5
5
|
If you introduce [`rubocop`](https://github.com/rubocop-hq/rubocop) to an existing Rails project later, you will use [`$ rubocop --auto-gen-config`](https://github.com/rubocop-hq/rubocop/blob/master/manual/configuration.md#automatically-generated-configuration). But it will make a huge `.rubocop_todo.yml` and make you despair.
|
|
6
6
|
On the other hand, `rubocop` has [`--auto-correct`](https://github.com/rubocop-hq/rubocop/blob/master/manual/basic_usage.md#other-useful-command-line-flags) option, it is possible to automatically repair the writing which does not conform to the rule. But since it occasionally destroys your code, it is quite dangerous to apply all at once.
|
data/bin/create_release_pr
CHANGED
data/challenger.gemspec
CHANGED
|
@@ -29,8 +29,8 @@ Gem::Specification.new do |spec|
|
|
|
29
29
|
spec.add_runtime_dependency 'yard'
|
|
30
30
|
|
|
31
31
|
spec.add_development_dependency 'bundler', '~> 1.16'
|
|
32
|
-
spec.add_development_dependency 'coveralls'
|
|
33
32
|
spec.add_development_dependency 'rake', '~> 10.0'
|
|
34
33
|
spec.add_development_dependency 'rspec'
|
|
35
34
|
spec.add_development_dependency 'rspec_junit_formatter'
|
|
35
|
+
spec.add_development_dependency 'simplecov'
|
|
36
36
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubocop_challenger
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ryosuke_sato
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-11-
|
|
11
|
+
date: 2018-11-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pr-daikou
|
|
@@ -95,35 +95,35 @@ dependencies:
|
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
96
|
version: '1.16'
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
98
|
-
name:
|
|
98
|
+
name: rake
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
|
100
100
|
requirements:
|
|
101
|
-
- - "
|
|
101
|
+
- - "~>"
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: '0'
|
|
103
|
+
version: '10.0'
|
|
104
104
|
type: :development
|
|
105
105
|
prerelease: false
|
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
|
108
|
-
- - "
|
|
108
|
+
- - "~>"
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
|
-
version: '0'
|
|
110
|
+
version: '10.0'
|
|
111
111
|
- !ruby/object:Gem::Dependency
|
|
112
|
-
name:
|
|
112
|
+
name: rspec
|
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
|
114
114
|
requirements:
|
|
115
|
-
- - "
|
|
115
|
+
- - ">="
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: '
|
|
117
|
+
version: '0'
|
|
118
118
|
type: :development
|
|
119
119
|
prerelease: false
|
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
121
|
requirements:
|
|
122
|
-
- - "
|
|
122
|
+
- - ">="
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: '
|
|
124
|
+
version: '0'
|
|
125
125
|
- !ruby/object:Gem::Dependency
|
|
126
|
-
name:
|
|
126
|
+
name: rspec_junit_formatter
|
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
|
128
128
|
requirements:
|
|
129
129
|
- - ">="
|
|
@@ -137,7 +137,7 @@ dependencies:
|
|
|
137
137
|
- !ruby/object:Gem::Version
|
|
138
138
|
version: '0'
|
|
139
139
|
- !ruby/object:Gem::Dependency
|
|
140
|
-
name:
|
|
140
|
+
name: simplecov
|
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
|
142
142
|
requirements:
|
|
143
143
|
- - ">="
|
|
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
211
211
|
version: '0'
|
|
212
212
|
requirements: []
|
|
213
213
|
rubyforge_project:
|
|
214
|
-
rubygems_version: 2.7.
|
|
214
|
+
rubygems_version: 2.7.8
|
|
215
215
|
signing_key:
|
|
216
216
|
specification_version: 4
|
|
217
217
|
summary: Help to run `$ rubocop -a` on your CI
|