gitlab 4.19.0 → 5.1.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.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.19.0
4
+ version: 5.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nihad Abbasov
@@ -9,8 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-07-10 00:00:00.000000000 Z
12
+ date: 2024-10-29 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: base64
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: 0.2.0
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: 0.2.0
14
28
  - !ruby/object:Gem::Dependency
15
29
  name: httparty
16
30
  requirement: !ruby/object:Gem::Requirement
@@ -130,6 +144,7 @@ files:
130
144
  - lib/gitlab/client/markdown.rb
131
145
  - lib/gitlab/client/merge_request_approvals.rb
132
146
  - lib/gitlab/client/merge_requests.rb
147
+ - lib/gitlab/client/merge_trains.rb
133
148
  - lib/gitlab/client/milestones.rb
134
149
  - lib/gitlab/client/namespaces.rb
135
150
  - lib/gitlab/client/notes.rb
@@ -139,6 +154,7 @@ files:
139
154
  - lib/gitlab/client/pipelines.rb
140
155
  - lib/gitlab/client/project_badges.rb
141
156
  - lib/gitlab/client/project_clusters.rb
157
+ - lib/gitlab/client/project_exports.rb
142
158
  - lib/gitlab/client/project_release_links.rb
143
159
  - lib/gitlab/client/project_releases.rb
144
160
  - lib/gitlab/client/projects.rb
@@ -165,9 +181,10 @@ files:
165
181
  - lib/gitlab/configuration.rb
166
182
  - lib/gitlab/error.rb
167
183
  - lib/gitlab/file_response.rb
184
+ - lib/gitlab/headers/page_links.rb
185
+ - lib/gitlab/headers/total.rb
168
186
  - lib/gitlab/help.rb
169
187
  - lib/gitlab/objectified_hash.rb
170
- - lib/gitlab/page_links.rb
171
188
  - lib/gitlab/paginated_response.rb
172
189
  - lib/gitlab/request.rb
173
190
  - lib/gitlab/shell.rb
@@ -190,14 +207,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
190
207
  requirements:
191
208
  - - ">="
192
209
  - !ruby/object:Gem::Version
193
- version: '2.6'
210
+ version: '3.1'
194
211
  required_rubygems_version: !ruby/object:Gem::Requirement
195
212
  requirements:
196
213
  - - ">="
197
214
  - !ruby/object:Gem::Version
198
215
  version: '0'
199
216
  requirements: []
200
- rubygems_version: 3.1.6
217
+ rubygems_version: 3.5.16
201
218
  signing_key:
202
219
  specification_version: 4
203
220
  summary: A Ruby wrapper and CLI for the GitLab API
@@ -1,35 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Gitlab
4
- # Parses link header.
5
- #
6
- # @private
7
- class PageLinks
8
- HEADER_LINK = 'Link'
9
- DELIM_LINKS = ','
10
- LINK_REGEX = /<([^>]+)>; rel="([^"]+)"/.freeze
11
- METAS = %w[last next first prev].freeze
12
-
13
- attr_accessor(*METAS)
14
-
15
- def initialize(headers)
16
- link_header = headers[HEADER_LINK]
17
-
18
- extract_links(link_header) if link_header && link_header =~ /(next|first|last|prev)/
19
- end
20
-
21
- private
22
-
23
- def extract_links(header)
24
- header.split(DELIM_LINKS).each do |link|
25
- LINK_REGEX.match(link.strip) do |match|
26
- url = match[1]
27
- meta = match[2]
28
- next if !url || !meta || METAS.index(meta).nil?
29
-
30
- send("#{meta}=", url)
31
- end
32
- end
33
- end
34
- end
35
- end