gitlabci-bundle-update-mr 4.0.0 → 5.0.0

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: d3fa2d7419641e41394d337fb3c3cda0e5adb10c403fcef28bcf7408907b6e34
4
+ data.tar.gz: 67ceebd56ec522417bf070c9954eca81fdd6406643c3a70c0addd5090097d6e4
5
5
  SHA512:
6
- metadata.gz: 0c0aac8994e7db8368518ef7f943c19db11fae07b5cf080a4858370b5b708b8074324418dd6d4ddad181bbc303f077225cc7561b3bb012c797d0e16e6ace073b
7
- data.tar.gz: 963d446f3a577cc8aec16e8e40bbd6589cafece4304091e0e028945be33571db57c9963997b89339130a7dc83fc9a75fb734505f1d452e739cbba134ba1d13e5
6
+ metadata.gz: 1dff5959a30b444ba9c33e9595a232d64a941f48953c652cc2f9388199580cde2374d5a4a53a528df0c1c7936c72f567bbc6b1f92808ef39cc4c97fd3ebfccb7
7
+ data.tar.gz: 3b4cd9282ed9c02788cd74ae18deb68c8bd3cfe53147e162948298c1ee8bf5744a9fdbc8713fe432ec15eb820c188107ae356317ab5ed6256652ba4aa7b6c6eb
data/.gitlab-ci.yml CHANGED
@@ -55,7 +55,6 @@ test:
55
55
  parallel:
56
56
  matrix:
57
57
  - IMAGE:
58
- - ruby:3.0
59
58
  - ruby:3.1
60
59
  - ruby:3.2
61
60
  - ruby:3.3
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,10 @@
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.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*
3
8
 
4
9
  ## v4.0.0
5
10
  [full changelog](https://gitlab.com/sue445/gitlabci-bundle-update-mr/compare/v3.0.0...v4.0.0)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitlabci-bundle-update-mr (4.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)
@@ -14,14 +14,17 @@ GEM
14
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)
27
+ dotenv (3.1.1)
25
28
  faraday (2.9.0)
26
29
  faraday-net_http (>= 2.0, < 3.2)
27
30
  faraday-net_http (3.1.0)
@@ -36,14 +39,16 @@ GEM
36
39
  gitlab (>= 4.0.0)
37
40
  thor
38
41
  hashdiff (1.1.0)
39
- httparty (0.21.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.7.1)
47
+ json (2.7.2)
44
48
  language_server-protocol (3.17.0.3)
45
49
  mini_mime (1.1.5)
46
- multi_xml (0.6.0)
50
+ multi_xml (0.7.1)
51
+ bigdecimal (~> 3.1)
47
52
  net-http (0.4.1)
48
53
  uri
49
54
  octokit (4.25.1)
@@ -53,61 +58,64 @@ GEM
53
58
  rubocop (>= 0.80.0)
54
59
  rubocop-rspec (>= 1.34.0)
55
60
  parallel (1.24.0)
56
- parser (3.3.0.3)
61
+ parser (3.3.1.0)
57
62
  ast (~> 2.4.1)
58
63
  racc
59
- public_suffix (5.0.4)
64
+ public_suffix (5.0.5)
60
65
  racc (1.7.3)
61
66
  rainbow (3.1.1)
62
- rake (13.1.0)
67
+ rake (13.2.1)
63
68
  rchardet (1.8.0)
64
69
  regexp_parser (2.9.0)
65
70
  restore_bundled_with (1.0.0)
66
71
  git
67
72
  thor
68
73
  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)
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)
76
81
  diff-lcs (>= 1.2.0, < 2.0)
77
- rspec-support (~> 3.12.0)
82
+ rspec-support (~> 3.13.0)
78
83
  rspec-its (1.3.0)
79
84
  rspec-core (>= 3.0.0)
80
85
  rspec-expectations (>= 3.0.0)
81
- rspec-mocks (3.12.6)
86
+ rspec-mocks (3.13.0)
82
87
  diff-lcs (>= 1.2.0, < 2.0)
83
- rspec-support (~> 3.12.0)
84
- rspec-support (3.12.1)
88
+ rspec-support (~> 3.13.0)
89
+ rspec-support (3.13.1)
85
90
  rspec-temp_dir (1.1.1)
86
91
  rspec (>= 3.0)
87
- rubocop (1.59.0)
92
+ rubocop (1.63.4)
88
93
  json (~> 2.3)
89
94
  language_server-protocol (>= 3.17.0)
90
95
  parallel (~> 1.10)
91
- parser (>= 3.2.2.4)
96
+ parser (>= 3.3.0.2)
92
97
  rainbow (>= 2.2.2, < 4.0)
93
98
  regexp_parser (>= 1.8, < 3.0)
94
99
  rexml (>= 3.2.5, < 4.0)
95
- rubocop-ast (>= 1.30.0, < 2.0)
100
+ rubocop-ast (>= 1.31.1, < 2.0)
96
101
  ruby-progressbar (~> 1.7)
97
102
  unicode-display_width (>= 2.4.0, < 3.0)
98
- rubocop-ast (1.30.0)
99
- parser (>= 3.2.1.0)
103
+ rubocop-ast (1.31.3)
104
+ parser (>= 3.3.1.0)
100
105
  rubocop-capybara (2.20.0)
101
106
  rubocop (~> 1.41)
102
107
  rubocop-factory_bot (2.25.1)
103
108
  rubocop (~> 1.41)
104
- rubocop-performance (1.20.2)
109
+ rubocop-performance (1.21.0)
105
110
  rubocop (>= 1.48.1, < 2.0)
106
- rubocop-ast (>= 1.30.0, < 2.0)
107
- rubocop-rspec (2.26.1)
111
+ rubocop-ast (>= 1.31.1, < 2.0)
112
+ rubocop-rspec (2.29.2)
108
113
  rubocop (~> 1.40)
109
114
  rubocop-capybara (~> 2.17)
110
115
  rubocop-factory_bot (~> 2.22)
116
+ rubocop-rspec_rails (~> 2.28)
117
+ rubocop-rspec_rails (2.28.3)
118
+ rubocop (~> 1.40)
111
119
  rubocop_auto_corrector (0.4.4)
112
120
  rubocop (>= 1.3.0)
113
121
  ruby-progressbar (1.13.0)
@@ -122,14 +130,14 @@ GEM
122
130
  simplecov_json_formatter (0.1.4)
123
131
  terminal-table (3.0.2)
124
132
  unicode-display_width (>= 1.1.1, < 3)
125
- thor (1.3.0)
133
+ thor (1.3.1)
126
134
  unicode-display_width (2.5.0)
127
135
  uri (0.13.0)
128
- webmock (3.19.1)
136
+ webmock (3.23.0)
129
137
  addressable (>= 2.8.0)
130
138
  crack (>= 0.3.2)
131
139
  hashdiff (>= 0.4.0, < 2.0.0)
132
- yard (0.9.34)
140
+ yard (0.9.36)
133
141
 
134
142
  PLATFORMS
135
143
  ruby
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"
@@ -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.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: 4.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: 2024-01-16 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: 3.0.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.6
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