gitlabci-bundle-update-mr 4.0.0 → 5.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: beb563308300820b9110ea14d4c57c58335dae73c76d7a25146b60b2376a0f2c
4
- data.tar.gz: c1132291986a4cc9d9e971a973677dd8e6ffbf1c20b4c52f3716e54290aa037c
3
+ metadata.gz: 6e8ccb89165d72c281b87b804f6bee93697628d656dec2ef68d620b64b53766f
4
+ data.tar.gz: 2a9d8c02c2a9e3e147edcdd34b23b3eb419f5232788f6ed09c44e13ad39d31ee
5
5
  SHA512:
6
- metadata.gz: 0c0aac8994e7db8368518ef7f943c19db11fae07b5cf080a4858370b5b708b8074324418dd6d4ddad181bbc303f077225cc7561b3bb012c797d0e16e6ace073b
7
- data.tar.gz: 963d446f3a577cc8aec16e8e40bbd6589cafece4304091e0e028945be33571db57c9963997b89339130a7dc83fc9a75fb734505f1d452e739cbba134ba1d13e5
6
+ metadata.gz: e1fd7d9ad0ff855f695251b13a0f30d3c88de32c50b407b4d9e927888d84de2688d4037153bbac27b0a93fbaf1125e15b6e5a278b321a265ca714de74f52777e
7
+ data.tar.gz: caf95641d0632f15e189abcc6fed050cde5de0aff0e7f09e69cc31daf03c3e52e9c0717d033d7f09d8f4f200f5590a3389754ed18d424da021815e53bea489a8
data/.gitlab-ci.yml CHANGED
@@ -35,8 +35,6 @@ continuous_bundle_update:
35
35
  when: never
36
36
  - if: '$CI_PIPELINE_SOURCE == "schedule"'
37
37
  when: never
38
- - if: '$IMAGE == "rubylang/ruby:master-nightly-bionic"'
39
- allow_failure: true
40
38
  - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
41
39
  - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
42
40
 
@@ -52,14 +50,21 @@ test:
52
50
  - bundle exec ./exe/gitlabci-bundle-update-mr --help
53
51
  - bundle exec rubocop -P
54
52
 
53
+ coverage: '/LOC \(([\d.]+)%\) covered/'
54
+
55
+ artifacts:
56
+ reports:
57
+ coverage_report:
58
+ coverage_format: cobertura
59
+ path: coverage/coverage.xml
60
+
55
61
  parallel:
56
62
  matrix:
57
63
  - IMAGE:
58
- - ruby:3.0
59
64
  - ruby:3.1
60
65
  - ruby:3.2
61
66
  - ruby:3.3
62
- - rubylang/ruby:master-nightly-bionic
67
+ - ruby:3.4
63
68
 
64
69
  pages:
65
70
  extends: .default
data/.rubocop.yml CHANGED
@@ -9,7 +9,7 @@ inherit_gem:
9
9
  # - "config/rspec.yml"
10
10
 
11
11
  AllCops:
12
- TargetRubyVersion: 3.0
12
+ TargetRubyVersion: 3.1
13
13
  NewCops: enable
14
14
  SuggestExtensions: false
15
15
 
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  ## Unreleased
2
- [full changelog](https://gitlab.com/sue445/gitlabci-bundle-update-mr/compare/v4.0.0...master)
2
+ [full changelog](https://gitlab.com/sue445/gitlabci-bundle-update-mr/compare/v5.0.1...master)
3
+
4
+ ## v5.0.1
5
+ [full changelog](https://gitlab.com/sue445/gitlabci-bundle-update-mr/compare/v5.0.0...v5.0.1)
6
+
7
+ * Fix error in Ruby 3.4+ [!346](https://gitlab.com/sue445/gitlabci-bundle-update-mr/merge_requests/346) *@sue445*
8
+
9
+ ## v5.0.0
10
+ [full changelog](https://gitlab.com/sue445/gitlabci-bundle-update-mr/compare/v4.0.0...v5.0.0)
11
+
12
+ * Drop support ruby < 3.1.2 [!310](https://gitlab.com/sue445/gitlabci-bundle-update-mr/merge_requests/310) *@sue445*
3
13
 
4
14
  ## v4.0.0
5
15
  [full changelog](https://gitlab.com/sue445/gitlabci-bundle-update-mr/compare/v3.0.0...v4.0.0)
data/Gemfile.lock CHANGED
@@ -1,50 +1,64 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlabci-bundle-update-mr (4.0.0)
4
+ gitlabci-bundle-update-mr (5.0.1)
5
5
  bundler
6
6
  compare_linker (>= 1.4.3)
7
7
  git (= 1.7.0)
8
8
  gitlab (>= 4.19.0)
9
+ mutex_m
9
10
  restore_bundled_with
10
11
 
11
12
  GEM
12
13
  remote: https://rubygems.org/
13
14
  specs:
14
- addressable (2.8.6)
15
- public_suffix (>= 2.0.2, < 6.0)
15
+ addressable (2.8.7)
16
+ public_suffix (>= 2.0.2, < 7.0)
16
17
  ast (2.4.2)
17
- compare_linker (1.4.4)
18
+ base64 (0.2.0)
19
+ bigdecimal (3.1.9)
20
+ compare_linker (1.4.8)
21
+ base64
18
22
  httpclient
19
23
  octokit
20
- crack (0.4.5)
24
+ ostruct
25
+ crack (1.0.0)
26
+ bigdecimal
21
27
  rexml
22
- diff-lcs (1.5.0)
23
- docile (1.4.0)
24
- dotenv (2.8.1)
25
- faraday (2.9.0)
26
- faraday-net_http (>= 2.0, < 3.2)
27
- faraday-net_http (3.1.0)
28
- net-http
28
+ csv (3.3.2)
29
+ diff-lcs (1.5.1)
30
+ docile (1.4.1)
31
+ dotenv (3.1.7)
32
+ faraday (2.12.2)
33
+ faraday-net_http (>= 2.0, < 3.5)
34
+ json
35
+ logger
36
+ faraday-net_http (3.4.0)
37
+ net-http (>= 0.5.0)
29
38
  git (1.7.0)
30
39
  rchardet (~> 1.8)
31
- gitlab (4.19.0)
40
+ gitlab (5.1.0)
41
+ base64 (~> 0.2.0)
32
42
  httparty (~> 0.20)
33
43
  terminal-table (>= 1.5.1)
34
- gitlab_awesome_release (1.0.4)
44
+ gitlab_awesome_release (1.1.0)
35
45
  dotenv
36
46
  gitlab (>= 4.0.0)
37
47
  thor
38
- hashdiff (1.1.0)
39
- httparty (0.21.0)
48
+ hashdiff (1.1.2)
49
+ httparty (0.22.0)
50
+ csv
40
51
  mini_mime (>= 1.0.0)
41
52
  multi_xml (>= 0.5.2)
42
53
  httpclient (2.8.3)
43
- json (2.7.1)
54
+ json (2.9.1)
44
55
  language_server-protocol (3.17.0.3)
56
+ logger (1.6.4)
45
57
  mini_mime (1.1.5)
46
- multi_xml (0.6.0)
47
- net-http (0.4.1)
58
+ multi_xml (0.7.1)
59
+ bigdecimal (~> 3.1)
60
+ mutex_m (0.3.0)
61
+ net-http (0.6.0)
48
62
  uri
49
63
  octokit (4.25.1)
50
64
  faraday (>= 1, < 3)
@@ -52,64 +66,58 @@ GEM
52
66
  onkcop (1.0.0.0)
53
67
  rubocop (>= 0.80.0)
54
68
  rubocop-rspec (>= 1.34.0)
55
- parallel (1.24.0)
56
- parser (3.3.0.3)
69
+ ostruct (0.6.1)
70
+ parallel (1.26.3)
71
+ parser (3.3.6.0)
57
72
  ast (~> 2.4.1)
58
73
  racc
59
- public_suffix (5.0.4)
60
- racc (1.7.3)
74
+ public_suffix (6.0.1)
75
+ racc (1.8.1)
61
76
  rainbow (3.1.1)
62
- rake (13.1.0)
63
- rchardet (1.8.0)
64
- regexp_parser (2.9.0)
77
+ rake (13.2.1)
78
+ rchardet (1.9.0)
79
+ regexp_parser (2.10.0)
65
80
  restore_bundled_with (1.0.0)
66
81
  git
67
82
  thor
68
- rexml (3.2.6)
69
- rspec (3.12.0)
70
- rspec-core (~> 3.12.0)
71
- rspec-expectations (~> 3.12.0)
72
- rspec-mocks (~> 3.12.0)
73
- rspec-core (3.12.2)
74
- rspec-support (~> 3.12.0)
75
- rspec-expectations (3.12.3)
83
+ rexml (3.4.0)
84
+ rspec (3.13.0)
85
+ rspec-core (~> 3.13.0)
86
+ rspec-expectations (~> 3.13.0)
87
+ rspec-mocks (~> 3.13.0)
88
+ rspec-core (3.13.2)
89
+ rspec-support (~> 3.13.0)
90
+ rspec-expectations (3.13.3)
76
91
  diff-lcs (>= 1.2.0, < 2.0)
77
- rspec-support (~> 3.12.0)
78
- rspec-its (1.3.0)
79
- rspec-core (>= 3.0.0)
80
- rspec-expectations (>= 3.0.0)
81
- rspec-mocks (3.12.6)
92
+ rspec-support (~> 3.13.0)
93
+ rspec-its (2.0.0)
94
+ rspec-core (>= 3.13.0)
95
+ rspec-expectations (>= 3.13.0)
96
+ rspec-mocks (3.13.2)
82
97
  diff-lcs (>= 1.2.0, < 2.0)
83
- rspec-support (~> 3.12.0)
84
- rspec-support (3.12.1)
98
+ rspec-support (~> 3.13.0)
99
+ rspec-support (3.13.2)
85
100
  rspec-temp_dir (1.1.1)
86
101
  rspec (>= 3.0)
87
- rubocop (1.59.0)
102
+ rubocop (1.69.2)
88
103
  json (~> 2.3)
89
104
  language_server-protocol (>= 3.17.0)
90
105
  parallel (~> 1.10)
91
- parser (>= 3.2.2.4)
106
+ parser (>= 3.3.0.2)
92
107
  rainbow (>= 2.2.2, < 4.0)
93
- regexp_parser (>= 1.8, < 3.0)
94
- rexml (>= 3.2.5, < 4.0)
95
- rubocop-ast (>= 1.30.0, < 2.0)
108
+ regexp_parser (>= 2.9.3, < 3.0)
109
+ rubocop-ast (>= 1.36.2, < 2.0)
96
110
  ruby-progressbar (~> 1.7)
97
- unicode-display_width (>= 2.4.0, < 3.0)
98
- rubocop-ast (1.30.0)
99
- parser (>= 3.2.1.0)
100
- rubocop-capybara (2.20.0)
101
- rubocop (~> 1.41)
102
- rubocop-factory_bot (2.25.1)
103
- rubocop (~> 1.41)
104
- rubocop-performance (1.20.2)
111
+ unicode-display_width (>= 2.4.0, < 4.0)
112
+ rubocop-ast (1.37.0)
113
+ parser (>= 3.3.1.0)
114
+ rubocop-performance (1.23.1)
105
115
  rubocop (>= 1.48.1, < 2.0)
106
- rubocop-ast (>= 1.30.0, < 2.0)
107
- rubocop-rspec (2.26.1)
108
- rubocop (~> 1.40)
109
- rubocop-capybara (~> 2.17)
110
- rubocop-factory_bot (~> 2.22)
111
- rubocop_auto_corrector (0.4.4)
112
- rubocop (>= 1.3.0)
116
+ rubocop-ast (>= 1.31.1, < 2.0)
117
+ rubocop-rspec (3.3.0)
118
+ rubocop (~> 1.61)
119
+ rubocop_auto_corrector (0.5.0)
120
+ rubocop (>= 1.30.0)
113
121
  ruby-progressbar (1.13.0)
114
122
  sawyer (0.9.2)
115
123
  addressable (>= 2.3.5)
@@ -118,18 +126,21 @@ GEM
118
126
  docile (~> 1.1)
119
127
  simplecov-html (~> 0.11)
120
128
  simplecov_json_formatter (~> 0.1)
121
- simplecov-html (0.12.3)
129
+ simplecov-cobertura (2.1.0)
130
+ rexml
131
+ simplecov (~> 0.19)
132
+ simplecov-html (0.13.1)
122
133
  simplecov_json_formatter (0.1.4)
123
134
  terminal-table (3.0.2)
124
135
  unicode-display_width (>= 1.1.1, < 3)
125
- thor (1.3.0)
126
- unicode-display_width (2.5.0)
127
- uri (0.13.0)
128
- webmock (3.19.1)
136
+ thor (1.3.2)
137
+ unicode-display_width (2.6.0)
138
+ uri (1.0.2)
139
+ webmock (3.24.0)
129
140
  addressable (>= 2.8.0)
130
141
  crack (>= 0.3.2)
131
142
  hashdiff (>= 0.4.0, < 2.0.0)
132
- yard (0.9.34)
143
+ yard (0.9.37)
133
144
 
134
145
  PLATFORMS
135
146
  ruby
@@ -151,8 +162,9 @@ DEPENDENCIES
151
162
  rubocop_auto_corrector (>= 0.4.4)
152
163
  sawyer (>= 0.8.1)
153
164
  simplecov
165
+ simplecov-cobertura
154
166
  webmock
155
167
  yard
156
168
 
157
169
  BUNDLED WITH
158
- 2.4.10
170
+ 2.6.2
data/README.md CHANGED
@@ -5,6 +5,8 @@
5
5
 
6
6
  Create MergeRequest of bundle update in GitLab CI
7
7
 
8
+ _GITLAB is a trademark of GitLab Inc. in the United States and other countries and regions_
9
+
8
10
  ![gitlabci-bundle-update-mr](img/gitlabci-bundle-update-mr.png)
9
11
 
10
12
  This is inspired by [circleci-bundle-update-pr](https://github.com/masutaka/circleci-bundle-update-pr)
data/bin/console CHANGED
@@ -19,8 +19,8 @@ Gitlabci::Bundle::Update::Mr.assert_env_keys
19
19
  gitlab_api_private_token: ENV["GITLAB_API_PRIVATE_TOKEN"],
20
20
  project_name: ENV["CI_PROJECT_PATH"],
21
21
  branch: ENV["CI_COMMIT_REF_NAME"],
22
- author_email: author_email,
23
- author_name: author_name,
22
+ author_email:,
23
+ author_name:,
24
24
  )
25
25
 
26
26
  require "irb"
@@ -30,14 +30,14 @@ client = Gitlabci::Bundle::Update::Mr::Client.new(
30
30
  gitlab_api_private_token: ENV["GITLAB_API_PRIVATE_TOKEN"],
31
31
  project_name: ENV["CI_PROJECT_PATH"],
32
32
  branch: ENV["CI_COMMIT_REF_NAME"],
33
- author_email: author_email,
34
- author_name: author_name,
33
+ author_email:,
34
+ author_name:,
35
35
  )
36
36
 
37
37
  client.perform(
38
- allow_dup_mr: allow_dup_mr,
39
- mr_labels: mr_labels,
40
- update_bundled_with: update_bundled_with,
41
- merge_when_pipeline_succeeds: merge_when_pipeline_succeeds,
42
- assignees: assignees,
38
+ allow_dup_mr:,
39
+ mr_labels:,
40
+ update_bundled_with:,
41
+ merge_when_pipeline_succeeds:,
42
+ assignees:,
43
43
  )
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
35
35
  spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f) }
36
36
  spec.require_paths = ["lib"]
37
37
 
38
- spec.required_ruby_version = ">= 3.0.0"
38
+ spec.required_ruby_version = ">= 3.1.2"
39
39
 
40
40
  spec.add_dependency "bundler"
41
41
  spec.add_dependency "compare_linker", ">= 1.4.3"
@@ -43,6 +43,10 @@ Gem::Specification.new do |spec|
43
43
  spec.add_dependency "gitlab", ">= 4.19.0"
44
44
  spec.add_dependency "restore_bundled_with"
45
45
 
46
+ # FIXME: Workaround for error in Ruby 3.4+
47
+ # https://github.com/nahi/httpclient/pull/455 is merged, but not published yet...
48
+ spec.add_dependency "mutex_m"
49
+
46
50
  spec.add_development_dependency "dotenv"
47
51
  spec.add_development_dependency "gitlab_awesome_release"
48
52
  spec.add_development_dependency "onkcop", ">= 1.0.0.0"
@@ -56,6 +60,7 @@ Gem::Specification.new do |spec|
56
60
  spec.add_development_dependency "rubocop-performance", ">= 1.14.0"
57
61
  spec.add_development_dependency "rubocop-rspec", ">= 2.21.0"
58
62
  spec.add_development_dependency "simplecov"
63
+ spec.add_development_dependency "simplecov-cobertura"
59
64
  spec.add_development_dependency "webmock"
60
65
  spec.add_development_dependency "yard"
61
66
  end
@@ -54,7 +54,7 @@ module Gitlabci
54
54
  commit_gemfile_lock(new_lockfile)
55
55
  description = merge_request_description(old_lockfile, new_lockfile)
56
56
 
57
- mr = create_merge_request(description: description, mr_labels: mr_labels, assignee_ids: assignee_ids)
57
+ mr = create_merge_request(description:, mr_labels:, assignee_ids:)
58
58
  puts "MR is created: #{mr.web_url}"
59
59
 
60
60
  if merge_when_pipeline_succeeds
@@ -92,7 +92,7 @@ module Gitlabci
92
92
  source_branch: new_branch,
93
93
  target_branch: @branch,
94
94
  remove_source_branch: true,
95
- description: description,
95
+ description:,
96
96
  }
97
97
 
98
98
  unless mr_labels.empty?
@@ -139,7 +139,7 @@ module Gitlabci
139
139
  #
140
140
  # @see https://docs.gitlab.com/ee/api/users.html#for-normal-users
141
141
  def find_by_username(username)
142
- @gitlab.users(username: username).first
142
+ @gitlab.users(username:).first
143
143
  end
144
144
 
145
145
  # @param username [String]
@@ -2,7 +2,7 @@ module Gitlabci
2
2
  module Bundle
3
3
  module Update
4
4
  module Mr
5
- VERSION = "4.0.0".freeze
5
+ VERSION = "5.0.1".freeze
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlabci-bundle-update-mr
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-01-16 00:00:00.000000000 Z
10
+ date: 2025-01-08 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: bundler
@@ -80,6 +79,20 @@ dependencies:
80
79
  - - ">="
81
80
  - !ruby/object:Gem::Version
82
81
  version: '0'
82
+ - !ruby/object:Gem::Dependency
83
+ name: mutex_m
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ type: :runtime
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
83
96
  - !ruby/object:Gem::Dependency
84
97
  name: dotenv
85
98
  requirement: !ruby/object:Gem::Requirement
@@ -262,6 +275,20 @@ dependencies:
262
275
  - - ">="
263
276
  - !ruby/object:Gem::Version
264
277
  version: '0'
278
+ - !ruby/object:Gem::Dependency
279
+ name: simplecov-cobertura
280
+ requirement: !ruby/object:Gem::Requirement
281
+ requirements:
282
+ - - ">="
283
+ - !ruby/object:Gem::Version
284
+ version: '0'
285
+ type: :development
286
+ prerelease: false
287
+ version_requirements: !ruby/object:Gem::Requirement
288
+ requirements:
289
+ - - ">="
290
+ - !ruby/object:Gem::Version
291
+ version: '0'
265
292
  - !ruby/object:Gem::Dependency
266
293
  name: webmock
267
294
  requirement: !ruby/object:Gem::Requirement
@@ -328,7 +355,6 @@ metadata:
328
355
  source_code_uri: https://gitlab.com/sue445/gitlabci-bundle-update-mr
329
356
  changelog_uri: https://gitlab.com/sue445/gitlabci-bundle-update-mr/blob/master/CHANGELOG.md
330
357
  rubygems_mfa_required: 'true'
331
- post_install_message:
332
358
  rdoc_options: []
333
359
  require_paths:
334
360
  - lib
@@ -336,15 +362,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
336
362
  requirements:
337
363
  - - ">="
338
364
  - !ruby/object:Gem::Version
339
- version: 3.0.0
365
+ version: 3.1.2
340
366
  required_rubygems_version: !ruby/object:Gem::Requirement
341
367
  requirements:
342
368
  - - ">="
343
369
  - !ruby/object:Gem::Version
344
370
  version: '0'
345
371
  requirements: []
346
- rubygems_version: 3.4.6
347
- signing_key:
372
+ rubygems_version: 3.6.2
348
373
  specification_version: 4
349
374
  summary: Create MergeRequest of bundle update in GitLab CI
350
375
  test_files: []