pr_comet 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +18 -10
- data/.dependabot/config.yml +18 -0
- data/.rubocop.yml +1 -1
- data/.rubocop_challenge.yml +3 -0
- data/.rubocop_todo.yml +20 -1
- data/CHANGELOG.md +30 -1
- data/Gemfile.lock +56 -44
- data/lib/pr_comet.rb +2 -2
- data/lib/pr_comet/version.rb +1 -1
- data/pr_comet.gemspec +1 -1
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c18979cdb1bc3c50a7857c4a8e8bf9c06c56afab11da16fda57d163a83478b6
|
4
|
+
data.tar.gz: 2d4b3bf12b05fff708ebc295fd93245c07b7d4cd8362232af622e4eb1e5ff0b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f99d97208f8ba85fc29f16fa2f4b27f52608c7ad2887d39038d0ddc3f40887622ca9ece63555f8d620e239aa81f67020d460eac8dcf434b462753ecc548b4d9
|
7
|
+
data.tar.gz: 3cb935b033e6f0e9149fb07110d7176bc2195a5ec6c53e0dde9f5a3cd8419332d40a028fc70e3e6bd9466cfe746653839e83864fbcec3ea08930f46d0726c822
|
data/.circleci/config.yml
CHANGED
@@ -5,22 +5,22 @@
|
|
5
5
|
version: 2.1
|
6
6
|
|
7
7
|
orbs:
|
8
|
-
ruby-orbs: sue445/ruby-orbs@1.
|
8
|
+
ruby-orbs: sue445/ruby-orbs@1.6.1
|
9
9
|
code-climate: rvla/code-climate@0.0.2
|
10
10
|
|
11
11
|
references:
|
12
12
|
- &ruby_version
|
13
13
|
ruby_version:
|
14
14
|
type: enum
|
15
|
-
enum: ['2.
|
16
|
-
default: '
|
15
|
+
enum: ['2.5', '2.6', '2.7', '3.0', 'latest']
|
16
|
+
default: '3.0'
|
17
17
|
|
18
18
|
executors:
|
19
19
|
default:
|
20
20
|
parameters:
|
21
21
|
<<: *ruby_version
|
22
22
|
docker:
|
23
|
-
- image: circleci/ruby:<< parameters.ruby_version
|
23
|
+
- image: circleci/ruby:<< parameters.ruby_version >>
|
24
24
|
working_directory: ~/repo
|
25
25
|
|
26
26
|
commands:
|
@@ -97,6 +97,9 @@ commands:
|
|
97
97
|
<<: *ruby_version
|
98
98
|
steps:
|
99
99
|
- checkout
|
100
|
+
- run:
|
101
|
+
name: Install bundler v1.x for ruby 2.7
|
102
|
+
command: gem install bundler:1.17.3
|
100
103
|
- ruby-orbs/bundle-install:
|
101
104
|
cache_key_prefix: v1-dependencies-<< parameters.ruby_version >>
|
102
105
|
test_and_build:
|
@@ -124,7 +127,7 @@ jobs:
|
|
124
127
|
- code-climate/install
|
125
128
|
- code-climate/sum-coverage:
|
126
129
|
input: codeclimate.*.json
|
127
|
-
parts:
|
130
|
+
parts: 5
|
128
131
|
- code-climate/upload-coverage
|
129
132
|
rubocop:
|
130
133
|
executor: default
|
@@ -152,15 +155,18 @@ workflows:
|
|
152
155
|
|
153
156
|
commit:
|
154
157
|
jobs:
|
155
|
-
- build:
|
156
|
-
name: build_on_ruby_2.4
|
157
|
-
ruby_version: '2.4'
|
158
158
|
- build:
|
159
159
|
name: build_on_ruby_2.5
|
160
160
|
ruby_version: '2.5'
|
161
161
|
- build:
|
162
162
|
name: build_on_ruby_2.6
|
163
163
|
ruby_version: '2.6'
|
164
|
+
- build:
|
165
|
+
name: build_on_ruby_2.7
|
166
|
+
ruby_version: '2.7'
|
167
|
+
- build:
|
168
|
+
name: build_on_ruby_3.0
|
169
|
+
ruby_version: '3.0'
|
164
170
|
- build:
|
165
171
|
name: build_on_ruby_latest
|
166
172
|
ruby_version: 'latest'
|
@@ -168,16 +174,18 @@ workflows:
|
|
168
174
|
- yardoc
|
169
175
|
- upload-coverage:
|
170
176
|
requires:
|
171
|
-
- build_on_ruby_2.4
|
172
177
|
- build_on_ruby_2.5
|
173
178
|
- build_on_ruby_2.6
|
179
|
+
- build_on_ruby_2.7
|
180
|
+
- build_on_ruby_3.0
|
174
181
|
- build_on_ruby_latest
|
175
182
|
- release:
|
176
183
|
context: RubyGems API Key
|
177
184
|
requires:
|
178
|
-
- build_on_ruby_2.4
|
179
185
|
- build_on_ruby_2.5
|
180
186
|
- build_on_ruby_2.6
|
187
|
+
- build_on_ruby_2.7
|
188
|
+
- build_on_ruby_3.0
|
181
189
|
- build_on_ruby_latest
|
182
190
|
- rubocop
|
183
191
|
filters:
|
@@ -0,0 +1,18 @@
|
|
1
|
+
version: 1
|
2
|
+
update_configs:
|
3
|
+
- package_manager: "ruby:bundler"
|
4
|
+
directory: "/"
|
5
|
+
update_schedule: "live"
|
6
|
+
default_reviewers:
|
7
|
+
- "ryz310"
|
8
|
+
default_assignees:
|
9
|
+
- "ryz310"
|
10
|
+
default_labels:
|
11
|
+
- "dependabot"
|
12
|
+
automerged_updates:
|
13
|
+
- match:
|
14
|
+
dependency_type: "development"
|
15
|
+
update_type: "all"
|
16
|
+
- match:
|
17
|
+
dependency_type: "production"
|
18
|
+
update_type: "semver:patch"
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
@@ -1,12 +1,31 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2020-12-25 23:31:12 UTC using RuboCop version 1.7.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
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
8
8
|
|
9
|
+
# Offense count: 1
|
10
|
+
# Configuration parameters: Include.
|
11
|
+
# Include: **/*.gemspec
|
12
|
+
Gemspec/RequiredRubyVersion:
|
13
|
+
Exclude:
|
14
|
+
- 'pr_comet.gemspec'
|
15
|
+
|
16
|
+
# Offense count: 1
|
17
|
+
# Configuration parameters: AllowedMethods.
|
18
|
+
# AllowedMethods: enums
|
19
|
+
Lint/ConstantDefinitionInBlock:
|
20
|
+
Exclude:
|
21
|
+
- 'spec/pr_comet/command_line_spec.rb'
|
22
|
+
|
9
23
|
# Offense count: 1
|
10
24
|
RSpec/LeakyConstantDeclaration:
|
11
25
|
Exclude:
|
12
26
|
- 'spec/pr_comet/command_line_spec.rb'
|
27
|
+
|
28
|
+
# Offense count: 15
|
29
|
+
# Configuration parameters: AllowSubject.
|
30
|
+
RSpec/MultipleMemoizedHelpers:
|
31
|
+
Max: 9
|
data/CHANGELOG.md
CHANGED
@@ -1,12 +1,41 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
+
## v0.4.0 (Jan 04, 2021)
|
4
|
+
|
5
|
+
### Breaking Change
|
6
|
+
|
7
|
+
* [#176](https://github.com/ryz310/pr_comet/pull/176) End of support for Ruby 2.4 ([@ryz310](https://github.com/ryz310))
|
8
|
+
* [#210](https://github.com/ryz310/pr_comet/pull/210) Support ruby 3.0 ([@ryz310](https://github.com/ryz310))
|
9
|
+
|
10
|
+
### Rubocop Challenge
|
11
|
+
|
12
|
+
* [#127](https://github.com/ryz310/pr_comet/pull/127) Style/IfUnlessModifier-20200523233029 ([@ryz310](https://github.com/ryz310))
|
13
|
+
* [#129](https://github.com/ryz310/pr_comet/pull/129) Performance/StartWith-20200525233033 ([@ryz310](https://github.com/ryz310))
|
14
|
+
* [#204](https://github.com/ryz310/pr_comet/pull/204) Re-generate .rubocop_todo.yml with RuboCop v1.7.0 ([@ryz310](https://github.com/ryz310))
|
15
|
+
|
16
|
+
### Dependabot
|
17
|
+
|
18
|
+
* [#110](https://github.com/ryz310/pr_comet/pull/110) ryz310/dependabot/bundler/pry-byebug-3.9.0 ([@ryz310](https://github.com/ryz310))
|
19
|
+
* [#174](https://github.com/ryz310/pr_comet/pull/174) ryz310/dependabot/bundler/rspec-3.10.0 ([@ryz310](https://github.com/ryz310))
|
20
|
+
* [#198](https://github.com/ryz310/pr_comet/pull/198) ryz310/dependabot/bundler/rubocop-1.6.1 ([@ryz310](https://github.com/ryz310))
|
21
|
+
* [#201](https://github.com/ryz310/pr_comet/pull/201) ryz310/dependabot/bundler/rubocop-rspec-2.1.0 ([@ryz310](https://github.com/ryz310))
|
22
|
+
* [#202](https://github.com/ryz310/pr_comet/pull/202) ryz310/dependabot/bundler/rake-13.0.2 ([@ryz310](https://github.com/ryz310))
|
23
|
+
* [#205](https://github.com/ryz310/pr_comet/pull/205) ryz310/dependabot/bundler/yard-0.9.26 ([@ryz310](https://github.com/ryz310))
|
24
|
+
* [#206](https://github.com/ryz310/pr_comet/pull/206) ryz310/dependabot/bundler/octokit-4.20.0 ([@ryz310](https://github.com/ryz310))
|
25
|
+
* [#209](https://github.com/ryz310/pr_comet/pull/209) ryz310/dependabot/bundler/rubocop-performance-1.9.2 ([@ryz310](https://github.com/ryz310))
|
26
|
+
|
27
|
+
### Misc
|
28
|
+
|
29
|
+
* [#91](https://github.com/ryz310/pr_comet/pull/91) Update ruby-orbs orb to v1.6.0 ([@ryz310](https://github.com/ryz310))
|
30
|
+
* [#111](https://github.com/ryz310/pr_comet/pull/111) Edit dependabot configuration ([@ryz310](https://github.com/ryz310))
|
31
|
+
|
3
32
|
## v0.3.1 (Nov 02, 2019)
|
4
33
|
|
5
34
|
### Feature
|
6
35
|
|
7
36
|
* [#60](https://github.com/ryz310/pr_comet/pull/60) Stub pr comet ([@ryz310](https://github.com/ryz310))
|
8
37
|
|
9
|
-
###
|
38
|
+
### Rubocop Challenge
|
10
39
|
|
11
40
|
* [#37](https://github.com/ryz310/pr_comet/pull/37) Re-generate .rubocop_todo.yml with RuboCop v0.73.0 ([@ryz310](https://github.com/ryz310))
|
12
41
|
* [#38](https://github.com/ryz310/pr_comet/pull/38) Performance/RegexpMatch-20190729233036 ([@ryz310](https://github.com/ryz310))
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
pr_comet (0.
|
4
|
+
pr_comet (0.4.0)
|
5
5
|
octokit
|
6
6
|
rainbow
|
7
7
|
|
@@ -10,58 +10,70 @@ GEM
|
|
10
10
|
specs:
|
11
11
|
addressable (2.7.0)
|
12
12
|
public_suffix (>= 2.0.2, < 5.0)
|
13
|
-
ast (2.4.
|
14
|
-
byebug (11.
|
15
|
-
coderay (1.1.
|
16
|
-
diff-lcs (1.
|
17
|
-
docile (1.3.
|
18
|
-
faraday (
|
13
|
+
ast (2.4.1)
|
14
|
+
byebug (11.1.3)
|
15
|
+
coderay (1.1.3)
|
16
|
+
diff-lcs (1.4.4)
|
17
|
+
docile (1.3.4)
|
18
|
+
faraday (1.3.0)
|
19
|
+
faraday-net_http (~> 1.0)
|
19
20
|
multipart-post (>= 1.2, < 3)
|
20
|
-
|
21
|
-
|
22
|
-
|
21
|
+
ruby2_keywords
|
22
|
+
faraday-net_http (1.0.0)
|
23
|
+
json (2.5.1)
|
24
|
+
method_source (1.0.0)
|
23
25
|
multipart-post (2.1.1)
|
24
|
-
octokit (4.
|
26
|
+
octokit (4.20.0)
|
27
|
+
faraday (>= 0.9)
|
25
28
|
sawyer (~> 0.8.0, >= 0.5.3)
|
26
|
-
parallel (1.
|
27
|
-
parser (
|
28
|
-
ast (~> 2.4.
|
29
|
-
pry (0.
|
30
|
-
coderay (~> 1.1
|
31
|
-
method_source (~>
|
32
|
-
pry-byebug (3.
|
29
|
+
parallel (1.20.1)
|
30
|
+
parser (3.0.0.0)
|
31
|
+
ast (~> 2.4.1)
|
32
|
+
pry (0.13.1)
|
33
|
+
coderay (~> 1.1)
|
34
|
+
method_source (~> 1.0)
|
35
|
+
pry-byebug (3.9.0)
|
33
36
|
byebug (~> 11.0)
|
34
|
-
pry (~> 0.
|
35
|
-
public_suffix (4.0.
|
37
|
+
pry (~> 0.13.0)
|
38
|
+
public_suffix (4.0.6)
|
36
39
|
rainbow (3.0.0)
|
37
|
-
rake (13.0.
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
rspec-
|
42
|
-
|
43
|
-
rspec-
|
44
|
-
rspec-
|
40
|
+
rake (13.0.3)
|
41
|
+
regexp_parser (2.0.3)
|
42
|
+
rexml (3.2.4)
|
43
|
+
rspec (3.10.0)
|
44
|
+
rspec-core (~> 3.10.0)
|
45
|
+
rspec-expectations (~> 3.10.0)
|
46
|
+
rspec-mocks (~> 3.10.0)
|
47
|
+
rspec-core (3.10.1)
|
48
|
+
rspec-support (~> 3.10.0)
|
49
|
+
rspec-expectations (3.10.1)
|
45
50
|
diff-lcs (>= 1.2.0, < 2.0)
|
46
|
-
rspec-support (~> 3.
|
47
|
-
rspec-mocks (3.
|
51
|
+
rspec-support (~> 3.10.0)
|
52
|
+
rspec-mocks (3.10.1)
|
48
53
|
diff-lcs (>= 1.2.0, < 2.0)
|
49
|
-
rspec-support (~> 3.
|
50
|
-
rspec-support (3.
|
54
|
+
rspec-support (~> 3.10.0)
|
55
|
+
rspec-support (3.10.1)
|
51
56
|
rspec_junit_formatter (0.4.1)
|
52
57
|
rspec-core (>= 2, < 4, != 2.12.0)
|
53
|
-
rubocop (
|
54
|
-
jaro_winkler (~> 1.5.1)
|
58
|
+
rubocop (1.7.0)
|
55
59
|
parallel (~> 1.10)
|
56
|
-
parser (>= 2.
|
60
|
+
parser (>= 2.7.1.5)
|
57
61
|
rainbow (>= 2.2.2, < 4.0)
|
62
|
+
regexp_parser (>= 1.8, < 3.0)
|
63
|
+
rexml
|
64
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
58
65
|
ruby-progressbar (~> 1.7)
|
59
|
-
unicode-display_width (>= 1.4.0, <
|
60
|
-
rubocop-
|
61
|
-
|
62
|
-
rubocop-
|
63
|
-
rubocop (>= 0.
|
64
|
-
|
66
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
67
|
+
rubocop-ast (1.4.0)
|
68
|
+
parser (>= 2.7.1.5)
|
69
|
+
rubocop-performance (1.9.2)
|
70
|
+
rubocop (>= 0.90.0, < 2.0)
|
71
|
+
rubocop-ast (>= 0.4.0)
|
72
|
+
rubocop-rspec (2.1.0)
|
73
|
+
rubocop (~> 1.0)
|
74
|
+
rubocop-ast (>= 1.1.0)
|
75
|
+
ruby-progressbar (1.11.0)
|
76
|
+
ruby2_keywords (0.0.2)
|
65
77
|
sawyer (0.8.2)
|
66
78
|
addressable (>= 2.3.5)
|
67
79
|
faraday (> 0.8, < 2.0)
|
@@ -70,8 +82,8 @@ GEM
|
|
70
82
|
json (>= 1.8, < 3)
|
71
83
|
simplecov-html (~> 0.10.0)
|
72
84
|
simplecov-html (0.10.2)
|
73
|
-
unicode-display_width (1.
|
74
|
-
yard (0.9.
|
85
|
+
unicode-display_width (1.7.0)
|
86
|
+
yard (0.9.26)
|
75
87
|
|
76
88
|
PLATFORMS
|
77
89
|
ruby
|
@@ -86,7 +98,7 @@ DEPENDENCIES
|
|
86
98
|
rubocop
|
87
99
|
rubocop-performance
|
88
100
|
rubocop-rspec
|
89
|
-
simplecov
|
101
|
+
simplecov (= 0.17.1)
|
90
102
|
yard
|
91
103
|
|
92
104
|
BUNDLED WITH
|
data/lib/pr_comet.rb
CHANGED
@@ -74,10 +74,10 @@ class PrComet
|
|
74
74
|
return false if options[:validate] && !git_condition_valid?
|
75
75
|
|
76
76
|
git.push(github_token_url, topic_branch)
|
77
|
-
pr_number = github.create_pull_request(generate_create_pr_options(options))
|
77
|
+
pr_number = github.create_pull_request(**generate_create_pr_options(**options))
|
78
78
|
github.add_labels(pr_number, *options[:labels]) unless options[:labels].nil?
|
79
79
|
unless options[:project_column_name].nil?
|
80
|
-
github.add_to_project(pr_number, generate_add_to_project_options(options))
|
80
|
+
github.add_to_project(pr_number, **generate_add_to_project_options(**options))
|
81
81
|
end
|
82
82
|
true
|
83
83
|
end
|
data/lib/pr_comet/version.rb
CHANGED
data/pr_comet.gemspec
CHANGED
@@ -33,6 +33,6 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_development_dependency 'rubocop'
|
34
34
|
spec.add_development_dependency 'rubocop-performance'
|
35
35
|
spec.add_development_dependency 'rubocop-rspec'
|
36
|
-
spec.add_development_dependency 'simplecov'
|
36
|
+
spec.add_development_dependency 'simplecov', '0.17.1'
|
37
37
|
spec.add_development_dependency 'yard'
|
38
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pr_comet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ryz310
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|
@@ -154,16 +154,16 @@ dependencies:
|
|
154
154
|
name: simplecov
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- -
|
157
|
+
- - '='
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
159
|
+
version: 0.17.1
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- -
|
164
|
+
- - '='
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
166
|
+
version: 0.17.1
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: yard
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -186,11 +186,13 @@ extensions: []
|
|
186
186
|
extra_rdoc_files: []
|
187
187
|
files:
|
188
188
|
- ".circleci/config.yml"
|
189
|
+
- ".dependabot/config.yml"
|
189
190
|
- ".envrc.skeleton"
|
190
191
|
- ".gem_comet.yml"
|
191
192
|
- ".gitignore"
|
192
193
|
- ".rspec"
|
193
194
|
- ".rubocop.yml"
|
195
|
+
- ".rubocop_challenge.yml"
|
194
196
|
- ".rubocop_todo.yml"
|
195
197
|
- CHANGELOG.md
|
196
198
|
- CODE_OF_CONDUCT.md
|
@@ -231,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
231
233
|
- !ruby/object:Gem::Version
|
232
234
|
version: '0'
|
233
235
|
requirements: []
|
234
|
-
rubygems_version: 3.
|
236
|
+
rubygems_version: 3.2.3
|
235
237
|
signing_key:
|
236
238
|
specification_version: 4
|
237
239
|
summary: Create a lots of pull request like comets
|