internetdata 2.5.2 → 2.6.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: a69dc0c954d3a7843902c1ebff82241e7560b4837af2a30953abe6c8b4413ffd
4
- data.tar.gz: 37a24c053291fc5517366c38a41ba816b8af26faebd767e0d64b7dbec79b8b3f
3
+ metadata.gz: 587c5d09f2f53446f02ca08c9644754b0ff46dac8d773fb59363394cbc5c5edd
4
+ data.tar.gz: 7d937623658b9f3dcb5471ad546b500b524c8fa570a000ee689e21f3ea4d8321
5
5
  SHA512:
6
- metadata.gz: de2dd31f2721b74e0b4b482764f7a121d58f0ff2d81f97afe6a5057ceef8c5849275fd4e8beaa6b5e100ddffc73e15dae8f93e341467eb749b21a8efea946ffa
7
- data.tar.gz: 7c5e04852aea631d2375d0e7ce609fbc62561f8299a4ae37ad15acf7b55aaea50ae68ef800094a5e305760e61ceaac5c5bfbe40fba0ced9e2c4a9c8683a7c15f
6
+ metadata.gz: 30693aa5eec85d957911562018ccf449dc1ebf8a65a7701124257887cc2f61afdba13cb576474e03efbd41e69e25274750ec9e37edcb92292c76b94e11e7799d
7
+ data.tar.gz: 73bfe8e45561fbd27183c295a6bba129f1b7cfd2b6d934eb1a5e67545840788df566115879d7e32504ffe45b762368445c61ea2fd418ac9f8e1f35ef27de02ee
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.10.03
6
+ The version of the OpenAPI document: 2026.10.09
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -241,7 +241,7 @@ module InternetData
241
241
  end
242
242
 
243
243
  # List
244
- # The whole published catalog, with your organization's license beside each entry, so `standing` says whether a database is yours today (`licensed`), was (`expired`), or has never been bought (`unlicensed`).
244
+ # The whole published catalog, with your organization's license beside each entry, so `standing` says whether a database is yours today (`licensed`), was (`expired`), or has never been bought (`unlicensed`). An `open` database downloads whatever its `standing`.
245
245
  # @param [Hash] opts the optional parameters
246
246
  # @return [DatabaseList]
247
247
  def list_databases(opts = {})
@@ -250,7 +250,7 @@ module InternetData
250
250
  end
251
251
 
252
252
  # List
253
- # The whole published catalog, with your organization's license beside each entry, so `standing` says whether a database is yours today (`licensed`), was (`expired`), or has never been bought (`unlicensed`).
253
+ # The whole published catalog, with your organization's license beside each entry, so `standing` says whether a database is yours today (`licensed`), was (`expired`), or has never been bought (`unlicensed`). An `open` database downloads whatever its `standing`.
254
254
  # @param [Hash] opts the optional parameters
255
255
  # @return [Array<(DatabaseList, Integer, Hash)>] DatabaseList data, response status code and response headers
256
256
  def list_databases_with_http_info(opts = {})
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.10.03
6
+ The version of the OpenAPI document: 2026.10.09
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.10.03
6
+ The version of the OpenAPI document: 2026.10.09
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.10.03
6
+ The version of the OpenAPI document: 2026.10.09
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.10.03
6
+ The version of the OpenAPI document: 2026.10.09
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -193,8 +193,8 @@ module InternetData
193
193
  end
194
194
 
195
195
  def redirect_location(id, format, timeout)
196
- @api.download_database_v2(id, format, timeout: timeout)
197
- raise Error.new(:server_error, 'expected a redirect to object storage')
196
+ _, status, = @api.download_database_v2_with_http_info(id, format, timeout: timeout)
197
+ raise Error.new(:server_error, 'expected a redirect to object storage', status: status)
198
198
  rescue ApiError => e
199
199
  raise unless e.code == 302
200
200
 
@@ -93,11 +93,12 @@ module InternetData
93
93
  parsed['rc'].is_a?(String) && !parsed['rc'].empty? ? parsed['rc'] : nil
94
94
  end
95
95
 
96
+ # Seconds as digits, or an HTTP date, and nothing else: `Float()` would also
97
+ # read `0x10`, `1_0` and `1e3` as a wait.
96
98
  def self.parse_retry_after(value)
97
- return nil if value.nil? || value.to_s.strip.empty?
98
-
99
- seconds = Float(value, exception: false)
100
- return seconds if seconds && seconds >= 0
99
+ value = value.to_s.strip
100
+ return nil if value.empty?
101
+ return Integer(value, 10) if value.match?(/\A\d+\z/)
101
102
 
102
103
  # The header also permits an HTTP date.
103
104
  when_at = Time.httpdate(value) rescue nil
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.10.03
6
+ The version of the OpenAPI document: 2026.10.09
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -26,6 +26,9 @@ module InternetData
26
26
 
27
27
  attr_accessor :standing
28
28
 
29
+ # An Open database: any organization downloads it, and fetches its checksums, with no license, under CC BY-SA 4.0 (credit InternetData, https://internetdata.io, and share what you build from it under the same license). `standing` still reports your own license, which grants more where you hold one.
30
+ attr_accessor :open
31
+
29
32
  # What your license permits you to do with the data. Null when there is no license, which is every family with standing `unlicensed`.
30
33
  attr_accessor :license_type
31
34
 
@@ -72,6 +75,7 @@ module InternetData
72
75
  :'name' => :'name',
73
76
  :'summary' => :'summary',
74
77
  :'standing' => :'standing',
78
+ :'open' => :'open',
75
79
  :'license_type' => :'license_type',
76
80
  :'starts' => :'starts',
77
81
  :'expires' => :'expires',
@@ -98,6 +102,7 @@ module InternetData
98
102
  :'name' => :'String',
99
103
  :'summary' => :'String',
100
104
  :'standing' => :'Standing',
105
+ :'open' => :'Boolean',
101
106
  :'license_type' => :'String',
102
107
  :'starts' => :'Time',
103
108
  :'expires' => :'Time',
@@ -158,6 +163,12 @@ module InternetData
158
163
  self.standing = nil
159
164
  end
160
165
 
166
+ if attributes.key?(:'open')
167
+ self.open = attributes[:'open']
168
+ else
169
+ self.open = nil
170
+ end
171
+
161
172
  if attributes.key?(:'license_type')
162
173
  self.license_type = attributes[:'license_type']
163
174
  else
@@ -218,6 +229,10 @@ module InternetData
218
229
  invalid_properties.push('invalid value for "standing", standing cannot be nil.')
219
230
  end
220
231
 
232
+ if @open.nil?
233
+ invalid_properties.push('invalid value for "open", open cannot be nil.')
234
+ end
235
+
221
236
  if @versions.nil?
222
237
  invalid_properties.push('invalid value for "versions", versions cannot be nil.')
223
238
  end
@@ -233,6 +248,7 @@ module InternetData
233
248
  return false if @name.nil?
234
249
  return false if @summary.nil?
235
250
  return false if @standing.nil?
251
+ return false if @open.nil?
236
252
  license_type_validator = EnumAttributeValidator.new('String', ["evaluation", "standard", "redistribute"])
237
253
  return false unless license_type_validator.valid?(@license_type)
238
254
  return false if @versions.nil?
@@ -279,6 +295,16 @@ module InternetData
279
295
  @standing = standing
280
296
  end
281
297
 
298
+ # Custom attribute writer method with validation
299
+ # @param [Object] open Value to be assigned
300
+ def open=(open)
301
+ if open.nil?
302
+ fail ArgumentError, 'open cannot be nil'
303
+ end
304
+
305
+ @open = open
306
+ end
307
+
282
308
  # Custom attribute writer method checking allowed values (enum).
283
309
  # @param [Object] license_type Object to be assigned
284
310
  def license_type=(license_type)
@@ -308,6 +334,7 @@ module InternetData
308
334
  name == o.name &&
309
335
  summary == o.summary &&
310
336
  standing == o.standing &&
337
+ open == o.open &&
311
338
  license_type == o.license_type &&
312
339
  starts == o.starts &&
313
340
  expires == o.expires &&
@@ -325,7 +352,7 @@ module InternetData
325
352
  # Calculates hash code according to all attributes.
326
353
  # @return [Integer] Hash code
327
354
  def hash
328
- [base, name, summary, standing, license_type, starts, expires, renews_at, notice_due_at, versions].hash
355
+ [base, name, summary, standing, open, license_type, starts, expires, renews_at, notice_due_at, versions].hash
329
356
  end
330
357
 
331
358
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.10.03
6
+ The version of the OpenAPI document: 2026.10.09
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.10.03
6
+ The version of the OpenAPI document: 2026.10.09
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.10.03
6
+ The version of the OpenAPI document: 2026.10.09
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.10.03
6
+ The version of the OpenAPI document: 2026.10.09
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.10.03
6
+ The version of the OpenAPI document: 2026.10.09
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.10.03
6
+ The version of the OpenAPI document: 2026.10.09
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.10.03
6
+ The version of the OpenAPI document: 2026.10.09
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.10.03
6
+ The version of the OpenAPI document: 2026.10.09
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.10.03
6
+ The version of the OpenAPI document: 2026.10.09
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -25,6 +25,9 @@ module InternetData
25
25
  # The evaluation sample rather than the database itself.
26
26
  attr_accessor :sample
27
27
 
28
+ # Taken under the Open license rather than one of your licenses: an Open database downloaded while your organization held no license in term for it.
29
+ attr_accessor :open
30
+
28
31
  # Object size at redirect time, NOT bytes delivered: the transfer is a presigned redirect straight to object storage, so we never observe how much of it was taken.
29
32
  attr_accessor :bytes
30
33
 
@@ -68,6 +71,7 @@ module InternetData
68
71
  :'format' => :'format',
69
72
  :'outcome' => :'outcome',
70
73
  :'sample' => :'sample',
74
+ :'open' => :'open',
71
75
  :'bytes' => :'bytes',
72
76
  :'http_status' => :'http_status',
73
77
  :'apikey_id' => :'apikey_id',
@@ -94,6 +98,7 @@ module InternetData
94
98
  :'format' => :'String',
95
99
  :'outcome' => :'String',
96
100
  :'sample' => :'Boolean',
101
+ :'open' => :'Boolean',
97
102
  :'bytes' => :'Integer',
98
103
  :'http_status' => :'Integer',
99
104
  :'apikey_id' => :'String',
@@ -154,6 +159,12 @@ module InternetData
154
159
  self.sample = nil
155
160
  end
156
161
 
162
+ if attributes.key?(:'open')
163
+ self.open = attributes[:'open']
164
+ else
165
+ self.open = nil
166
+ end
167
+
157
168
  if attributes.key?(:'bytes')
158
169
  self.bytes = attributes[:'bytes']
159
170
  else
@@ -212,6 +223,10 @@ module InternetData
212
223
  invalid_properties.push('invalid value for "sample", sample cannot be nil.')
213
224
  end
214
225
 
226
+ if @open.nil?
227
+ invalid_properties.push('invalid value for "open", open cannot be nil.')
228
+ end
229
+
215
230
  if @created.nil?
216
231
  invalid_properties.push('invalid value for "created", created cannot be nil.')
217
232
  end
@@ -229,6 +244,7 @@ module InternetData
229
244
  outcome_validator = EnumAttributeValidator.new('String', ["ok", "unauthorized", "denied", "expired", "unknown", "unavailable"])
230
245
  return false unless outcome_validator.valid?(@outcome)
231
246
  return false if @sample.nil?
247
+ return false if @open.nil?
232
248
  return false if @created.nil?
233
249
  true
234
250
  end
@@ -273,6 +289,16 @@ module InternetData
273
289
  @sample = sample
274
290
  end
275
291
 
292
+ # Custom attribute writer method with validation
293
+ # @param [Object] open Value to be assigned
294
+ def open=(open)
295
+ if open.nil?
296
+ fail ArgumentError, 'open cannot be nil'
297
+ end
298
+
299
+ @open = open
300
+ end
301
+
276
302
  # Custom attribute writer method with validation
277
303
  # @param [Object] created Value to be assigned
278
304
  def created=(created)
@@ -292,6 +318,7 @@ module InternetData
292
318
  format == o.format &&
293
319
  outcome == o.outcome &&
294
320
  sample == o.sample &&
321
+ open == o.open &&
295
322
  bytes == o.bytes &&
296
323
  http_status == o.http_status &&
297
324
  apikey_id == o.apikey_id &&
@@ -309,7 +336,7 @@ module InternetData
309
336
  # Calculates hash code according to all attributes.
310
337
  # @return [Integer] Hash code
311
338
  def hash
312
- [dataset_id, format, outcome, sample, bytes, http_status, apikey_id, client_ip, user_agent, created].hash
339
+ [dataset_id, format, outcome, sample, open, bytes, http_status, apikey_id, client_ip, user_agent, created].hash
313
340
  end
314
341
 
315
342
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.10.03
6
+ The version of the OpenAPI document: 2026.10.09
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.10.03
6
+ The version of the OpenAPI document: 2026.10.09
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.10.03
6
+ The version of the OpenAPI document: 2026.10.09
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.10.03
6
+ The version of the OpenAPI document: 2026.10.09
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.10.03
6
+ The version of the OpenAPI document: 2026.10.09
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -47,13 +47,17 @@ module InternetData
47
47
  # where it lands in every access log between here and the API. The sibling
48
48
  # brand's transport has always narrowed it this way; this one did not, and
49
49
  # its own test caught it.
50
+ #
51
+ # A key of blanks alone is no key: unstripped, `' '` or a tab went out
52
+ # as `Authorization: Bearer` and the blank (2.6.0, measured 2026-10-09).
50
53
  def auth_settings
51
- return {} if access_token.nil? || access_token.to_s.empty?
54
+ token = access_token.to_s.strip
55
+ return {} if token.empty?
52
56
 
53
57
  {
54
58
  'BearerAuth' => {
55
59
  type: 'bearer', in: 'header', key: 'Authorization',
56
- value: "Bearer #{access_token}"
60
+ value: "Bearer #{token}"
57
61
  }
58
62
  }
59
63
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InternetData
4
- VERSION = '2.5.2'
4
+ VERSION = '2.6.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: internetdata
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.2
4
+ version: 2.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mslm Dev