gitlabci-bundle-update-mr 3.0.0 → 5.0.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: 5bcdd8194a9d36c15cdc4f1d4cba14715f13999f08014556078d4608191f9a18
4
- data.tar.gz: c58784b4d7ddad36cb296f89796402063a597b3d59a708b9fb5c87bd2418b588
3
+ metadata.gz: d3fa2d7419641e41394d337fb3c3cda0e5adb10c403fcef28bcf7408907b6e34
4
+ data.tar.gz: 67ceebd56ec522417bf070c9954eca81fdd6406643c3a70c0addd5090097d6e4
5
5
  SHA512:
6
- metadata.gz: 4eb4af31b8978c0c8a1935d7fd9473c6d6ff07455bc6ba206336c23ea8762a36e31e03b9e9182eed1d1c18caea648399826553fa75d9f0d76757578a4362a465
7
- data.tar.gz: 30a436b8fd4bcd843e0a01949677a4170b7130fba766cdf849ac744bbede3de3fffe9b818d7584c6fed79898d8b1cf15be09a3238018e7e663d7191e57c2c466
6
+ metadata.gz: 1dff5959a30b444ba9c33e9595a232d64a941f48953c652cc2f9388199580cde2374d5a4a53a528df0c1c7936c72f567bbc6b1f92808ef39cc4c97fd3ebfccb7
7
+ data.tar.gz: 3b4cd9282ed9c02788cd74ae18deb68c8bd3cfe53147e162948298c1ee8bf5744a9fdbc8713fe432ec15eb820c188107ae356317ab5ed6256652ba4aa7b6c6eb
data/.gitlab-ci.yml CHANGED
@@ -55,10 +55,9 @@ test:
55
55
  parallel:
56
56
  matrix:
57
57
  - IMAGE:
58
- - ruby:2.7
59
- - ruby:3.0
60
58
  - ruby:3.1
61
59
  - ruby:3.2
60
+ - ruby:3.3
62
61
  - rubylang/ruby:master-nightly-bionic
63
62
 
64
63
  pages:
data/.rubocop.yml CHANGED
@@ -9,7 +9,7 @@ inherit_gem:
9
9
  # - "config/rspec.yml"
10
10
 
11
11
  AllCops:
12
- TargetRubyVersion: 2.7
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/v3.0.0...master)
2
+ [full changelog](https://gitlab.com/sue445/gitlabci-bundle-update-mr/compare/v5.0.0...master)
3
+
4
+ ## v5.0.0
5
+ [full changelog](https://gitlab.com/sue445/gitlabci-bundle-update-mr/compare/v4.0.0...v5.0.0)
6
+
7
+ * Drop support ruby < 3.1.2 [!310](https://gitlab.com/sue445/gitlabci-bundle-update-mr/merge_requests/310) *@sue445*
8
+
9
+ ## v4.0.0
10
+ [full changelog](https://gitlab.com/sue445/gitlabci-bundle-update-mr/compare/v3.0.0...v4.0.0)
11
+
12
+ * Drop support ruby < 3.0 [!294](https://gitlab.com/sue445/gitlabci-bundle-update-mr/merge_requests/294) *@sue445*
3
13
 
4
14
  ## v3.0.0
5
15
  [full changelog](https://gitlab.com/sue445/gitlabci-bundle-update-mr/compare/v2.0.1...v3.0.0)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlabci-bundle-update-mr (3.0.0)
4
+ gitlabci-bundle-update-mr (5.0.0)
5
5
  bundler
6
6
  compare_linker (>= 1.4.3)
7
7
  git (= 1.7.0)
@@ -11,21 +11,24 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- addressable (2.8.4)
14
+ addressable (2.8.6)
15
15
  public_suffix (>= 2.0.2, < 6.0)
16
16
  ast (2.4.2)
17
+ bigdecimal (3.1.7)
17
18
  compare_linker (1.4.4)
18
19
  httpclient
19
20
  octokit
20
- crack (0.4.5)
21
+ crack (1.0.0)
22
+ bigdecimal
21
23
  rexml
22
- diff-lcs (1.5.0)
24
+ csv (3.3.0)
25
+ diff-lcs (1.5.1)
23
26
  docile (1.4.0)
24
- dotenv (2.8.1)
25
- faraday (2.7.4)
26
- faraday-net_http (>= 2.0, < 3.1)
27
- ruby2_keywords (>= 0.0.4)
28
- faraday-net_http (3.0.2)
27
+ dotenv (3.1.1)
28
+ faraday (2.9.0)
29
+ faraday-net_http (>= 2.0, < 3.2)
30
+ faraday-net_http (3.1.0)
31
+ net-http
29
32
  git (1.7.0)
30
33
  rchardet (~> 1.8)
31
34
  gitlab (4.19.0)
@@ -35,77 +38,87 @@ GEM
35
38
  dotenv
36
39
  gitlab (>= 4.0.0)
37
40
  thor
38
- hashdiff (1.0.1)
39
- httparty (0.21.0)
41
+ hashdiff (1.1.0)
42
+ httparty (0.22.0)
43
+ csv
40
44
  mini_mime (>= 1.0.0)
41
45
  multi_xml (>= 0.5.2)
42
46
  httpclient (2.8.3)
43
- json (2.6.3)
44
- mini_mime (1.1.2)
45
- multi_xml (0.6.0)
47
+ json (2.7.2)
48
+ language_server-protocol (3.17.0.3)
49
+ mini_mime (1.1.5)
50
+ multi_xml (0.7.1)
51
+ bigdecimal (~> 3.1)
52
+ net-http (0.4.1)
53
+ uri
46
54
  octokit (4.25.1)
47
55
  faraday (>= 1, < 3)
48
56
  sawyer (~> 0.9)
49
57
  onkcop (1.0.0.0)
50
58
  rubocop (>= 0.80.0)
51
59
  rubocop-rspec (>= 1.34.0)
52
- parallel (1.23.0)
53
- parser (3.2.2.1)
60
+ parallel (1.24.0)
61
+ parser (3.3.1.0)
54
62
  ast (~> 2.4.1)
55
- public_suffix (5.0.1)
63
+ racc
64
+ public_suffix (5.0.5)
65
+ racc (1.7.3)
56
66
  rainbow (3.1.1)
57
- rake (13.0.6)
67
+ rake (13.2.1)
58
68
  rchardet (1.8.0)
59
- regexp_parser (2.8.0)
69
+ regexp_parser (2.9.0)
60
70
  restore_bundled_with (1.0.0)
61
71
  git
62
72
  thor
63
- rexml (3.2.5)
64
- rspec (3.12.0)
65
- rspec-core (~> 3.12.0)
66
- rspec-expectations (~> 3.12.0)
67
- rspec-mocks (~> 3.12.0)
68
- rspec-core (3.12.2)
69
- rspec-support (~> 3.12.0)
70
- rspec-expectations (3.12.3)
73
+ rexml (3.2.6)
74
+ rspec (3.13.0)
75
+ rspec-core (~> 3.13.0)
76
+ rspec-expectations (~> 3.13.0)
77
+ rspec-mocks (~> 3.13.0)
78
+ rspec-core (3.13.0)
79
+ rspec-support (~> 3.13.0)
80
+ rspec-expectations (3.13.0)
71
81
  diff-lcs (>= 1.2.0, < 2.0)
72
- rspec-support (~> 3.12.0)
82
+ rspec-support (~> 3.13.0)
73
83
  rspec-its (1.3.0)
74
84
  rspec-core (>= 3.0.0)
75
85
  rspec-expectations (>= 3.0.0)
76
- rspec-mocks (3.12.5)
86
+ rspec-mocks (3.13.0)
77
87
  diff-lcs (>= 1.2.0, < 2.0)
78
- rspec-support (~> 3.12.0)
79
- rspec-support (3.12.0)
88
+ rspec-support (~> 3.13.0)
89
+ rspec-support (3.13.1)
80
90
  rspec-temp_dir (1.1.1)
81
91
  rspec (>= 3.0)
82
- rubocop (1.50.2)
92
+ rubocop (1.63.4)
83
93
  json (~> 2.3)
94
+ language_server-protocol (>= 3.17.0)
84
95
  parallel (~> 1.10)
85
- parser (>= 3.2.0.0)
96
+ parser (>= 3.3.0.2)
86
97
  rainbow (>= 2.2.2, < 4.0)
87
98
  regexp_parser (>= 1.8, < 3.0)
88
99
  rexml (>= 3.2.5, < 4.0)
89
- rubocop-ast (>= 1.28.0, < 2.0)
100
+ rubocop-ast (>= 1.31.1, < 2.0)
90
101
  ruby-progressbar (~> 1.7)
91
102
  unicode-display_width (>= 2.4.0, < 3.0)
92
- rubocop-ast (1.28.1)
93
- parser (>= 3.2.1.0)
94
- rubocop-capybara (2.18.0)
103
+ rubocop-ast (1.31.3)
104
+ parser (>= 3.3.1.0)
105
+ rubocop-capybara (2.20.0)
95
106
  rubocop (~> 1.41)
96
- rubocop-factory_bot (2.22.0)
97
- rubocop (~> 1.33)
98
- rubocop-performance (1.17.1)
99
- rubocop (>= 1.7.0, < 2.0)
100
- rubocop-ast (>= 0.4.0)
101
- rubocop-rspec (2.22.0)
102
- rubocop (~> 1.33)
107
+ rubocop-factory_bot (2.25.1)
108
+ rubocop (~> 1.41)
109
+ rubocop-performance (1.21.0)
110
+ rubocop (>= 1.48.1, < 2.0)
111
+ rubocop-ast (>= 1.31.1, < 2.0)
112
+ rubocop-rspec (2.29.2)
113
+ rubocop (~> 1.40)
103
114
  rubocop-capybara (~> 2.17)
104
115
  rubocop-factory_bot (~> 2.22)
116
+ rubocop-rspec_rails (~> 2.28)
117
+ rubocop-rspec_rails (2.28.3)
118
+ rubocop (~> 1.40)
105
119
  rubocop_auto_corrector (0.4.4)
106
120
  rubocop (>= 1.3.0)
107
121
  ruby-progressbar (1.13.0)
108
- ruby2_keywords (0.0.5)
109
122
  sawyer (0.9.2)
110
123
  addressable (>= 2.3.5)
111
124
  faraday (>= 0.17.3, < 3)
@@ -117,13 +130,14 @@ GEM
117
130
  simplecov_json_formatter (0.1.4)
118
131
  terminal-table (3.0.2)
119
132
  unicode-display_width (>= 1.1.1, < 3)
120
- thor (1.2.1)
121
- unicode-display_width (2.4.2)
122
- webmock (3.18.1)
133
+ thor (1.3.1)
134
+ unicode-display_width (2.5.0)
135
+ uri (0.13.0)
136
+ webmock (3.23.0)
123
137
  addressable (>= 2.8.0)
124
138
  crack (>= 0.3.2)
125
139
  hashdiff (>= 0.4.0, < 2.0.0)
126
- yard (0.9.34)
140
+ yard (0.9.36)
127
141
 
128
142
  PLATFORMS
129
143
  ruby
data/README.md CHANGED
@@ -9,6 +9,13 @@ Create MergeRequest of bundle update in GitLab CI
9
9
 
10
10
  This is inspired by [circleci-bundle-update-pr](https://github.com/masutaka/circleci-bundle-update-pr)
11
11
 
12
+ <details>
13
+ <summary>TOC</summary>
14
+
15
+ [[_TOC_]]
16
+
17
+ </details>
18
+
12
19
  ## Requirements
13
20
  * GitLab v9.0.0+
14
21
  * GitLab API v4
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 = ">= 2.7.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"
@@ -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 = "3.0.0".freeze
5
+ VERSION = "5.0.0".freeze
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlabci-bundle-update-mr
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-08 00:00:00.000000000 Z
11
+ date: 2024-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -336,14 +336,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
336
336
  requirements:
337
337
  - - ">="
338
338
  - !ruby/object:Gem::Version
339
- version: 2.7.0
339
+ version: 3.1.2
340
340
  required_rubygems_version: !ruby/object:Gem::Requirement
341
341
  requirements:
342
342
  - - ">="
343
343
  - !ruby/object:Gem::Version
344
344
  version: '0'
345
345
  requirements: []
346
- rubygems_version: 3.4.10
346
+ rubygems_version: 3.5.3
347
347
  signing_key:
348
348
  specification_version: 4
349
349
  summary: Create MergeRequest of bundle update in GitLab CI