internetdata 2.9.1 → 2.10.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.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +146 -9
  3. data/lib/internetdata/api/database_v2_api.rb +2 -2
  4. data/lib/internetdata/api_client.rb +2 -2
  5. data/lib/internetdata/api_error.rb +2 -2
  6. data/lib/internetdata/api_model_base.rb +2 -2
  7. data/lib/internetdata/asn_result.rb +107 -0
  8. data/lib/internetdata/bogon.rb +87 -0
  9. data/lib/internetdata/bogons.rb +93 -0
  10. data/lib/internetdata/cache.rb +35 -0
  11. data/lib/internetdata/client.rb +388 -16
  12. data/lib/internetdata/configuration.rb +23 -2
  13. data/lib/internetdata/domain_result.rb +124 -0
  14. data/lib/internetdata/errors.rb +29 -6
  15. data/lib/internetdata/models/abuse_contact.rb +236 -0
  16. data/lib/internetdata/models/asn.rb +294 -0
  17. data/lib/internetdata/models/asn_lookup_response.rb +405 -0
  18. data/lib/internetdata/models/asn_prefix.rb +329 -0
  19. data/lib/internetdata/models/batch_lookup_error.rb +192 -0
  20. data/lib/internetdata/models/bit_torrent_detail.rb +410 -0
  21. data/lib/internetdata/models/carrier_detail.rb +273 -0
  22. data/lib/internetdata/models/class_detail.rb +246 -0
  23. data/lib/internetdata/models/client_registration.rb +2 -2
  24. data/lib/internetdata/models/company.rb +213 -0
  25. data/lib/internetdata/models/database.rb +2 -2
  26. data/lib/internetdata/models/database_checksums_response.rb +2 -2
  27. data/lib/internetdata/models/database_format.rb +2 -2
  28. data/lib/internetdata/models/database_list.rb +2 -2
  29. data/lib/internetdata/models/database_metadata.rb +2 -2
  30. data/lib/internetdata/models/database_metadata_column.rb +2 -2
  31. data/lib/internetdata/models/database_version.rb +2 -2
  32. data/lib/internetdata/models/db_checksums.rb +2 -2
  33. data/lib/internetdata/models/device_authorization.rb +2 -2
  34. data/lib/internetdata/models/disposable_detail.rb +248 -0
  35. data/lib/internetdata/models/dns_address_record.rb +192 -0
  36. data/lib/internetdata/models/dns_cname_record.rb +192 -0
  37. data/lib/internetdata/models/dns_mx_record.rb +219 -0
  38. data/lib/internetdata/models/dns_ns_record.rb +192 -0
  39. data/lib/internetdata/models/dns_resolver_detail.rb +300 -0
  40. data/lib/internetdata/models/domain_dns.rb +279 -0
  41. data/lib/internetdata/models/domain_ip_range.rb +219 -0
  42. data/lib/internetdata/models/domain_ip_ranges.rb +276 -0
  43. data/lib/internetdata/models/domain_lookup_response.rb +376 -0
  44. data/lib/internetdata/models/download.rb +2 -2
  45. data/lib/internetdata/models/download_list.rb +2 -2
  46. data/lib/internetdata/models/entitlement.rb +243 -0
  47. data/lib/internetdata/models/entitlement_apikey.rb +207 -0
  48. data/lib/internetdata/models/entitlement_plan.rb +216 -0
  49. data/lib/internetdata/models/entitlement_usage.rb +259 -0
  50. data/lib/internetdata/models/error_envelope.rb +2 -2
  51. data/lib/internetdata/models/hosted_domains.rb +166 -0
  52. data/lib/internetdata/models/location.rb +509 -0
  53. data/lib/internetdata/models/lookup_response.rb +897 -0
  54. data/lib/internetdata/models/oauth_metadata.rb +2 -2
  55. data/lib/internetdata/models/proxy_detail.rb +327 -0
  56. data/lib/internetdata/models/pubproxy_detail.rb +329 -0
  57. data/lib/internetdata/models/rwhois.rb +301 -0
  58. data/lib/internetdata/models/satellite_detail.rb +327 -0
  59. data/lib/internetdata/models/smtp_detail.rb +273 -0
  60. data/lib/internetdata/models/ssh_detail.rb +300 -0
  61. data/lib/internetdata/models/standing.rb +2 -2
  62. data/lib/internetdata/models/token_response.rb +2 -2
  63. data/lib/internetdata/models/web_detail.rb +516 -0
  64. data/lib/internetdata/models/whois.rb +382 -0
  65. data/lib/internetdata/oauth_api.rb +12 -5
  66. data/lib/internetdata/result.rb +431 -0
  67. data/lib/internetdata/transport.rb +215 -27
  68. data/lib/internetdata/version.rb +1 -1
  69. data/lib/internetdata.rb +17 -2
  70. metadata +58 -3
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'cgi'
3
4
  require 'json'
4
5
  require 'uri'
5
6
 
@@ -7,6 +8,21 @@ module InternetData
7
8
  # The generated wire client, with the three things it gets wrong for this API
8
9
  # corrected in one place.
9
10
  class Transport < ApiClient
11
+ # The spec's path templates for the lookups, which the client builds itself:
12
+ # no generated class holds them, since a batch queues its requests on a hydra
13
+ # and the generated methods run each request as they build it. The suite
14
+ # holds each one to spec/openapi.yaml.
15
+ LOOKUP_PATH = '/{ip}'
16
+ MYIP_PATH = '/myip'
17
+ ASN_PATH = '/asn/{asn}'
18
+ DOMAIN_PATH = '/domain/{domain}'
19
+ ENTITLEMENT_PATH = '/api/v1/entitlement'
20
+ BATCH_PATH = '/batch'
21
+ # The lookups' operations spell their bearer scheme `bearerAuth` and the
22
+ # database's `BearerAuth`. Config answers the one bearer this client sends
23
+ # under the database's spelling, so a lookup names that.
24
+ LOOKUP_AUTH = %w[BearerAuth].freeze
25
+
10
26
  # The longest `timeout` curl holds, in seconds: 2**31 - 1 ms, about 24.8 days.
11
27
  # libcurl refuses a longer one, and any negative, and Ethon ignores the
12
28
  # refusal, so the call would run with no bound at all.
@@ -76,7 +92,7 @@ module InternetData
76
92
  end
77
93
  end
78
94
 
79
- def initialize(config)
95
+ def initialize(config = Config.new)
80
96
  super
81
97
  @default_headers['User-Agent'] = "internetdata-ruby/#{VERSION}"
82
98
  end
@@ -97,6 +113,24 @@ module InternetData
97
113
  request
98
114
  end
99
115
 
116
+ # A request built with `oauth: true` goes to the authorization server, the
117
+ # rest to the API.
118
+ def build_request_url(path, opts = {})
119
+ opts[:oauth] ? "#{oauth_base_url}#{path}" : super
120
+ end
121
+
122
+ # Where the authorization server answers: the apex the API host is named
123
+ # under, since the issuer is the apex and the API host serves no OAuth
124
+ # route. `api.` is dropped and `api-<env>.` becomes `<env>.`, so
125
+ # `https://api.internetdata.io` signs in at `https://internetdata.io`; any
126
+ # other base URL is used as given.
127
+ def oauth_base_url
128
+ @config.base_url.sub(%r{\A(https?://)api(?:-([^./:]+))?\.}i) do
129
+ env = Regexp.last_match(2)
130
+ "#{Regexp.last_match(1)}#{env ? "#{env}." : ''}"
131
+ end
132
+ end
133
+
100
134
  # A 2xx the generated client cannot read as the answer it promises is the
101
135
  # server's fault, and a retryable :server_error, as it is on the OAuth calls:
102
136
  # a proxy's HTML page, a cut-off or empty body, or an object missing a member
@@ -112,7 +146,7 @@ module InternetData
112
146
  data = super
113
147
  raise Error.new(:server_error, "the API answered with no #{return_type}", status: response.code) if data.nil?
114
148
 
115
- check_type!(JSON.parse(response.body, symbolize_names: true), return_type.to_s, 'the answer') if return_type
149
+ Transport.check_type!(JSON.parse(response.body.to_s), return_type.to_s, 'the answer') if return_type
116
150
  data
117
151
  rescue Error
118
152
  raise
@@ -158,12 +192,111 @@ module InternetData
158
192
  headers = { 'Accept' => 'application/json' }
159
193
  headers['Content-Type'] = 'application/x-www-form-urlencoded' unless form.nil?
160
194
  headers['Content-Type'] = 'application/json' unless json.nil?
161
- request = build_request(http_method, path, header_params: headers, auth_names: [], timeout: timeout)
195
+ request = build_request(http_method, path, header_params: headers, auth_names: [], timeout: timeout,
196
+ oauth: true)
162
197
  request.options[:body] = URI.encode_www_form(form) unless form.nil?
163
198
  request.options[:body] = JSON.generate(json) unless json.nil?
164
199
  request
165
200
  end
166
201
 
202
+ def lookup_request(ip, timeout: nil)
203
+ lookup_get(LOOKUP_PATH.sub('{ip}', CGI.escape(ip.to_s)), timeout)
204
+ end
205
+
206
+ def myip_request(timeout: nil)
207
+ lookup_get(MYIP_PATH, timeout)
208
+ end
209
+
210
+ def asn_request(asn, timeout: nil)
211
+ lookup_get(ASN_PATH.sub('{asn}', CGI.escape(asn.to_s)), timeout)
212
+ end
213
+
214
+ def domain_request(domain, timeout: nil)
215
+ lookup_get(DOMAIN_PATH.sub('{domain}', CGI.escape(domain.to_s)), timeout)
216
+ end
217
+
218
+ def entitlement_request(timeout: nil)
219
+ lookup_get(ENTITLEMENT_PATH, timeout)
220
+ end
221
+
222
+ # The one request with a body: the batch.
223
+ def batch_request(ips, timeout: nil)
224
+ build_request(
225
+ :POST, BATCH_PATH,
226
+ header_params: { 'Accept' => 'application/json', 'Content-Type' => 'application/json' },
227
+ body: { ips: ips },
228
+ auth_names: LOOKUP_AUTH,
229
+ timeout: timeout,
230
+ )
231
+ end
232
+
233
+ def self.entitlement_result(response)
234
+ body = answer(response)
235
+ begin
236
+ check_type!(body, 'Entitlement', 'the answer')
237
+ Entitlement.build_from_hash(body)
238
+ rescue StandardError => e
239
+ raise Error.new(:server_error, "could not read the answer as Entitlement: #{e.message}",
240
+ status: response.code)
241
+ end
242
+ end
243
+
244
+ def self.lookup_result(response)
245
+ Result.new(checked_answer(response, 'LookupResponse'))
246
+ end
247
+
248
+ def self.asn_result(response)
249
+ AsnResult.new(checked_answer(response, 'AsnLookupResponse'))
250
+ end
251
+
252
+ def self.domain_result(response)
253
+ DomainResult.new(checked_answer(response, 'DomainLookupResponse'))
254
+ end
255
+
256
+ # Whether a parsed value is the generated `type`: a batch entry that is not
257
+ # is that address's error alone.
258
+ def self.conforms?(value, type)
259
+ check_type!(value, type, 'the entry')
260
+ rescue TypeError
261
+ false
262
+ end
263
+
264
+ # The two maps of a batch answer, each present even when empty. An answer
265
+ # carrying neither is unreadable as a whole, and is retried as one.
266
+ def self.batch_body(response)
267
+ body = answer(response)
268
+ unless body['results'].is_a?(Hash) || body['errors'].is_a?(Hash)
269
+ raise Error.new(:server_error, 'the batch answer carried neither results nor errors',
270
+ status: response.code)
271
+ end
272
+
273
+ {
274
+ 'results' => body['results'].is_a?(Hash) ? body['results'] : {},
275
+ 'errors' => body['errors'].is_a?(Hash) ? body['errors'] : {},
276
+ }
277
+ end
278
+
279
+ # The JSON object a 2xx lookup answer carries; anything else raises the
280
+ # error its status or its unreadable body maps to.
281
+ def self.answer(response)
282
+ raise Error.from_transport(response) if transport_failure?(response)
283
+ raise Error.from_status(response.code, response.headers, response.body) unless response.success?
284
+
285
+ parse_object(response)
286
+ end
287
+
288
+ # The answer, once every member it carries has the spec's type.
289
+ def self.checked_answer(response, type)
290
+ body = answer(response)
291
+ begin
292
+ check_type!(body, type, 'the answer')
293
+ rescue TypeError => e
294
+ raise Error.new(:server_error, "could not read the answer as #{type}: #{e.message}",
295
+ status: response.code)
296
+ end
297
+ body
298
+ end
299
+
167
300
  # The JSON object a 2xx OAuth answer carries. A refusal the authorization
168
301
  # server words as an RFC 6749 error raises that; anything else that is not a
169
302
  # 2xx raises the ordinary error its status maps to.
@@ -209,14 +342,54 @@ module InternetData
209
342
  status: response.code)
210
343
  end
211
344
 
212
- private_class_method :transport_failure?, :parse_object, :oauth_refusal
345
+ private_class_method :transport_failure?, :parse_object, :oauth_refusal, :answer, :checked_answer
213
346
 
214
- # The members the spec requires of each answer a database call reads. One of
215
- # them that is not nullable must be there and not null: the generated reader
216
- # skips the writer of a list or map member that is not one, so `"versions":
217
- # null` came back as a family with no versions (2.8.1, measured 2026-10-19).
218
- # test/database_test.rb holds this to spec/openapi.yaml.
347
+ # The members the spec requires of each answer a lookup, a batch, the
348
+ # entitlement or a database call reads. One that is not nullable must be
349
+ # there and not null: the generated reader skips the writer of a list or map
350
+ # member that is not one, so `"versions": null` came back as a family with no
351
+ # versions (2.8.1, measured 2026-10-19). A member the spec does not require is
352
+ # one a plan may leave out. test/database_test.rb holds this to
353
+ # spec/openapi.yaml.
219
354
  REQUIRED = {
355
+ 'LookupResponse' => %i[ip is_bogon is_tor is_relay is_anycast is_carrier is_satellite is_ssh is_smtp
356
+ is_web is_dns_resolver is_bittorrent tor relay location asn company hostname abuse],
357
+ 'ClassDetail' => %i[provider provider_name confidence last_seen],
358
+ 'ProxyDetail' => %i[provider provider_name first_seen last_seen hits hits_days_pct providers_num],
359
+ 'PubproxyDetail' => %i[entry exit protocols num_ports num_proxies last_seen last_usable],
360
+ 'CarrierDetail' => %i[name mcc mnc country confidence],
361
+ 'SatelliteDetail' => %i[provider provider_name orbit segment country asn confidence],
362
+ 'SshDetail' => %i[port banner host_key_fp session_ok first_seen last_seen],
363
+ 'SmtpDetail' => %i[port banner session_ok first_seen last_seen],
364
+ 'WebDetail' => %i[port tls_ok session_ok status_code server location title cert_subject_cn
365
+ cert_subject_o cert_issuer_dn cert_browser_trusted tls_version first_seen last_seen],
366
+ 'DnsResolverDetail' => %i[port recursion_available rcode answer_correct first_seen last_seen],
367
+ 'BitTorrentDetail' => %i[verified id_matches_ip first_seen last_seen last_reachable days_seen num_ports
368
+ peak_num_ports indexer clients],
369
+ 'Location' => %i[continent continent_name country country_name timezone currency_code currency_name
370
+ currency_symbol flag_emoji flag_unicode],
371
+ 'Asn' => %i[asn name domain type prefix],
372
+ 'Company' => %i[name domain],
373
+ 'AbuseContact' => %i[email],
374
+ 'Whois' => %i[id name org country status source domain abuse_email asn],
375
+ 'Rwhois' => %i[id name country source domain abuse_email],
376
+ 'HostedDomains' => %i[total],
377
+ 'AsnLookupResponse' => %i[asn name country registry allocated domain],
378
+ 'AsnPrefix' => %i[prefix peer_count rpki_status first_seen country size other_origins],
379
+ 'DomainLookupResponse' => %i[domain is_registered has_a has_aaaa has_mx has_ns has_cname],
380
+ 'DomainDns' => %i[a aaaa mx ns cname],
381
+ 'DnsAddressRecord' => %i[ip last_seen],
382
+ 'DnsMxRecord' => %i[priority host last_seen],
383
+ 'DnsNsRecord' => %i[host last_seen],
384
+ 'DnsCnameRecord' => %i[target last_seen],
385
+ 'DomainIpRanges' => %i[domain redirects_to total ipv4 ranges],
386
+ 'DomainIpRange' => %i[range name country],
387
+ 'DisposableDetail' => %i[confidence providers first_seen last_seen],
388
+ 'BatchLookupError' => %i[status error],
389
+ 'Entitlement' => %i[org_id apikey plan usage],
390
+ 'EntitlementApikey' => %i[id expires allowed_cidrs],
391
+ 'EntitlementPlan' => %i[key tier],
392
+ 'EntitlementUsage' => %i[requests quota hard_limit window_start window_end],
220
393
  'DatabaseList' => %i[databases],
221
394
  'Database' => %i[base name summary standing open license_type starts expires renews_at notice_due_at versions],
222
395
  'DatabaseVersion' => %i[id version summary formats],
@@ -228,6 +401,13 @@ module InternetData
228
401
  'Download' => %i[dataset_id format outcome sample open bytes http_status apikey_id client_ip user_agent created],
229
402
  }.freeze
230
403
 
404
+ # The detail objects, each `{}` under a false flag (the spec's `allOf`
405
+ # members), so an empty one is present and empty, while a populated one
406
+ # carries every member the spec requires of it. test/database_test.rb holds
407
+ # this to spec/openapi.yaml.
408
+ DETAILS = %w[ClassDetail ProxyDetail PubproxyDetail CarrierDetail SatelliteDetail SshDetail SmtpDetail
409
+ DnsResolverDetail BitTorrentDetail DisposableDetail].freeze
410
+
231
411
  # RFC 3339's full-date, the spec's `date`, and its date-time, the spec's
232
412
  # `date-time`, its `T` and `Z` in either case, as RFC 3339 allows: through
233
413
  # 2.8.4 a lowercase one failed the call. Anything else reached the
@@ -237,13 +417,20 @@ module InternetData
237
417
  RFC3339_DATE = /\A(\d{4})-(\d{2})-(\d{2})\z/
238
418
  RFC3339_DATE_TIME = /\A(\d{4})-(\d{2})-(\d{2})[Tt](\d{2}):(\d{2}):(\d{2})(?:\.\d+)?(?:[Zz]|[+-](\d{2}):(\d{2}))\z/
239
419
 
240
- private
420
+ # A date in the form its type names, on a day and at a time that exist: an
421
+ # hour of 24 rolls over the way a missing day does.
422
+ def self.date?(value, type)
423
+ m = (type == 'Date' ? RFC3339_DATE : RFC3339_DATE_TIME).match(value)
424
+ return false unless m && Date.valid_date?(m[1].to_i, m[2].to_i, m[3].to_i)
241
425
 
242
- # True when `value` has the generated `type`, a model's members recursively;
243
- # raises TypeError naming where it does not. No list entry or map value the
244
- # spec describes may be null, and through 2.8.1 one came back as nil, or as 0
245
- # in `size`.
246
- def check_type!(value, type, where)
426
+ type == 'Date' || (m[4].to_i < 24 && m[5].to_i < 60 && m[6].to_i < 60 && m[7].to_i < 24 && m[8].to_i < 60)
427
+ end
428
+
429
+ # True when the parsed `value` has the generated `type`, a model's members
430
+ # recursively; raises TypeError naming where it does not. No list entry or
431
+ # map value the spec describes may be null: through 2.8.1 one came back as
432
+ # nil, or as 0 in `size`.
433
+ def self.check_type!(value, type, where)
247
434
  raise TypeError, "#{where} is null" if value.nil?
248
435
 
249
436
  typed =
@@ -265,7 +452,8 @@ module InternetData
265
452
  else
266
453
  model = InternetData.const_get(type)
267
454
  if model.respond_to?(:openapi_types)
268
- value.is_a?(Hash) && model.openapi_types.all? { |attr, member| check_member!(model, attr, member, value, where) }
455
+ value.is_a?(Hash) && ((value.empty? && DETAILS.include?(type)) ||
456
+ model.openapi_types.all? { |attr, member| check_member!(model, attr, member, value, where) })
269
457
  else
270
458
  value.is_a?(String) # an enum
271
459
  end
@@ -275,24 +463,24 @@ module InternetData
275
463
  raise TypeError, "#{where} is not a #{type}"
276
464
  end
277
465
 
278
- # A date in the form its type names, on a day and at a time that exist: an
279
- # hour of 24 rolls over the way a missing day does.
280
- def date?(value, type)
281
- m = (type == 'Date' ? RFC3339_DATE : RFC3339_DATE_TIME).match(value)
282
- return false unless m && Date.valid_date?(m[1].to_i, m[2].to_i, m[3].to_i)
283
-
284
- type == 'Date' || (m[4].to_i < 24 && m[5].to_i < 60 && m[6].to_i < 60 && m[7].to_i < 24 && m[8].to_i < 60)
285
- end
286
-
287
466
  # A member absent or null reads as absent, unless the spec requires it and
288
467
  # does not make it nullable.
289
- def check_member!(model, attr, member, value, where)
290
- key = model.attribute_map[attr]
468
+ def self.check_member!(model, attr, member, value, where)
469
+ key = model.attribute_map[attr].to_s
291
470
  return check_type!(value[key], member.to_s, "#{where}.#{key}") unless value[key].nil?
292
471
  return true unless REQUIRED.fetch(model.name.split('::').last).include?(attr)
293
472
  return true if model.openapi_nullable.include?(attr)
294
473
 
295
474
  raise TypeError, "#{where}.#{key} is #{value.key?(key) ? 'null' : 'missing'}"
296
475
  end
476
+
477
+ private_class_method :check_member!
478
+
479
+ private
480
+
481
+ def lookup_get(path, timeout)
482
+ build_request(:GET, path, header_params: { 'Accept' => 'application/json' }, auth_names: LOOKUP_AUTH,
483
+ timeout: timeout)
484
+ end
297
485
  end
298
486
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InternetData
4
- VERSION = '2.9.1'
4
+ VERSION = '2.10.0'
5
5
  end
data/lib/internetdata.rb CHANGED
@@ -12,7 +12,13 @@ require 'internetdata/configuration'
12
12
  Dir[File.join(__dir__, 'internetdata', 'models', '*.rb')].sort.each { |model| require model }
13
13
  Dir[File.join(__dir__, 'internetdata', 'api', '*.rb')].sort.each { |api| require api }
14
14
 
15
+ require 'internetdata/bogons'
15
16
  require 'internetdata/errors'
17
+ require 'internetdata/result'
18
+ require 'internetdata/asn_result'
19
+ require 'internetdata/domain_result'
20
+ require 'internetdata/bogon'
21
+ require 'internetdata/cache'
16
22
  require 'internetdata/retries'
17
23
  require 'internetdata/transport'
18
24
  require 'internetdata/database_api'
@@ -21,7 +27,16 @@ require 'internetdata/client'
21
27
 
22
28
  # The official Ruby client library for the InternetData API.
23
29
  #
24
- # client = InternetData::Client.new(api_key: ENV['INTERNETDATA_API_KEY'])
25
- # client.database.download('bogon_ip_v1', 'mmdb', './bogon_ip_v1.mmdb')
30
+ # client = InternetData::Client.new
31
+ # client.lookup('146.70.116.130').location['country'] # => "AT"
26
32
  module InternetData
33
+ # Whether an address is a bogon: private, loopback, link-local, documentation,
34
+ # multicast or otherwise not routable on the public internet, including the
35
+ # IPv6 equivalents and the 6to4 and Teredo ranges that wrap them.
36
+ #
37
+ # A client answers these itself, so they never cost a request. The same
38
+ # predicate is on the client, which is how the README teaches it.
39
+ def self.bogon?(ip)
40
+ Bogon.bogon?(ip)
41
+ end
27
42
  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.9.1
4
+ version: 2.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mslm Dev
@@ -23,8 +23,23 @@ dependencies:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
25
  version: '1.4'
26
- description: Download InternetData IP and ASN databases, and read their metadata,
27
- checksums and download history.
26
+ - !ruby/object:Gem::Dependency
27
+ name: lru_redux
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '1.1'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.1'
40
+ description: Look up IP addresses, AS numbers and domains in the InternetData API,
41
+ and download its IP and ASN databases with their metadata, checksums and download
42
+ history.
28
43
  email:
29
44
  - dev@internetdata.io
30
45
  executables: []
@@ -38,11 +53,25 @@ files:
38
53
  - lib/internetdata/api_client.rb
39
54
  - lib/internetdata/api_error.rb
40
55
  - lib/internetdata/api_model_base.rb
56
+ - lib/internetdata/asn_result.rb
57
+ - lib/internetdata/bogon.rb
58
+ - lib/internetdata/bogons.rb
59
+ - lib/internetdata/cache.rb
41
60
  - lib/internetdata/client.rb
42
61
  - lib/internetdata/configuration.rb
43
62
  - lib/internetdata/database_api.rb
63
+ - lib/internetdata/domain_result.rb
44
64
  - lib/internetdata/errors.rb
65
+ - lib/internetdata/models/abuse_contact.rb
66
+ - lib/internetdata/models/asn.rb
67
+ - lib/internetdata/models/asn_lookup_response.rb
68
+ - lib/internetdata/models/asn_prefix.rb
69
+ - lib/internetdata/models/batch_lookup_error.rb
70
+ - lib/internetdata/models/bit_torrent_detail.rb
71
+ - lib/internetdata/models/carrier_detail.rb
72
+ - lib/internetdata/models/class_detail.rb
45
73
  - lib/internetdata/models/client_registration.rb
74
+ - lib/internetdata/models/company.rb
46
75
  - lib/internetdata/models/database.rb
47
76
  - lib/internetdata/models/database_checksums_response.rb
48
77
  - lib/internetdata/models/database_format.rb
@@ -52,13 +81,39 @@ files:
52
81
  - lib/internetdata/models/database_version.rb
53
82
  - lib/internetdata/models/db_checksums.rb
54
83
  - lib/internetdata/models/device_authorization.rb
84
+ - lib/internetdata/models/disposable_detail.rb
85
+ - lib/internetdata/models/dns_address_record.rb
86
+ - lib/internetdata/models/dns_cname_record.rb
87
+ - lib/internetdata/models/dns_mx_record.rb
88
+ - lib/internetdata/models/dns_ns_record.rb
89
+ - lib/internetdata/models/dns_resolver_detail.rb
90
+ - lib/internetdata/models/domain_dns.rb
91
+ - lib/internetdata/models/domain_ip_range.rb
92
+ - lib/internetdata/models/domain_ip_ranges.rb
93
+ - lib/internetdata/models/domain_lookup_response.rb
55
94
  - lib/internetdata/models/download.rb
56
95
  - lib/internetdata/models/download_list.rb
96
+ - lib/internetdata/models/entitlement.rb
97
+ - lib/internetdata/models/entitlement_apikey.rb
98
+ - lib/internetdata/models/entitlement_plan.rb
99
+ - lib/internetdata/models/entitlement_usage.rb
57
100
  - lib/internetdata/models/error_envelope.rb
101
+ - lib/internetdata/models/hosted_domains.rb
102
+ - lib/internetdata/models/location.rb
103
+ - lib/internetdata/models/lookup_response.rb
58
104
  - lib/internetdata/models/oauth_metadata.rb
105
+ - lib/internetdata/models/proxy_detail.rb
106
+ - lib/internetdata/models/pubproxy_detail.rb
107
+ - lib/internetdata/models/rwhois.rb
108
+ - lib/internetdata/models/satellite_detail.rb
109
+ - lib/internetdata/models/smtp_detail.rb
110
+ - lib/internetdata/models/ssh_detail.rb
59
111
  - lib/internetdata/models/standing.rb
60
112
  - lib/internetdata/models/token_response.rb
113
+ - lib/internetdata/models/web_detail.rb
114
+ - lib/internetdata/models/whois.rb
61
115
  - lib/internetdata/oauth_api.rb
116
+ - lib/internetdata/result.rb
62
117
  - lib/internetdata/retries.rb
63
118
  - lib/internetdata/transport.rb
64
119
  - lib/internetdata/version.rb