pr_comet 0.4.0 → 0.7.0

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: 2c18979cdb1bc3c50a7857c4a8e8bf9c06c56afab11da16fda57d163a83478b6
4
- data.tar.gz: 2d4b3bf12b05fff708ebc295fd93245c07b7d4cd8362232af622e4eb1e5ff0b7
3
+ metadata.gz: 1c711d343b977403bb5c89f1c931d975fd60b1f7f3fac7110ddc66d4fe5064b6
4
+ data.tar.gz: c2a321df9034f36f6de05fee6e1eebec97fdafc5bb25f0072758c07c5890a157
5
5
  SHA512:
6
- metadata.gz: 8f99d97208f8ba85fc29f16fa2f4b27f52608c7ad2887d39038d0ddc3f40887622ca9ece63555f8d620e239aa81f67020d460eac8dcf434b462753ecc548b4d9
7
- data.tar.gz: 3cb935b033e6f0e9149fb07110d7176bc2195a5ec6c53e0dde9f5a3cd8419332d40a028fc70e3e6bd9466cfe746653839e83864fbcec3ea08930f46d0726c822
6
+ metadata.gz: cd1e9316fb1206d4b9a8b2ced42880e0ae45f1831b4db111eb918a22d2eccce5310a405a9af1226c345a708f6292e7cddba278689fb49e6687ed73e9d1e63dbb
7
+ data.tar.gz: 84797bc7b7578e9ad19c330d20a789f8fa90f558cf8fac1665f822f460b89676be7b6c2663771c574780c6f4711d2124a9361927fc98f7a05d127f655e681880
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.6.1
8
+ ruby-orbs: sue445/ruby-orbs@1.6.2
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.5', '2.6', '2.7', '3.0', 'latest']
16
- default: '3.0'
15
+ enum: ["2.7", "3.0", "3.1"]
16
+ default: "3.1"
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: cimg/ruby:<< parameters.ruby_version >>
24
24
  working_directory: ~/repo
25
25
 
26
26
  commands:
@@ -42,7 +42,7 @@ commands:
42
42
  - code-climate/format-coverage:
43
43
  input-type: simplecov
44
44
  prefix: $(readlink -f .)
45
- coverage-file: coverage/.resultset.json
45
+ coverage-file: coverage/coverage.json
46
46
  output: coverage/codeclimate.$CIRCLE_BUILD_NUM.json
47
47
  - persist_to_workspace:
48
48
  root: coverage
@@ -59,7 +59,7 @@ commands:
59
59
  name: Run RuboCop
60
60
  command: bundle exec rubocop
61
61
  yardoc:
62
- description: 'Generate YARDoc'
62
+ description: "Generate YARDoc"
63
63
  steps:
64
64
  - run: bundle exec yardoc -o ./yardoc
65
65
  - store_artifacts:
@@ -75,7 +75,7 @@ commands:
75
75
  - run:
76
76
  name: Rubocop Challenge
77
77
  command: |
78
- gem install rubocop_challenger --pre
78
+ gem install rubocop_challenger
79
79
  rubocop_challenger go --email=ryz310@gmail.com --name=ryz310
80
80
  release:
81
81
  description: Release to RubyGems.org
@@ -97,9 +97,6 @@ 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
103
100
  - ruby-orbs/bundle-install:
104
101
  cache_key_prefix: v1-dependencies-<< parameters.ruby_version >>
105
102
  test_and_build:
@@ -127,7 +124,7 @@ jobs:
127
124
  - code-climate/install
128
125
  - code-climate/sum-coverage:
129
126
  input: codeclimate.*.json
130
- parts: 5
127
+ parts: 3
131
128
  - code-climate/upload-coverage
132
129
  rubocop:
133
130
  executor: default
@@ -155,38 +152,28 @@ workflows:
155
152
 
156
153
  commit:
157
154
  jobs:
158
- - build:
159
- name: build_on_ruby_2.5
160
- ruby_version: '2.5'
161
- - build:
162
- name: build_on_ruby_2.6
163
- ruby_version: '2.6'
164
155
  - build:
165
156
  name: build_on_ruby_2.7
166
- ruby_version: '2.7'
157
+ ruby_version: "2.7"
167
158
  - build:
168
159
  name: build_on_ruby_3.0
169
- ruby_version: '3.0'
160
+ ruby_version: "3.0"
170
161
  - build:
171
- name: build_on_ruby_latest
172
- ruby_version: 'latest'
162
+ name: build_on_ruby_3.1
163
+ ruby_version: "3.1"
173
164
  - rubocop
174
165
  - yardoc
175
166
  - upload-coverage:
176
167
  requires:
177
- - build_on_ruby_2.5
178
- - build_on_ruby_2.6
179
168
  - build_on_ruby_2.7
180
169
  - build_on_ruby_3.0
181
- - build_on_ruby_latest
170
+ - build_on_ruby_3.1
182
171
  - release:
183
172
  context: RubyGems API Key
184
173
  requires:
185
- - build_on_ruby_2.5
186
- - build_on_ruby_2.6
187
174
  - build_on_ruby_2.7
188
175
  - build_on_ruby_3.0
189
- - build_on_ruby_latest
176
+ - build_on_ruby_3.1
190
177
  - rubocop
191
178
  filters:
192
179
  branches:
data/.gem_comet.yml CHANGED
@@ -6,10 +6,19 @@
6
6
  # $ gem_comet changelog
7
7
  # $ gem_comet versions
8
8
 
9
- version: 1.1
9
+ version: 1.2
10
10
 
11
11
  release:
12
12
  base_branch: master
13
13
  release_branch: production
14
14
  version_file_path: lib/pr_comet/version.rb
15
15
  changelog_file_path: CHANGELOG.md
16
+ changelog:
17
+ categories:
18
+ - Feature
19
+ - Bugfix
20
+ - Security
21
+ - Breaking Change
22
+ - Rubocop Challenge
23
+ - Dependabot
24
+ - Misc
@@ -0,0 +1,19 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "08:00"
8
+ timezone: Japan
9
+ open-pull-requests-limit: 10
10
+ reviewers:
11
+ - ryz310
12
+ assignees:
13
+ - ryz310
14
+ labels:
15
+ - dependabot
16
+ ignore:
17
+ - dependency-name: simplecov
18
+ versions:
19
+ - ">= 0.19.a, < 0.20"
data/.rubocop.yml CHANGED
@@ -5,12 +5,12 @@ require:
5
5
  inherit_from: .rubocop_todo.yml
6
6
 
7
7
  AllCops:
8
- TargetRubyVersion: 2.5
8
+ TargetRubyVersion: 2.7
9
9
 
10
10
  Metrics/BlockLength:
11
11
  Exclude:
12
- - 'pr_comet.gemspec'
13
- - 'spec/**/*'
12
+ - "pr_comet.gemspec"
13
+ - "spec/**/*"
14
14
 
15
15
  RSpec/NestedGroups:
16
16
  Max: 4
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2020-12-25 23:31:12 UTC using RuboCop version 1.7.0.
3
+ # on 2022-07-09 23:31:11 UTC using RuboCop version 1.31.2.
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
@@ -13,18 +13,6 @@ Gemspec/RequiredRubyVersion:
13
13
  Exclude:
14
14
  - 'pr_comet.gemspec'
15
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
-
23
- # Offense count: 1
24
- RSpec/LeakyConstantDeclaration:
25
- Exclude:
26
- - 'spec/pr_comet/command_line_spec.rb'
27
-
28
16
  # Offense count: 15
29
17
  # Configuration parameters: AllowSubject.
30
18
  RSpec/MultipleMemoizedHelpers:
data/CHANGELOG.md CHANGED
@@ -1,88 +1,157 @@
1
1
  # Change log
2
2
 
3
+ ## v0.7.0 (Jul 14, 2022)
4
+
5
+ ### Breaking Change
6
+
7
+ - [#347](https://github.com/ryz310/pr_comet/pull/347) End of support for Ruby 2.6 ([@ryz310](https://github.com/ryz310))
8
+
9
+ ### Rubocop Challenge
10
+
11
+ - [#344](https://github.com/ryz310/pr_comet/pull/344) Re-generate .rubocop_todo.yml with RuboCop v1.31.2 ([@ryz310](https://github.com/ryz310))
12
+
13
+ ### Dependabot
14
+
15
+ - [#333](https://github.com/ryz310/pr_comet/pull/333) Bump yard from 0.9.27 to 0.9.28 ([@ryz310](https://github.com/ryz310))
16
+ - [#337](https://github.com/ryz310/pr_comet/pull/337) Bump rubocop-performance from 1.14.1 to 1.14.2 ([@ryz310](https://github.com/ryz310))
17
+ - [#346](https://github.com/ryz310/pr_comet/pull/346) Bump octokit from 4.25.1 to 5.1.0 ([@ryz310](https://github.com/ryz310))
18
+
19
+ ## v0.6.0 (May 08, 2022)
20
+
21
+ ### Feature
22
+
23
+ - [#321](https://github.com/ryz310/pr_comet/pull/321) display git status on error. ([@mathieujobin](https://github.com/mathieujobin))
24
+
25
+ ### Breaking Change
26
+
27
+ - [#323](https://github.com/ryz310/pr_comet/pull/323) Support ruby 3.1 and close 2.5 ([@ryz310](https://github.com/ryz310))
28
+
29
+ ### Rubocop Challenge
30
+
31
+ - [#320](https://github.com/ryz310/pr_comet/pull/320) Re-generate .rubocop_todo.yml with RuboCop v1.28.2 ([@ryz310](https://github.com/ryz310))
32
+
33
+ ### Dependabot
34
+
35
+ - [#247](https://github.com/ryz310/pr_comet/pull/247) ryz310/dependabot/bundler/octokit-4.21.0 ([@ryz310](https://github.com/ryz310))
36
+ - [#278](https://github.com/ryz310/pr_comet/pull/278) Bump rake from 13.0.5 to 13.0.6 ([@ryz310](https://github.com/ryz310))
37
+ - [#302](https://github.com/ryz310/pr_comet/pull/302) Bump yard from 0.9.26 to 0.9.27 ([@ryz310](https://github.com/ryz310))
38
+ - [#308](https://github.com/ryz310/pr_comet/pull/308) ryz310/dependabot/bundler/rspec_junit_formatter-0.5.1 ([@ryz310](https://github.com/ryz310))
39
+ - [#309](https://github.com/ryz310/pr_comet/pull/309) Bump rainbow from 3.0.0 to 3.1.1 ([@ryz310](https://github.com/ryz310))
40
+ - [#310](https://github.com/ryz310/pr_comet/pull/310) Bump octokit from 4.21.0 to 4.22.0 ([@ryz310](https://github.com/ryz310))
41
+ - [#314](https://github.com/ryz310/pr_comet/pull/314) Bump rspec from 3.10.0 to 3.11.0 ([@ryz310](https://github.com/ryz310))
42
+
43
+ ### Misc
44
+
45
+ - [#229](https://github.com/ryz310/pr_comet/pull/229) Update ruby-orbs orb to v1.6.2 ([@ryz310](https://github.com/ryz310))
46
+
47
+ ## v0.5.1 (Jan 11, 2021)
48
+
49
+ ### Bugfix
50
+
51
+ - [#220](https://github.com/ryz310/pr_comet/pull/220) Fix verbose option ([@ryz310](https://github.com/ryz310))
52
+
53
+ ### Dependabot
54
+
55
+ - [#199](https://github.com/ryz310/pr_comet/pull/199) Update bundler requirement from ~> 1.16 to ~> 2.2 ([@ryz310](https://github.com/ryz310))
56
+ - [#219](https://github.com/ryz310/pr_comet/pull/219) ryz310/dependabot/bundler/rubocop-1.8.1 ([@ryz310](https://github.com/ryz310))
57
+
58
+ ## v0.5.0 (Jan 11, 2021)
59
+
60
+ ### Feature
61
+
62
+ - [#216](https://github.com/ryz310/pr_comet/pull/216) Add verbose option ([@ryz310](https://github.com/ryz310))
63
+
64
+ ### Dependabot
65
+
66
+ - [#215](https://github.com/ryz310/pr_comet/pull/215) Update simplecov requirement from = 0.17.1 to = 0.21.2 ([@ryz310](https://github.com/ryz310))
67
+ - [#214](https://github.com/ryz310/pr_comet/pull/214) ryz310/dependabot/bundler/rubocop-1.8.0 ([@ryz310](https://github.com/ryz310))
68
+
3
69
  ## v0.4.0 (Jan 04, 2021)
4
70
 
71
+ ### Feature
72
+
73
+ - [#210](https://github.com/ryz310/pr_comet/pull/210) Support ruby 3.0 ([@ryz310](https://github.com/ryz310))
74
+
5
75
  ### Breaking Change
6
76
 
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))
77
+ - [#176](https://github.com/ryz310/pr_comet/pull/176) End of support for Ruby 2.4 ([@ryz310](https://github.com/ryz310))
9
78
 
10
79
  ### Rubocop Challenge
11
80
 
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))
81
+ - [#127](https://github.com/ryz310/pr_comet/pull/127) Style/IfUnlessModifier-20200523233029 ([@ryz310](https://github.com/ryz310))
82
+ - [#129](https://github.com/ryz310/pr_comet/pull/129) Performance/StartWith-20200525233033 ([@ryz310](https://github.com/ryz310))
83
+ - [#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
84
 
16
85
  ### Dependabot
17
86
 
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))
87
+ - [#110](https://github.com/ryz310/pr_comet/pull/110) ryz310/dependabot/bundler/pry-byebug-3.9.0 ([@ryz310](https://github.com/ryz310))
88
+ - [#174](https://github.com/ryz310/pr_comet/pull/174) ryz310/dependabot/bundler/rspec-3.10.0 ([@ryz310](https://github.com/ryz310))
89
+ - [#198](https://github.com/ryz310/pr_comet/pull/198) ryz310/dependabot/bundler/rubocop-1.6.1 ([@ryz310](https://github.com/ryz310))
90
+ - [#201](https://github.com/ryz310/pr_comet/pull/201) ryz310/dependabot/bundler/rubocop-rspec-2.1.0 ([@ryz310](https://github.com/ryz310))
91
+ - [#202](https://github.com/ryz310/pr_comet/pull/202) ryz310/dependabot/bundler/rake-13.0.2 ([@ryz310](https://github.com/ryz310))
92
+ - [#205](https://github.com/ryz310/pr_comet/pull/205) ryz310/dependabot/bundler/yard-0.9.26 ([@ryz310](https://github.com/ryz310))
93
+ - [#206](https://github.com/ryz310/pr_comet/pull/206) ryz310/dependabot/bundler/octokit-4.20.0 ([@ryz310](https://github.com/ryz310))
94
+ - [#209](https://github.com/ryz310/pr_comet/pull/209) ryz310/dependabot/bundler/rubocop-performance-1.9.2 ([@ryz310](https://github.com/ryz310))
26
95
 
27
96
  ### Misc
28
97
 
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))
98
+ - [#91](https://github.com/ryz310/pr_comet/pull/91) Update ruby-orbs orb to v1.6.0 ([@ryz310](https://github.com/ryz310))
99
+ - [#111](https://github.com/ryz310/pr_comet/pull/111) Edit dependabot configuration ([@ryz310](https://github.com/ryz310))
31
100
 
32
101
  ## v0.3.1 (Nov 02, 2019)
33
102
 
34
103
  ### Feature
35
104
 
36
- * [#60](https://github.com/ryz310/pr_comet/pull/60) Stub pr comet ([@ryz310](https://github.com/ryz310))
105
+ - [#60](https://github.com/ryz310/pr_comet/pull/60) Stub pr comet ([@ryz310](https://github.com/ryz310))
37
106
 
38
107
  ### Rubocop Challenge
39
108
 
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))
41
- * [#38](https://github.com/ryz310/pr_comet/pull/38) Performance/RegexpMatch-20190729233036 ([@ryz310](https://github.com/ryz310))
42
- * [#39](https://github.com/ryz310/pr_comet/pull/39) Re-generate .rubocop_todo.yml with RuboCop v0.74.0 ([@ryz310](https://github.com/ryz310))
43
- * [#45](https://github.com/ryz310/pr_comet/pull/45) Re-generate .rubocop_todo.yml with RuboCop v0.75.0 ([@ryz310](https://github.com/ryz310))
44
- * [#50](https://github.com/ryz310/pr_comet/pull/50) Re-generate .rubocop_todo.yml with RuboCop v0.75.1 ([@ryz310](https://github.com/ryz310))
45
- * [#55](https://github.com/ryz310/pr_comet/pull/55) Re-generate .rubocop_todo.yml with RuboCop v0.76.0 ([@ryz310](https://github.com/ryz310))
109
+ - [#37](https://github.com/ryz310/pr_comet/pull/37) Re-generate .rubocop_todo.yml with RuboCop v0.73.0 ([@ryz310](https://github.com/ryz310))
110
+ - [#38](https://github.com/ryz310/pr_comet/pull/38) Performance/RegexpMatch-20190729233036 ([@ryz310](https://github.com/ryz310))
111
+ - [#39](https://github.com/ryz310/pr_comet/pull/39) Re-generate .rubocop_todo.yml with RuboCop v0.74.0 ([@ryz310](https://github.com/ryz310))
112
+ - [#45](https://github.com/ryz310/pr_comet/pull/45) Re-generate .rubocop_todo.yml with RuboCop v0.75.0 ([@ryz310](https://github.com/ryz310))
113
+ - [#50](https://github.com/ryz310/pr_comet/pull/50) Re-generate .rubocop_todo.yml with RuboCop v0.75.1 ([@ryz310](https://github.com/ryz310))
114
+ - [#55](https://github.com/ryz310/pr_comet/pull/55) Re-generate .rubocop_todo.yml with RuboCop v0.76.0 ([@ryz310](https://github.com/ryz310))
46
115
 
47
116
  ### Misc
48
117
 
49
- * [#44](https://github.com/ryz310/pr_comet/pull/44) Bump rubocop-rspec from 1.34.1 to 1.36.0 ([@ryz310](https://github.com/ryz310))
50
- * [#40](https://github.com/ryz310/pr_comet/pull/40) ryz310/dependabot/bundler/simplecov-0.17.1 ([@ryz310](https://github.com/ryz310))
51
- * [#43](https://github.com/ryz310/pr_comet/pull/43) ryz310/dependabot/bundler/rake-tw-13.0 ([@ryz310](https://github.com/ryz310))
52
- * [#48](https://github.com/ryz310/pr_comet/pull/48) ryz310/dependabot/bundler/rspec-3.9.0 ([@ryz310](https://github.com/ryz310))
53
- * [#47](https://github.com/ryz310/pr_comet/pull/47) ryz310/dependabot/bundler/rubocop-performance-1.5.0 ([@ryz310](https://github.com/ryz310))
54
- * [#53](https://github.com/ryz310/pr_comet/pull/53) Configure Renovate ([@ryz310](https://github.com/ryz310))
55
- * [#56](https://github.com/ryz310/pr_comet/pull/56) Update ruby-orbs orb to v1.4.4 ([@ryz310](https://github.com/ryz310))
56
- * [#61](https://github.com/ryz310/pr_comet/pull/61) Install gem_comet :comet: ([@ryz310](https://github.com/ryz310))
118
+ - [#44](https://github.com/ryz310/pr_comet/pull/44) Bump rubocop-rspec from 1.34.1 to 1.36.0 ([@ryz310](https://github.com/ryz310))
119
+ - [#40](https://github.com/ryz310/pr_comet/pull/40) ryz310/dependabot/bundler/simplecov-0.17.1 ([@ryz310](https://github.com/ryz310))
120
+ - [#43](https://github.com/ryz310/pr_comet/pull/43) ryz310/dependabot/bundler/rake-tw-13.0 ([@ryz310](https://github.com/ryz310))
121
+ - [#48](https://github.com/ryz310/pr_comet/pull/48) ryz310/dependabot/bundler/rspec-3.9.0 ([@ryz310](https://github.com/ryz310))
122
+ - [#47](https://github.com/ryz310/pr_comet/pull/47) ryz310/dependabot/bundler/rubocop-performance-1.5.0 ([@ryz310](https://github.com/ryz310))
123
+ - [#53](https://github.com/ryz310/pr_comet/pull/53) Configure Renovate ([@ryz310](https://github.com/ryz310))
124
+ - [#56](https://github.com/ryz310/pr_comet/pull/56) Update ruby-orbs orb to v1.4.4 ([@ryz310](https://github.com/ryz310))
125
+ - [#61](https://github.com/ryz310/pr_comet/pull/61) Install gem_comet :comet: ([@ryz310](https://github.com/ryz310))
57
126
 
58
127
  ## v0.3.0 (Jul 12, 2019)
59
128
 
60
129
  ### Feature
61
130
 
62
- * [#34](https://github.com/ryz310/pr_comet/pull/34) Support blank PR creation ([@ryz310](https://github.com/ryz310))
131
+ - [#34](https://github.com/ryz310/pr_comet/pull/34) Support blank PR creation ([@ryz310](https://github.com/ryz310))
63
132
 
64
133
  ## v0.2.1 (Jul 12, 2019)
65
134
 
66
135
  ### Misc
67
136
 
68
- * [#28](https://github.com/ryz310/pr_comet/pull/28) Re-generate .rubocop_todo.yml with RuboCop v0.72.0 ([@ryz310](https://github.com/ryz310))
69
- * [#29](https://github.com/ryz310/pr_comet/pull/29) Migrate cirecle ci config to v2.1 ([@ryz310](https://github.com/ryz310))
70
- * [#30](https://github.com/ryz310/pr_comet/pull/30) Improvement of the test coverage ([@ryz310](https://github.com/ryz310))
137
+ - [#28](https://github.com/ryz310/pr_comet/pull/28) Re-generate .rubocop_todo.yml with RuboCop v0.72.0 ([@ryz310](https://github.com/ryz310))
138
+ - [#29](https://github.com/ryz310/pr_comet/pull/29) Migrate cirecle ci config to v2.1 ([@ryz310](https://github.com/ryz310))
139
+ - [#30](https://github.com/ryz310/pr_comet/pull/30) Improvement of the test coverage ([@ryz310](https://github.com/ryz310))
71
140
 
72
141
  ## v0.2.0 (Jun 09, 2019)
73
142
 
74
143
  ### Feature
75
144
 
76
- * [#16](https://github.com/ryz310/pr_comet/pull/16) Use rainbow gem ([@ryz310](https://github.com/ryz310))
77
- * [#18](https://github.com/ryz310/pr_comet/pull/18) Support GitHub project ([@ryz310](https://github.com/ryz310))
145
+ - [#16](https://github.com/ryz310/pr_comet/pull/16) Use rainbow gem ([@ryz310](https://github.com/ryz310))
146
+ - [#18](https://github.com/ryz310/pr_comet/pull/18) Support GitHub project ([@ryz310](https://github.com/ryz310))
78
147
 
79
148
  ### Misc
80
149
 
81
- * [#5](https://github.com/ryz310/pr_comet/pull/5) Re-generate .rubocop_todo.yml with RuboCop v0.68.0 ([@ryz310](https://github.com/ryz310))
82
- * [#12](https://github.com/ryz310/pr_comet/pull/12) Re-generate .rubocop_todo.yml with RuboCop v0.68.1 ([@ryz310](https://github.com/ryz310))
83
- * [#13](https://github.com/ryz310/pr_comet/pull/13) Re-generate .rubocop_todo.yml with RuboCop v0.69.0 ([@ryz310](https://github.com/ryz310))
84
- * [#15](https://github.com/ryz310/pr_comet/pull/15) Re-generate .rubocop_todo.yml with RuboCop v0.70.0 ([@ryz310](https://github.com/ryz310))
85
- * [#17](https://github.com/ryz310/pr_comet/pull/17) Re-generate .rubocop_todo.yml with RuboCop v0.71.0 ([@ryz310](https://github.com/ryz310))
150
+ - [#5](https://github.com/ryz310/pr_comet/pull/5) Re-generate .rubocop_todo.yml with RuboCop v0.68.0 ([@ryz310](https://github.com/ryz310))
151
+ - [#12](https://github.com/ryz310/pr_comet/pull/12) Re-generate .rubocop_todo.yml with RuboCop v0.68.1 ([@ryz310](https://github.com/ryz310))
152
+ - [#13](https://github.com/ryz310/pr_comet/pull/13) Re-generate .rubocop_todo.yml with RuboCop v0.69.0 ([@ryz310](https://github.com/ryz310))
153
+ - [#15](https://github.com/ryz310/pr_comet/pull/15) Re-generate .rubocop_todo.yml with RuboCop v0.70.0 ([@ryz310](https://github.com/ryz310))
154
+ - [#17](https://github.com/ryz310/pr_comet/pull/17) Re-generate .rubocop_todo.yml with RuboCop v0.71.0 ([@ryz310](https://github.com/ryz310))
86
155
 
87
156
  ## v0.1.1 (Apr 08, 2019)
88
157
 
data/Gemfile.lock CHANGED
@@ -1,33 +1,31 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pr_comet (0.4.0)
4
+ pr_comet (0.7.0)
5
5
  octokit
6
6
  rainbow
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- addressable (2.7.0)
11
+ addressable (2.8.0)
12
12
  public_suffix (>= 2.0.2, < 5.0)
13
- ast (2.4.1)
13
+ ast (2.4.2)
14
14
  byebug (11.1.3)
15
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)
20
- multipart-post (>= 1.2, < 3)
21
- ruby2_keywords
22
- faraday-net_http (1.0.0)
23
- json (2.5.1)
16
+ diff-lcs (1.5.0)
17
+ docile (1.4.0)
18
+ faraday (2.3.0)
19
+ faraday-net_http (~> 2.0)
20
+ ruby2_keywords (>= 0.0.4)
21
+ faraday-net_http (2.0.3)
22
+ json (2.6.2)
24
23
  method_source (1.0.0)
25
- multipart-post (2.1.1)
26
- octokit (4.20.0)
27
- faraday (>= 0.9)
28
- sawyer (~> 0.8.0, >= 0.5.3)
29
- parallel (1.20.1)
30
- parser (3.0.0.0)
24
+ octokit (5.1.0)
25
+ faraday (>= 1, < 3)
26
+ sawyer (~> 0.9)
27
+ parallel (1.22.1)
28
+ parser (3.1.2.0)
31
29
  ast (~> 2.4.1)
32
30
  pry (0.13.1)
33
31
  coderay (~> 1.1)
@@ -35,61 +33,64 @@ GEM
35
33
  pry-byebug (3.9.0)
36
34
  byebug (~> 11.0)
37
35
  pry (~> 0.13.0)
38
- public_suffix (4.0.6)
39
- rainbow (3.0.0)
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)
36
+ public_suffix (4.0.7)
37
+ rainbow (3.1.1)
38
+ rake (13.0.6)
39
+ regexp_parser (2.5.0)
40
+ rexml (3.2.5)
41
+ rspec (3.11.0)
42
+ rspec-core (~> 3.11.0)
43
+ rspec-expectations (~> 3.11.0)
44
+ rspec-mocks (~> 3.11.0)
45
+ rspec-core (3.11.0)
46
+ rspec-support (~> 3.11.0)
47
+ rspec-expectations (3.11.0)
50
48
  diff-lcs (>= 1.2.0, < 2.0)
51
- rspec-support (~> 3.10.0)
52
- rspec-mocks (3.10.1)
49
+ rspec-support (~> 3.11.0)
50
+ rspec-mocks (3.11.1)
53
51
  diff-lcs (>= 1.2.0, < 2.0)
54
- rspec-support (~> 3.10.0)
55
- rspec-support (3.10.1)
56
- rspec_junit_formatter (0.4.1)
52
+ rspec-support (~> 3.11.0)
53
+ rspec-support (3.11.0)
54
+ rspec_junit_formatter (0.5.1)
57
55
  rspec-core (>= 2, < 4, != 2.12.0)
58
- rubocop (1.7.0)
56
+ rubocop (1.31.2)
57
+ json (~> 2.3)
59
58
  parallel (~> 1.10)
60
- parser (>= 2.7.1.5)
59
+ parser (>= 3.1.0.0)
61
60
  rainbow (>= 2.2.2, < 4.0)
62
61
  regexp_parser (>= 1.8, < 3.0)
63
- rexml
64
- rubocop-ast (>= 1.2.0, < 2.0)
62
+ rexml (>= 3.2.5, < 4.0)
63
+ rubocop-ast (>= 1.18.0, < 2.0)
65
64
  ruby-progressbar (~> 1.7)
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)
65
+ unicode-display_width (>= 1.4.0, < 3.0)
66
+ rubocop-ast (1.19.1)
67
+ parser (>= 3.1.1.0)
68
+ rubocop-performance (1.14.2)
69
+ rubocop (>= 1.7.0, < 2.0)
71
70
  rubocop-ast (>= 0.4.0)
72
- rubocop-rspec (2.1.0)
73
- rubocop (~> 1.0)
74
- rubocop-ast (>= 1.1.0)
71
+ rubocop-rspec (2.12.1)
72
+ rubocop (~> 1.31)
75
73
  ruby-progressbar (1.11.0)
76
- ruby2_keywords (0.0.2)
77
- sawyer (0.8.2)
74
+ ruby2_keywords (0.0.5)
75
+ sawyer (0.9.2)
78
76
  addressable (>= 2.3.5)
79
- faraday (> 0.8, < 2.0)
80
- simplecov (0.17.1)
77
+ faraday (>= 0.17.3, < 3)
78
+ simplecov (0.21.2)
81
79
  docile (~> 1.1)
82
- json (>= 1.8, < 3)
83
- simplecov-html (~> 0.10.0)
84
- simplecov-html (0.10.2)
85
- unicode-display_width (1.7.0)
86
- yard (0.9.26)
80
+ simplecov-html (~> 0.11)
81
+ simplecov_json_formatter (~> 0.1)
82
+ simplecov-html (0.12.3)
83
+ simplecov_json_formatter (0.1.4)
84
+ unicode-display_width (2.2.0)
85
+ webrick (1.7.0)
86
+ yard (0.9.28)
87
+ webrick (~> 1.7.0)
87
88
 
88
89
  PLATFORMS
89
90
  ruby
90
91
 
91
92
  DEPENDENCIES
92
- bundler (~> 1.16)
93
+ bundler (~> 2.2)
93
94
  pr_comet!
94
95
  pry-byebug
95
96
  rake (~> 13.0)
@@ -98,8 +99,8 @@ DEPENDENCIES
98
99
  rubocop
99
100
  rubocop-performance
100
101
  rubocop-rspec
101
- simplecov (= 0.17.1)
102
+ simplecov (= 0.21.2)
102
103
  yard
103
104
 
104
105
  BUNDLED WITH
105
- 1.17.3
106
+ 2.3.11
@@ -3,6 +3,8 @@
3
3
  class PrComet
4
4
  # To execute command line. You should inherit this class to use.
5
5
  module CommandLine
6
+ attr_reader :verbose
7
+
6
8
  private
7
9
 
8
10
  # Execute a command
@@ -10,10 +12,10 @@ class PrComet
10
12
  # @param command [String] The command you want to execute
11
13
  # @return [String] The result in the execution
12
14
  def execute(command)
13
- puts "$ #{command}"
15
+ puts "$ #{command}" if verbose
14
16
  `#{command}`.chomp.tap do |result|
15
17
  color = $CHILD_STATUS.success? ? :green : :red
16
- puts Rainbow(result).color(color)
18
+ puts Rainbow(result).color(color) if verbose
17
19
  end
18
20
  end
19
21
  end
@@ -6,9 +6,10 @@ class PrComet
6
6
  class Command
7
7
  include CommandLine
8
8
 
9
- def initialize(user_name: nil, user_email: nil)
9
+ def initialize(user_name: nil, user_email: nil, verbose: false)
10
10
  @user_name = user_name
11
11
  @user_email = user_email
12
+ @verbose = verbose
12
13
  end
13
14
 
14
15
  def user_name
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class PrComet
4
- VERSION = '0.4.0'
4
+ VERSION = '0.7.0'
5
5
  end
data/lib/pr_comet.rb CHANGED
@@ -13,16 +13,16 @@ require 'pr_comet/github/client'
13
13
  class PrComet
14
14
  # @note You have to set ENV['GITHUB_ACCESS_TOKEN']
15
15
  # @param base [String] The branch you want your changes pulled into
16
- # @param branch [String] The branch where your changes are going to
17
- # implement.
16
+ # @param branch [String] The branch where your changes are going to implement.
18
17
  # @param user_name [String] The username to use for committer and author
19
18
  # @param user_email [String] The email to use for committer and author
20
- def initialize(base:, branch:, user_name: nil, user_email: nil)
19
+ # @param verbose [Boolean] Displays executing commands
20
+ def initialize(base:, branch:, user_name: nil, user_email: nil, verbose: false)
21
21
  raise "You have to set ENV['GITHUB_ACCESS_TOKEN']" if access_token.nil?
22
22
 
23
23
  @base_branch = base
24
24
  @topic_branch = branch
25
- @git = Git::Command.new(user_name: user_name, user_email: user_email)
25
+ @git = Git::Command.new(user_name: user_name, user_email: user_email, verbose: verbose)
26
26
  @github = Github::Client.new(access_token, git.remote_url('origin'))
27
27
  @initial_sha1 = git.current_sha1
28
28
  end
@@ -40,6 +40,8 @@ class PrComet
40
40
  git.add('.')
41
41
  git.commit(message)
42
42
  result
43
+ rescue PrComet::Errors::ExistUncommittedModify
44
+ raise `git status`
43
45
  end
44
46
 
45
47
  # Create a pull request. You should call #commit before calling this method.
data/pr_comet.gemspec CHANGED
@@ -22,10 +22,12 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ['lib']
24
24
 
25
+ spec.required_ruby_version = '>= 2.7.0'
26
+
25
27
  spec.add_runtime_dependency 'octokit'
26
28
  spec.add_runtime_dependency 'rainbow'
27
29
 
28
- spec.add_development_dependency 'bundler', '~> 1.16'
30
+ spec.add_development_dependency 'bundler', '~> 2.2'
29
31
  spec.add_development_dependency 'pry-byebug'
30
32
  spec.add_development_dependency 'rake', '~> 13.0'
31
33
  spec.add_development_dependency 'rspec'
@@ -33,6 +35,6 @@ Gem::Specification.new do |spec|
33
35
  spec.add_development_dependency 'rubocop'
34
36
  spec.add_development_dependency 'rubocop-performance'
35
37
  spec.add_development_dependency 'rubocop-rspec'
36
- spec.add_development_dependency 'simplecov', '0.17.1'
38
+ spec.add_development_dependency 'simplecov', '0.21.2'
37
39
  spec.add_development_dependency 'yard'
38
40
  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.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ryz310
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-04 00:00:00.000000000 Z
11
+ date: 2022-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.16'
47
+ version: '2.2'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.16'
54
+ version: '2.2'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pry-byebug
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - '='
158
158
  - !ruby/object:Gem::Version
159
- version: 0.17.1
159
+ version: 0.21.2
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: 0.17.1
166
+ version: 0.21.2
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: yard
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -186,9 +186,9 @@ extensions: []
186
186
  extra_rdoc_files: []
187
187
  files:
188
188
  - ".circleci/config.yml"
189
- - ".dependabot/config.yml"
190
189
  - ".envrc.skeleton"
191
190
  - ".gem_comet.yml"
191
+ - ".github/dependabot.yml"
192
192
  - ".gitignore"
193
193
  - ".rspec"
194
194
  - ".rubocop.yml"
@@ -226,14 +226,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
226
226
  requirements:
227
227
  - - ">="
228
228
  - !ruby/object:Gem::Version
229
- version: '0'
229
+ version: 2.7.0
230
230
  required_rubygems_version: !ruby/object:Gem::Requirement
231
231
  requirements:
232
232
  - - ">="
233
233
  - !ruby/object:Gem::Version
234
234
  version: '0'
235
235
  requirements: []
236
- rubygems_version: 3.2.3
236
+ rubygems_version: 3.3.11
237
237
  signing_key:
238
238
  specification_version: 4
239
239
  summary: Create a lots of pull request like comets
@@ -1,18 +0,0 @@
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"