3scale_toolbox 0.20.0 → 1.0.1

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: f688ec02bf32ca42f99e737b789e9826111d09417987fc0ef8bb32ee1719956b
4
- data.tar.gz: '068391c70eeb07ddd450af05abe77c80e4b623c53383f5da6b75375d45cade58'
3
+ metadata.gz: dbb039faa8c8a95cf43c7c891898b1f3d19a4d20f5c78f250936dccfa5d1cda5
4
+ data.tar.gz: 9885341a7f7be084163119751c5d86d57491100a05c3481d37487f0943f0bc1d
5
5
  SHA512:
6
- metadata.gz: 82fe4022c976594d2d8b52db9d84f0b1d8886738c3f076614864ddc34b48e24c62445c6fab34d25c9ce164176f19490c290bc3d97b5f8b913f1a57f20ee9a2d6
7
- data.tar.gz: 9b24f6ee07f2209d1180ce57cf21096b6b9a2970c07539a4619c21dbcbc5700359a1b132539ece15668d9c6753a8858a89cb635ab491385f0f8e15d6388c389a
6
+ metadata.gz: 3b25fed39897049778bcb9b23f3429f9e0b2e08bd216b5d30f5b5de1b85e444ee762868bcaf0df69415adb244080a9f9e6db31920c9c0b1bf43911b6815c295c
7
+ data.tar.gz: 318b614245d3339d996335a6fd13cbb0b1c656e83731e897273a31b14947991c499c878676cd94050b178e1eaa4d35753e25e11e73a9ecd41106a506047b1da0
@@ -34,11 +34,11 @@ Gem::Specification.new do |spec|
34
34
  spec.add_development_dependency 'rake', '~> 13.0'
35
35
  spec.add_development_dependency 'rspec', '~> 3.8'
36
36
  spec.add_development_dependency 'webmock', '~> 3.4'
37
- spec.required_ruby_version = '>= 2.6'
37
+ spec.required_ruby_version = '>= 3.0'
38
38
 
39
39
  spec.add_dependency '3scale-api', '~> 1.6'
40
40
  spec.add_dependency 'cri', '~> 2.15'
41
41
  spec.add_dependency 'json-schema', '~> 2.8'
42
42
  spec.add_dependency 'oas_parser', '~> 0.20'
43
- spec.add_dependency 'activesupport', '~> 6.0'
43
+ spec.add_dependency 'activesupport', '>= 6', '< 8'
44
44
  end
data/README.md CHANGED
@@ -41,8 +41,7 @@
41
41
  ## Requirements
42
42
  Supported Ruby interpreters
43
43
 
44
- * MRI 2.6
45
- * MRI 2.7
44
+ * MRI 3.0
46
45
 
47
46
  ## Installation
48
47
  Install the toolbox:
@@ -102,8 +102,8 @@ module ThreeScaleToolbox
102
102
  {
103
103
  'name' => option_name,
104
104
  'description' => description,
105
- 'user_key' => application_ref,
106
- 'application_id' => application_ref,
105
+ 'user_key' => user_key,
106
+ 'application_id' => application_id,
107
107
  'application_key' => option_app_key,
108
108
  'redirect_url' => option_redirect_url,
109
109
  }.compact
@@ -120,6 +120,14 @@ module ThreeScaleToolbox
120
120
  }.compact
121
121
  end
122
122
 
123
+ def user_key
124
+ application_ref if service.backend_version == '1'
125
+ end
126
+
127
+ def application_id
128
+ application_ref if service.backend_version == '2' || service.backend_version == 'oidc'
129
+ end
130
+
123
131
  def account
124
132
  @account ||= find_account
125
133
  end
@@ -29,13 +29,7 @@ module ThreeScaleToolbox
29
29
  # only applies to oauth2 sec type
30
30
  return if api_spec.security.nil? || api_spec.security[:type] != 'oauth2'
31
31
 
32
- oidc_configuration = {
33
- standard_flow_enabled: false,
34
- implicit_flow_enabled: false,
35
- service_accounts_enabled: false,
36
- direct_access_grants_enabled: false
37
- }.merge(api_spec.security[:flow] => true)
38
- settings.merge!(oidc_configuration)
32
+ settings.merge!(api_spec.security[:flows] || {})
39
33
  end
40
34
  end
41
35
  end
@@ -28,9 +28,9 @@ module ThreeScaleToolbox
28
28
  end
29
29
 
30
30
  def validate_remote(remote_url_str)
31
- # parsing url before trying to create client
32
- # raises Invalid URL when syntax is incorrect
33
- ThreeScaleToolbox::Helper.parse_uri(remote_url_str)
31
+ uri_obj = ThreeScaleToolbox::Helper.parse_uri(remote_url_str)
32
+ raise ThreeScaleToolbox::InvalidUrlError, "invalid url: #{remote_url_str}" unless uri_obj.kind_of?(URI::HTTP)
33
+
34
34
  threescale_client(remote_url_str).list_accounts
35
35
  rescue ThreeScale::API::HttpClient::ForbiddenError
36
36
  raise ThreeScaleToolbox::Error, 'remote not valid'
@@ -25,12 +25,7 @@ module ThreeScaleToolbox
25
25
 
26
26
  def parse_uri(uri)
27
27
  # raises error when remote_str is not string, but object or something else.
28
- uri_obj = URI(uri)
29
- # URI::HTTP is parent of URI::HTTPS
30
- # with single check both types are checked
31
- raise ThreeScaleToolbox::InvalidUrlError, "invalid url: #{uri}" unless uri_obj.kind_of?(URI::HTTP)
32
-
33
- uri_obj
28
+ URI(uri)
34
29
  end
35
30
 
36
31
  def hash_deep_dup(hash)
@@ -21,7 +21,11 @@ module ThreeScaleToolbox
21
21
  # * :type -> string
22
22
  # * :name -> string
23
23
  # * :in_f -> string
24
- # * :flow -> symbol (:implicit_flow_enabled, :direct_access_grants_enabled, :service_accounts_enabled, :standard_flow_enabled)
24
+ # * :flows -> hash
25
+ # * :implicit_flow_enabled -> bool
26
+ # * :direct_access_grants_enabled -> bool
27
+ # * :service_accounts_enabled -> bool
28
+ # * :standard_flow_enabled -> bool
25
29
  # * :scopes -> array of string
26
30
  # * OAS3.service_backend_version -> string ('1','2','oidc')
27
31
  # * OAS3.set_server_url -> def(spec, url)
@@ -64,7 +68,10 @@ module ThreeScaleToolbox
64
68
 
65
69
  def host
66
70
  # If there are many? take first
67
- server_objects { |url| "#{url.host}:#{url.port}" }.first
71
+ server_objects do |url|
72
+ # URI::HTTP is parent of URI::HTTPS, so both covered
73
+ "#{url.host}:#{url.port}" if url.kind_of?(URI::HTTP)
74
+ end.first
68
75
  end
69
76
 
70
77
  def scheme
@@ -103,9 +110,10 @@ module ThreeScaleToolbox
103
110
  raise ThreeScaleToolbox::Error, "Expected security scheme {#{sec_scheme_id}} not found or not oauth2"
104
111
  end
105
112
 
106
- flow_key, flow_obj = sec_scheme_obj['flows'].first
107
- flow_obj['authorizationUrl'] = authorization_url if %w[implicit authorizationCode].include?(flow_key)
108
- flow_obj['tokenUrl'] = token_url if %w[password clientCredentials authorizationCode].include?(flow_key)
113
+ sec_scheme_obj['flows'].each do |flow_key, flow_obj|
114
+ flow_obj['authorizationUrl'] = authorization_url if %w[implicit authorizationCode].include?(flow_key)
115
+ flow_obj['tokenUrl'] = token_url if %w[password clientCredentials authorizationCode].include?(flow_key)
116
+ end
109
117
  end
110
118
 
111
119
  def set_server_url(spec, url)
@@ -184,7 +192,7 @@ module ThreeScaleToolbox
184
192
  type: sec_def['type'],
185
193
  name: sec_def['name'],
186
194
  in_f: sec_def['in'],
187
- flow: parse_flows(sec_def['flows']),
195
+ flows: parse_flows(sec_def['flows']),
188
196
  scopes: sec_item
189
197
  }
190
198
  end
@@ -208,9 +216,18 @@ module ThreeScaleToolbox
208
216
  def parse_flows(flows_object)
209
217
  return nil if flows_object.nil?
210
218
 
211
- raise ThreeScaleToolbox::Error, 'Invalid OAS: multiple flows' if flows_object.size > 1
219
+ flows_object.keys.reduce(basic_flows_object) do |obj, key|
220
+ obj.merge!(convert_flow(key) => true)
221
+ end
222
+ end
212
223
 
213
- convert_flow(flows_object.keys.first)
224
+ def basic_flows_object
225
+ {
226
+ standard_flow_enabled: false,
227
+ implicit_flow_enabled: false,
228
+ service_accounts_enabled: false,
229
+ direct_access_grants_enabled: false
230
+ }
214
231
  end
215
232
 
216
233
  def convert_flow(flow_name)
@@ -21,7 +21,11 @@ module ThreeScaleToolbox
21
21
  # * :type -> string
22
22
  # * :name -> string
23
23
  # * :in_f -> string
24
- # * :flow -> symbol (:implicit_flow_enabled, :direct_access_grants_enabled, :service_accounts_enabled, :standard_flow_enabled)
24
+ # * :flows -> hash
25
+ # * :implicit_flow_enabled -> bool
26
+ # * :direct_access_grants_enabled -> bool
27
+ # * :service_accounts_enabled -> bool
28
+ # * :standard_flow_enabled -> bool
25
29
  # * :scopes -> array of string
26
30
  # * Swagger.service_backend_version -> string ('1','2','oidc')
27
31
  # * Swagger.set_server_url -> def(spec, url)
@@ -150,7 +154,7 @@ module ThreeScaleToolbox
150
154
  type: sec_def['type'],
151
155
  name: sec_def['name'],
152
156
  in_f: sec_def['in'],
153
- flow: convert_flow(sec_def['flow']),
157
+ flows: parse_flows(sec_def['flow']),
154
158
  scopes: sec_item
155
159
  }
156
160
  end
@@ -171,6 +175,21 @@ module ThreeScaleToolbox
171
175
  raw['securityDefinitions'] || {}
172
176
  end
173
177
 
178
+ def parse_flows(flow_name)
179
+ return nil if flow_name.nil?
180
+
181
+ basic_flows_object.merge!({ convert_flow(flow_name) => true })
182
+ end
183
+
184
+ def basic_flows_object
185
+ {
186
+ standard_flow_enabled: false,
187
+ implicit_flow_enabled: false,
188
+ service_accounts_enabled: false,
189
+ direct_access_grants_enabled: false
190
+ }
191
+ end
192
+
174
193
  def convert_flow(flow_name)
175
194
  return nil if flow_name.nil?
176
195
 
@@ -4,6 +4,8 @@ module ThreeScaleToolbox
4
4
  def from_uri(uri_str)
5
5
  uri = Helper.parse_uri(uri_str)
6
6
 
7
+ raise ThreeScaleToolbox::InvalidUrlError, "invalid url: #{uri_str}" unless uri.kind_of?(URI::HTTP)
8
+
7
9
  authentication = uri.user
8
10
  uri.user = ''
9
11
  { authentication: authentication, endpoint: uri.to_s }
@@ -30,8 +30,8 @@ module ThreeScaleToolbox
30
30
 
31
31
  # Detect format from file extension
32
32
  def read_file(filename)
33
- raise ThreeScaleToolbox::Error, "File not found: #{filename} " unless File.file?(filename)
34
- raise ThreeScaleToolbox::Error, "File not readable: #{filename} " unless File.readable?(filename)
33
+ raise ThreeScaleToolbox::Error, "File not found: #{filename}" unless File.file?(filename)
34
+ raise ThreeScaleToolbox::Error, "File not readable: #{filename}" unless File.readable?(filename)
35
35
 
36
36
  File.read(filename)
37
37
  end
@@ -1,3 +1,3 @@
1
1
  module ThreeScaleToolbox
2
- VERSION = '0.20.0'
2
+ VERSION = '1.0.1'
3
3
  end
data/licenses.xml CHANGED
@@ -13,7 +13,7 @@
13
13
  </dependency>
14
14
  <dependency>
15
15
  <packageName>3scale_toolbox</packageName>
16
- <version>0.20.0</version>
16
+ <version>1.0.1</version>
17
17
  <licenses>
18
18
  <license>
19
19
  <name>MIT</name>
@@ -23,7 +23,7 @@
23
23
  </dependency>
24
24
  <dependency>
25
25
  <packageName>activesupport</packageName>
26
- <version>6.1.4.4</version>
26
+ <version>7.1.4</version>
27
27
  <licenses>
28
28
  <license>
29
29
  <name>MIT</name>
@@ -33,13 +33,41 @@
33
33
  </dependency>
34
34
  <dependency>
35
35
  <packageName>addressable</packageName>
36
- <version>2.8.0</version>
36
+ <version>2.8.1</version>
37
37
  <licenses>
38
38
  <license>
39
39
  <name>Apache 2.0</name>
40
40
  <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
41
41
  </license>
42
42
  </licenses>
43
+ </dependency>
44
+ <dependency>
45
+ <packageName>base64</packageName>
46
+ <version>0.2.0</version>
47
+ <licenses>
48
+ <license>
49
+ <name>Simplified BSD</name>
50
+ <url>http://opensource.org/licenses/bsd-license</url>
51
+ </license>
52
+ <license>
53
+ <name>ruby</name>
54
+ <url>http://www.ruby-lang.org/en/LICENSE.txt</url>
55
+ </license>
56
+ </licenses>
57
+ </dependency>
58
+ <dependency>
59
+ <packageName>bigdecimal</packageName>
60
+ <version>3.1.8</version>
61
+ <licenses>
62
+ <license>
63
+ <name>Simplified BSD</name>
64
+ <url>http://opensource.org/licenses/bsd-license</url>
65
+ </license>
66
+ <license>
67
+ <name>ruby</name>
68
+ <url>http://www.ruby-lang.org/en/LICENSE.txt</url>
69
+ </license>
70
+ </licenses>
43
71
  </dependency>
44
72
  <dependency>
45
73
  <packageName>builder</packageName>
@@ -53,7 +81,7 @@
53
81
  </dependency>
54
82
  <dependency>
55
83
  <packageName>bundler</packageName>
56
- <version>2.2.21</version>
84
+ <version>2.3.5</version>
57
85
  <licenses>
58
86
  <license>
59
87
  <name>MIT</name>
@@ -83,7 +111,17 @@
83
111
  </dependency>
84
112
  <dependency>
85
113
  <packageName>concurrent-ruby</packageName>
86
- <version>1.1.9</version>
114
+ <version>1.3.4</version>
115
+ <licenses>
116
+ <license>
117
+ <name>MIT</name>
118
+ <url>http://opensource.org/licenses/mit-license</url>
119
+ </license>
120
+ </licenses>
121
+ </dependency>
122
+ <dependency>
123
+ <packageName>connection_pool</packageName>
124
+ <version>2.4.1</version>
87
125
  <licenses>
88
126
  <license>
89
127
  <name>MIT</name>
@@ -103,13 +141,27 @@
103
141
  </dependency>
104
142
  <dependency>
105
143
  <packageName>cri</packageName>
106
- <version>2.15.11</version>
144
+ <version>2.15.12</version>
107
145
  <licenses>
108
146
  <license>
109
147
  <name>MIT</name>
110
148
  <url>http://opensource.org/licenses/mit-license</url>
111
149
  </license>
112
150
  </licenses>
151
+ </dependency>
152
+ <dependency>
153
+ <packageName>csv</packageName>
154
+ <version>3.3.0</version>
155
+ <licenses>
156
+ <license>
157
+ <name>Simplified BSD</name>
158
+ <url>http://opensource.org/licenses/bsd-license</url>
159
+ </license>
160
+ <license>
161
+ <name>ruby</name>
162
+ <url>http://www.ruby-lang.org/en/LICENSE.txt</url>
163
+ </license>
164
+ </licenses>
113
165
  </dependency>
114
166
  <dependency>
115
167
  <packageName>deep_merge</packageName>
@@ -126,16 +178,16 @@
126
178
  <version>1.5.0</version>
127
179
  <licenses>
128
180
  <license>
129
- <name>MIT</name>
130
- <url>http://opensource.org/licenses/mit-license</url>
131
- </license>
132
- <license>
133
181
  <name>Artistic-2.0</name>
134
182
  <url></url>
135
183
  </license>
136
184
  <license>
137
185
  <name>GPL-2.0+</name>
138
186
  <url></url>
187
+ </license>
188
+ <license>
189
+ <name>MIT</name>
190
+ <url>http://opensource.org/licenses/mit-license</url>
139
191
  </license>
140
192
  </licenses>
141
193
  </dependency>
@@ -151,17 +203,31 @@
151
203
  </dependency>
152
204
  <dependency>
153
205
  <packageName>dotenv</packageName>
154
- <version>2.7.6</version>
206
+ <version>2.8.1</version>
155
207
  <licenses>
156
208
  <license>
157
209
  <name>MIT</name>
158
210
  <url>http://opensource.org/licenses/mit-license</url>
159
211
  </license>
160
212
  </licenses>
213
+ </dependency>
214
+ <dependency>
215
+ <packageName>drb</packageName>
216
+ <version>2.2.1</version>
217
+ <licenses>
218
+ <license>
219
+ <name>Simplified BSD</name>
220
+ <url>http://opensource.org/licenses/bsd-license</url>
221
+ </license>
222
+ <license>
223
+ <name>ruby</name>
224
+ <url>http://www.ruby-lang.org/en/LICENSE.txt</url>
225
+ </license>
226
+ </licenses>
161
227
  </dependency>
162
228
  <dependency>
163
229
  <packageName>hansi</packageName>
164
- <version>0.2.0</version>
230
+ <version>0.2.1</version>
165
231
  <licenses>
166
232
  <license>
167
233
  <name>MIT</name>
@@ -191,7 +257,7 @@
191
257
  </dependency>
192
258
  <dependency>
193
259
  <packageName>i18n</packageName>
194
- <version>1.9.1</version>
260
+ <version>1.14.5</version>
195
261
  <licenses>
196
262
  <license>
197
263
  <name>MIT</name>
@@ -211,7 +277,7 @@
211
277
  </dependency>
212
278
  <dependency>
213
279
  <packageName>license_finder</packageName>
214
- <version>5.11.1</version>
280
+ <version>7.2.1</version>
215
281
  <licenses>
216
282
  <license>
217
283
  <name>MIT</name>
@@ -228,10 +294,20 @@
228
294
  <url>http://opensource.org/licenses/mit-license</url>
229
295
  </license>
230
296
  </licenses>
297
+ </dependency>
298
+ <dependency>
299
+ <packageName>mini_portile2</packageName>
300
+ <version>2.8.7</version>
301
+ <licenses>
302
+ <license>
303
+ <name>MIT</name>
304
+ <url>http://opensource.org/licenses/mit-license</url>
305
+ </license>
306
+ </licenses>
231
307
  </dependency>
232
308
  <dependency>
233
309
  <packageName>minitest</packageName>
234
- <version>5.15.0</version>
310
+ <version>5.25.1</version>
235
311
  <licenses>
236
312
  <license>
237
313
  <name>MIT</name>
@@ -241,7 +317,7 @@
241
317
  </dependency>
242
318
  <dependency>
243
319
  <packageName>mustermann</packageName>
244
- <version>1.1.1</version>
320
+ <version>1.1.2</version>
245
321
  <licenses>
246
322
  <license>
247
323
  <name>MIT</name>
@@ -251,7 +327,7 @@
251
327
  </dependency>
252
328
  <dependency>
253
329
  <packageName>mustermann-contrib</packageName>
254
- <version>1.1.1</version>
330
+ <version>1.1.2</version>
255
331
  <licenses>
256
332
  <license>
257
333
  <name>MIT</name>
@@ -260,18 +336,22 @@
260
336
  </licenses>
261
337
  </dependency>
262
338
  <dependency>
263
- <packageName>nokogiri</packageName>
264
- <version>1.13.1</version>
339
+ <packageName>mutex_m</packageName>
340
+ <version>0.2.0</version>
265
341
  <licenses>
266
342
  <license>
267
- <name>MIT</name>
268
- <url>http://opensource.org/licenses/mit-license</url>
343
+ <name>Simplified BSD</name>
344
+ <url>http://opensource.org/licenses/bsd-license</url>
345
+ </license>
346
+ <license>
347
+ <name>ruby</name>
348
+ <url>http://www.ruby-lang.org/en/LICENSE.txt</url>
269
349
  </license>
270
350
  </licenses>
271
351
  </dependency>
272
352
  <dependency>
273
- <packageName>oas_parser</packageName>
274
- <version>0.25.4</version>
353
+ <packageName>nokogiri</packageName>
354
+ <version>1.16.7</version>
275
355
  <licenses>
276
356
  <license>
277
357
  <name>MIT</name>
@@ -280,8 +360,8 @@
280
360
  </licenses>
281
361
  </dependency>
282
362
  <dependency>
283
- <packageName>parslet</packageName>
284
- <version>1.8.2</version>
363
+ <packageName>oas_parser</packageName>
364
+ <version>0.25.4</version>
285
365
  <licenses>
286
366
  <license>
287
367
  <name>MIT</name>
@@ -291,7 +371,7 @@
291
371
  </dependency>
292
372
  <dependency>
293
373
  <packageName>pry</packageName>
294
- <version>0.14.1</version>
374
+ <version>0.14.2</version>
295
375
  <licenses>
296
376
  <license>
297
377
  <name>MIT</name>
@@ -301,7 +381,7 @@
301
381
  </dependency>
302
382
  <dependency>
303
383
  <packageName>public_suffix</packageName>
304
- <version>4.0.6</version>
384
+ <version>5.0.1</version>
305
385
  <licenses>
306
386
  <license>
307
387
  <name>MIT</name>
@@ -311,15 +391,15 @@
311
391
  </dependency>
312
392
  <dependency>
313
393
  <packageName>racc</packageName>
314
- <version>1.6.0</version>
394
+ <version>1.8.1</version>
315
395
  <licenses>
316
396
  <license>
317
- <name>ruby</name>
318
- <url>http://www.ruby-lang.org/en/LICENSE.txt</url>
319
- </license>
320
- <license>
321
397
  <name>Simplified BSD</name>
322
398
  <url>http://opensource.org/licenses/bsd-license</url>
399
+ </license>
400
+ <license>
401
+ <name>ruby</name>
402
+ <url>http://www.ruby-lang.org/en/LICENSE.txt</url>
323
403
  </license>
324
404
  </licenses>
325
405
  </dependency>
@@ -335,7 +415,7 @@
335
415
  </dependency>
336
416
  <dependency>
337
417
  <packageName>rexml</packageName>
338
- <version>3.2.5</version>
418
+ <version>3.3.6</version>
339
419
  <licenses>
340
420
  <license>
341
421
  <name>Simplified BSD</name>
@@ -345,7 +425,7 @@
345
425
  </dependency>
346
426
  <dependency>
347
427
  <packageName>rspec</packageName>
348
- <version>3.10.0</version>
428
+ <version>3.12.0</version>
349
429
  <licenses>
350
430
  <license>
351
431
  <name>MIT</name>
@@ -355,7 +435,7 @@
355
435
  </dependency>
356
436
  <dependency>
357
437
  <packageName>rspec-core</packageName>
358
- <version>3.10.2</version>
438
+ <version>3.12.0</version>
359
439
  <licenses>
360
440
  <license>
361
441
  <name>MIT</name>
@@ -365,7 +445,7 @@
365
445
  </dependency>
366
446
  <dependency>
367
447
  <packageName>rspec-expectations</packageName>
368
- <version>3.10.2</version>
448
+ <version>3.12.2</version>
369
449
  <licenses>
370
450
  <license>
371
451
  <name>MIT</name>
@@ -375,7 +455,7 @@
375
455
  </dependency>
376
456
  <dependency>
377
457
  <packageName>rspec-mocks</packageName>
378
- <version>3.10.3</version>
458
+ <version>3.12.3</version>
379
459
  <licenses>
380
460
  <license>
381
461
  <name>MIT</name>
@@ -385,7 +465,7 @@
385
465
  </dependency>
386
466
  <dependency>
387
467
  <packageName>rspec-support</packageName>
388
- <version>3.10.3</version>
468
+ <version>3.12.0</version>
389
469
  <licenses>
390
470
  <license>
391
471
  <name>MIT</name>
@@ -398,12 +478,12 @@
398
478
  <version>0.0.5</version>
399
479
  <licenses>
400
480
  <license>
401
- <name>ruby</name>
402
- <url>http://www.ruby-lang.org/en/LICENSE.txt</url>
403
- </license>
404
- <license>
405
481
  <name>Simplified BSD</name>
406
482
  <url>http://opensource.org/licenses/bsd-license</url>
483
+ </license>
484
+ <license>
485
+ <name>ruby</name>
486
+ <url>http://www.ruby-lang.org/en/LICENSE.txt</url>
407
487
  </license>
408
488
  </licenses>
409
489
  </dependency>
@@ -439,17 +519,31 @@
439
519
  </dependency>
440
520
  <dependency>
441
521
  <packageName>simplecov_json_formatter</packageName>
442
- <version>0.1.3</version>
522
+ <version>0.1.4</version>
443
523
  <licenses>
444
524
  <license>
445
525
  <name>MIT</name>
446
526
  <url>http://opensource.org/licenses/mit-license</url>
447
527
  </license>
448
528
  </licenses>
529
+ </dependency>
530
+ <dependency>
531
+ <packageName>strscan</packageName>
532
+ <version>3.1.0</version>
533
+ <licenses>
534
+ <license>
535
+ <name>Simplified BSD</name>
536
+ <url>http://opensource.org/licenses/bsd-license</url>
537
+ </license>
538
+ <license>
539
+ <name>ruby</name>
540
+ <url>http://www.ruby-lang.org/en/LICENSE.txt</url>
541
+ </license>
542
+ </licenses>
449
543
  </dependency>
450
544
  <dependency>
451
545
  <packageName>thor</packageName>
452
- <version>1.0.1</version>
546
+ <version>1.3.1</version>
453
547
  <licenses>
454
548
  <license>
455
549
  <name>MIT</name>
@@ -458,8 +552,8 @@
458
552
  </licenses>
459
553
  </dependency>
460
554
  <dependency>
461
- <packageName>toml</packageName>
462
- <version>0.2.0</version>
555
+ <packageName>tomlrb</packageName>
556
+ <version>2.0.3</version>
463
557
  <licenses>
464
558
  <license>
465
559
  <name>MIT</name>
@@ -469,7 +563,7 @@
469
563
  </dependency>
470
564
  <dependency>
471
565
  <packageName>tzinfo</packageName>
472
- <version>2.0.4</version>
566
+ <version>2.0.6</version>
473
567
  <licenses>
474
568
  <license>
475
569
  <name>MIT</name>
@@ -479,7 +573,7 @@
479
573
  </dependency>
480
574
  <dependency>
481
575
  <packageName>webmock</packageName>
482
- <version>3.14.0</version>
576
+ <version>3.18.1</version>
483
577
  <licenses>
484
578
  <license>
485
579
  <name>MIT</name>
@@ -506,16 +600,6 @@
506
600
  <url>http://opensource.org/licenses/mit-license</url>
507
601
  </license>
508
602
  </licenses>
509
- </dependency>
510
- <dependency>
511
- <packageName>zeitwerk</packageName>
512
- <version>2.5.4</version>
513
- <licenses>
514
- <license>
515
- <name>MIT</name>
516
- <url>http://opensource.org/licenses/mit-license</url>
517
- </license>
518
- </licenses>
519
603
  </dependency>
520
604
  </dependencies>
521
605
  </licenseSummary>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: 3scale_toolbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Soriano
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-02-03 00:00:00.000000000 Z
12
+ date: 2024-08-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -141,16 +141,22 @@ dependencies:
141
141
  name: activesupport
142
142
  requirement: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - "~>"
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: '6'
147
+ - - "<"
145
148
  - !ruby/object:Gem::Version
146
- version: '6.0'
149
+ version: '8'
147
150
  type: :runtime
148
151
  prerelease: false
149
152
  version_requirements: !ruby/object:Gem::Requirement
150
153
  requirements:
151
- - - "~>"
154
+ - - ">="
155
+ - !ruby/object:Gem::Version
156
+ version: '6'
157
+ - - "<"
152
158
  - !ruby/object:Gem::Version
153
- version: '6.0'
159
+ version: '8'
154
160
  description: 3scale tools to manage your API from the terminal.
155
161
  email:
156
162
  - msoriano@redhat.com
@@ -358,14 +364,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
358
364
  requirements:
359
365
  - - ">="
360
366
  - !ruby/object:Gem::Version
361
- version: '2.6'
367
+ version: '3.0'
362
368
  required_rubygems_version: !ruby/object:Gem::Requirement
363
369
  requirements:
364
370
  - - ">="
365
371
  - !ruby/object:Gem::Version
366
372
  version: '0'
367
373
  requirements: []
368
- rubygems_version: 3.0.3
374
+ rubygems_version: 3.5.9
369
375
  signing_key:
370
376
  specification_version: 4
371
377
  summary: 3scale Toolbox.