internetdata 2.20.1 → 2.21.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 +4 -4
- data/README.md +11 -10
- data/lib/internetdata/api/database_v2_api.rb +1 -1
- data/lib/internetdata/api_client.rb +1 -1
- data/lib/internetdata/api_error.rb +1 -1
- data/lib/internetdata/api_model_base.rb +1 -1
- data/lib/internetdata/asn_result.rb +35 -25
- data/lib/internetdata/cache.rb +5 -5
- data/lib/internetdata/client.rb +12 -12
- data/lib/internetdata/configuration.rb +1 -1
- data/lib/internetdata/domain_result.rb +23 -22
- data/lib/internetdata/middleware/core.rb +6 -6
- data/lib/internetdata/models/abuse_contact.rb +9 -9
- data/lib/internetdata/models/asn.rb +2 -2
- data/lib/internetdata/models/asn_hosted_domains.rb +2 -2
- data/lib/internetdata/models/asn_lookup_response.rb +20 -20
- data/lib/internetdata/models/asn_prefix.rb +1 -1
- data/lib/internetdata/models/batch_lookup_error.rb +1 -1
- data/lib/internetdata/models/bit_torrent_detail.rb +1 -1
- data/lib/internetdata/models/bot_detail.rb +1 -1
- data/lib/internetdata/models/carrier_detail.rb +1 -1
- data/lib/internetdata/models/class_detail.rb +1 -1
- data/lib/internetdata/models/client_registration.rb +1 -1
- data/lib/internetdata/models/cohosted_domains.rb +2 -2
- data/lib/internetdata/models/company.rb +4 -4
- data/lib/internetdata/models/database.rb +1 -1
- data/lib/internetdata/models/database_checksums_response.rb +1 -1
- data/lib/internetdata/models/database_format.rb +1 -1
- data/lib/internetdata/models/database_list.rb +1 -1
- data/lib/internetdata/models/database_metadata.rb +1 -1
- data/lib/internetdata/models/database_metadata_column.rb +1 -1
- data/lib/internetdata/models/database_version.rb +1 -1
- data/lib/internetdata/models/db_checksums.rb +1 -1
- data/lib/internetdata/models/device_authorization.rb +1 -1
- data/lib/internetdata/models/disposable_detail.rb +1 -1
- data/lib/internetdata/models/dns_address_record.rb +1 -1
- data/lib/internetdata/models/dns_cname_record.rb +1 -1
- data/lib/internetdata/models/dns_mx_record.rb +1 -1
- data/lib/internetdata/models/dns_ns_record.rb +1 -1
- data/lib/internetdata/models/dns_resolver_detail.rb +1 -1
- data/lib/internetdata/models/domain_backlinks.rb +2 -2
- data/lib/internetdata/models/domain_dns.rb +2 -2
- data/lib/internetdata/models/domain_host.rb +1 -1
- data/lib/internetdata/models/domain_ip_range.rb +1 -1
- data/lib/internetdata/models/domain_ip_ranges.rb +2 -2
- data/lib/internetdata/models/domain_lookup_response.rb +6 -6
- data/lib/internetdata/models/domain_redirects.rb +2 -2
- data/lib/internetdata/models/domain_web.rb +2 -2
- data/lib/internetdata/models/domain_web_links.rb +1 -1
- data/lib/internetdata/models/download.rb +1 -1
- data/lib/internetdata/models/download_list.rb +1 -1
- data/lib/internetdata/models/entitlement.rb +1 -1
- data/lib/internetdata/models/entitlement_apikey.rb +1 -1
- data/lib/internetdata/models/entitlement_plan.rb +3 -3
- data/lib/internetdata/models/entitlement_usage.rb +4 -4
- data/lib/internetdata/models/error_envelope.rb +1 -1
- data/lib/internetdata/models/hosted_domains.rb +2 -2
- data/lib/internetdata/models/location.rb +11 -11
- data/lib/internetdata/models/lookup_response.rb +33 -67
- data/lib/internetdata/models/oauth_metadata.rb +1 -1
- data/lib/internetdata/models/proxy_detail.rb +2 -2
- data/lib/internetdata/models/pubproxy_detail.rb +1 -1
- data/lib/internetdata/models/rwhois.rb +2 -2
- data/lib/internetdata/models/satellite_detail.rb +1 -1
- data/lib/internetdata/models/smtp_detail.rb +1 -1
- data/lib/internetdata/models/ssh_detail.rb +1 -1
- data/lib/internetdata/models/standing.rb +1 -1
- data/lib/internetdata/models/token_response.rb +1 -1
- data/lib/internetdata/models/user_agent_verdict.rb +1 -1
- data/lib/internetdata/models/web_detail.rb +1 -1
- data/lib/internetdata/models/whois.rb +2 -2
- data/lib/internetdata/result.rb +70 -58
- data/lib/internetdata/transport.rb +6 -6
- data/lib/internetdata/version.rb +1 -1
- metadata +1 -1
data/lib/internetdata/result.rb
CHANGED
|
@@ -64,6 +64,8 @@ module InternetData
|
|
|
64
64
|
# Details and objects are the wire hashes with their original string keys, so
|
|
65
65
|
# `result.vpn['provider']`, and the same holds inside them: a member a plan
|
|
66
66
|
# leaves out of an object, such as `location['city']`, is absent, never empty.
|
|
67
|
+
# An answer without `company` or `abuse` (the basics carry neither) reads `nil`
|
|
68
|
+
# from both, and `included?` says false.
|
|
67
69
|
class Result
|
|
68
70
|
include Answer
|
|
69
71
|
|
|
@@ -99,7 +101,7 @@ module InternetData
|
|
|
99
101
|
end
|
|
100
102
|
|
|
101
103
|
# Whether the address is a VPN service's server (VPN IP), or nil when your
|
|
102
|
-
# plan does not include it. Paid plans and
|
|
104
|
+
# plan does not include it. Paid plans and a free key's full answers.
|
|
103
105
|
def is_vpn
|
|
104
106
|
@raw['is_vpn']
|
|
105
107
|
end
|
|
@@ -131,8 +133,8 @@ module InternetData
|
|
|
131
133
|
end
|
|
132
134
|
|
|
133
135
|
# Whether the address is a residential proxy exit in Residential Proxy IP's
|
|
134
|
-
# 90-day window, or nil when your plan does not include it. Paid plans and
|
|
135
|
-
#
|
|
136
|
+
# 90-day window, or nil when your plan does not include it. Paid plans and a
|
|
137
|
+
# free key's full answers.
|
|
136
138
|
def is_resproxy
|
|
137
139
|
@raw['is_resproxy']
|
|
138
140
|
end
|
|
@@ -143,7 +145,7 @@ module InternetData
|
|
|
143
145
|
end
|
|
144
146
|
|
|
145
147
|
# Whether the address is in Datacenter Proxy IP's 90-day window, or nil when
|
|
146
|
-
# your plan does not include it. Paid plans and
|
|
148
|
+
# your plan does not include it. Paid plans and a free key's full answers.
|
|
147
149
|
def is_dcproxy
|
|
148
150
|
@raw['is_dcproxy']
|
|
149
151
|
end
|
|
@@ -153,8 +155,8 @@ module InternetData
|
|
|
153
155
|
@raw['is_dcproxy'] == true
|
|
154
156
|
end
|
|
155
157
|
|
|
156
|
-
# Whether the address is in Mobile Proxy IP's 90-day window, or nil when
|
|
157
|
-
# plan does not include it. Paid plans and
|
|
158
|
+
# Whether the address is in Mobile Proxy IP's 90-day window, or nil when
|
|
159
|
+
# your plan does not include it. Paid plans and a free key's full answers.
|
|
158
160
|
def is_mobproxy
|
|
159
161
|
@raw['is_mobproxy']
|
|
160
162
|
end
|
|
@@ -166,7 +168,7 @@ module InternetData
|
|
|
166
168
|
|
|
167
169
|
# Whether a public proxy listens on the address or its traffic left from it
|
|
168
170
|
# (Public Proxy IP), or nil when your plan does not include it. Paid plans
|
|
169
|
-
# and
|
|
171
|
+
# and a free key's full answers.
|
|
170
172
|
def is_pubproxy
|
|
171
173
|
@raw['is_pubproxy']
|
|
172
174
|
end
|
|
@@ -177,7 +179,8 @@ module InternetData
|
|
|
177
179
|
end
|
|
178
180
|
|
|
179
181
|
# Whether the address is on a hosting or cloud network (Hosting IP), or nil
|
|
180
|
-
# when your plan does not include it. Paid plans and
|
|
182
|
+
# when your plan does not include it. Paid plans and a free key's full
|
|
183
|
+
# answers.
|
|
181
184
|
def is_hosting
|
|
182
185
|
@raw['is_hosting']
|
|
183
186
|
end
|
|
@@ -188,7 +191,7 @@ module InternetData
|
|
|
188
191
|
end
|
|
189
192
|
|
|
190
193
|
# Whether the address is on a content delivery network (CDN IP), or nil when
|
|
191
|
-
# your plan does not include it. Paid plans and
|
|
194
|
+
# your plan does not include it. Paid plans and a free key's full answers.
|
|
192
195
|
def is_cdn
|
|
193
196
|
@raw['is_cdn']
|
|
194
197
|
end
|
|
@@ -198,10 +201,10 @@ module InternetData
|
|
|
198
201
|
@raw['is_cdn'] == true
|
|
199
202
|
end
|
|
200
203
|
|
|
201
|
-
# Whether an automated client uses the address (Bot IP): a search engine's
|
|
202
|
-
# an AI company's crawler, an uptime monitor, an internet scanner or a
|
|
204
|
+
# Whether an automated client uses the address (Bot IP): a search engine's
|
|
205
|
+
# or an AI company's crawler, an uptime monitor, an internet scanner or a
|
|
203
206
|
# webhook sender, or nil when your plan does not include it. Paid plans and
|
|
204
|
-
#
|
|
207
|
+
# a free key's full answers; `bot` says whose.
|
|
205
208
|
def is_bot
|
|
206
209
|
@raw['is_bot']
|
|
207
210
|
end
|
|
@@ -222,8 +225,9 @@ module InternetData
|
|
|
222
225
|
@raw['is_anycast'] == true
|
|
223
226
|
end
|
|
224
227
|
|
|
225
|
-
# Whether the address is in a mobile carrier's address space (Carrier IP),
|
|
226
|
-
# nil when your plan does not include it. Paid plans and
|
|
228
|
+
# Whether the address is in a mobile carrier's address space (Carrier IP),
|
|
229
|
+
# or nil when your plan does not include it. Paid plans and a free key's
|
|
230
|
+
# full answers.
|
|
227
231
|
def is_carrier
|
|
228
232
|
@raw['is_carrier']
|
|
229
233
|
end
|
|
@@ -234,7 +238,8 @@ module InternetData
|
|
|
234
238
|
end
|
|
235
239
|
|
|
236
240
|
# Whether the address is in a satellite operator's address space (Satellite
|
|
237
|
-
# IP), or nil when your plan does not include it. Paid plans and
|
|
241
|
+
# IP), or nil when your plan does not include it. Paid plans and a free
|
|
242
|
+
# key's full answers.
|
|
238
243
|
def is_satellite
|
|
239
244
|
@raw['is_satellite']
|
|
240
245
|
end
|
|
@@ -245,7 +250,7 @@ module InternetData
|
|
|
245
250
|
end
|
|
246
251
|
|
|
247
252
|
# Whether an SSH server answered on the address (SSH IP), or nil when your
|
|
248
|
-
# plan does not include it. Paid plans and
|
|
253
|
+
# plan does not include it. Paid plans and a free key's full answers.
|
|
249
254
|
def is_ssh
|
|
250
255
|
@raw['is_ssh']
|
|
251
256
|
end
|
|
@@ -256,7 +261,7 @@ module InternetData
|
|
|
256
261
|
end
|
|
257
262
|
|
|
258
263
|
# Whether a mail server answered on the address (SMTP IP), or nil when your
|
|
259
|
-
# plan does not include it. Paid plans and
|
|
264
|
+
# plan does not include it. Paid plans and a free key's full answers.
|
|
260
265
|
def is_smtp
|
|
261
266
|
@raw['is_smtp']
|
|
262
267
|
end
|
|
@@ -266,8 +271,9 @@ module InternetData
|
|
|
266
271
|
@raw['is_smtp'] == true
|
|
267
272
|
end
|
|
268
273
|
|
|
269
|
-
# Whether a web server answered on the address on port 80 or 443 (Web IP),
|
|
270
|
-
# nil when your plan does not include it. Paid plans and
|
|
274
|
+
# Whether a web server answered on the address on port 80 or 443 (Web IP),
|
|
275
|
+
# or nil when your plan does not include it. Paid plans and a free key's
|
|
276
|
+
# full answers.
|
|
271
277
|
def is_web
|
|
272
278
|
@raw['is_web']
|
|
273
279
|
end
|
|
@@ -278,7 +284,8 @@ module InternetData
|
|
|
278
284
|
end
|
|
279
285
|
|
|
280
286
|
# Whether an open DNS resolver answered on the address (DNS Resolver IP), or
|
|
281
|
-
# nil when your plan does not include it. Paid plans and
|
|
287
|
+
# nil when your plan does not include it. Paid plans and a free key's full
|
|
288
|
+
# answers.
|
|
282
289
|
def is_dns_resolver
|
|
283
290
|
@raw['is_dns_resolver']
|
|
284
291
|
end
|
|
@@ -290,7 +297,7 @@ module InternetData
|
|
|
290
297
|
|
|
291
298
|
# Whether a BitTorrent client was seen on the address in the last 90 days
|
|
292
299
|
# (BitTorrent IP), or nil when your plan does not include it. Paid plans and
|
|
293
|
-
#
|
|
300
|
+
# a free key's full answers.
|
|
294
301
|
def is_bittorrent
|
|
295
302
|
@raw['is_bittorrent']
|
|
296
303
|
end
|
|
@@ -300,7 +307,7 @@ module InternetData
|
|
|
300
307
|
@raw['is_bittorrent'] == true
|
|
301
308
|
end
|
|
302
309
|
|
|
303
|
-
# VPN IP's row for the address. Paid plans and
|
|
310
|
+
# VPN IP's row for the address. Paid plans and a free key's full answers.
|
|
304
311
|
def vpn
|
|
305
312
|
@raw['vpn']
|
|
306
313
|
end
|
|
@@ -315,32 +322,32 @@ module InternetData
|
|
|
315
322
|
@raw['relay']
|
|
316
323
|
end
|
|
317
324
|
|
|
318
|
-
# Detail for `is_resproxy`. Paid plans and
|
|
325
|
+
# Detail for `is_resproxy`. Paid plans and a free key's full answers.
|
|
319
326
|
def resproxy
|
|
320
327
|
@raw['resproxy']
|
|
321
328
|
end
|
|
322
329
|
|
|
323
|
-
# Detail for `is_dcproxy`. Paid plans and
|
|
330
|
+
# Detail for `is_dcproxy`. Paid plans and a free key's full answers.
|
|
324
331
|
def dcproxy
|
|
325
332
|
@raw['dcproxy']
|
|
326
333
|
end
|
|
327
334
|
|
|
328
|
-
# Detail for `is_mobproxy`. Paid plans and
|
|
335
|
+
# Detail for `is_mobproxy`. Paid plans and a free key's full answers.
|
|
329
336
|
def mobproxy
|
|
330
337
|
@raw['mobproxy']
|
|
331
338
|
end
|
|
332
339
|
|
|
333
|
-
# Detail for `is_pubproxy`. Paid plans and
|
|
340
|
+
# Detail for `is_pubproxy`. Paid plans and a free key's full answers.
|
|
334
341
|
def pubproxy
|
|
335
342
|
@raw['pubproxy']
|
|
336
343
|
end
|
|
337
344
|
|
|
338
|
-
# Detail for `is_hosting`. Paid plans and
|
|
345
|
+
# Detail for `is_hosting`. Paid plans and a free key's full answers.
|
|
339
346
|
def hosting
|
|
340
347
|
@raw['hosting']
|
|
341
348
|
end
|
|
342
349
|
|
|
343
|
-
# Detail for `is_cdn`. Paid plans and
|
|
350
|
+
# Detail for `is_cdn`. Paid plans and a free key's full answers.
|
|
344
351
|
def cdn
|
|
345
352
|
@raw['cdn']
|
|
346
353
|
end
|
|
@@ -348,61 +355,65 @@ module InternetData
|
|
|
348
355
|
# Detail for `is_bot`: whose bot uses the address (`provider`,
|
|
349
356
|
# `provider_name`), its bots as their user agents name them (`agents`), what
|
|
350
357
|
# they do (`categories`) and whether the operator vouches for the address
|
|
351
|
-
# (`verified`, `identity`, `verified_by`). Paid plans and
|
|
358
|
+
# (`verified`, `identity`, `verified_by`). Paid plans and a free key's full
|
|
359
|
+
# answers.
|
|
352
360
|
def bot
|
|
353
361
|
@raw['bot']
|
|
354
362
|
end
|
|
355
363
|
|
|
356
|
-
# Detail for `is_carrier`. Paid plans and
|
|
364
|
+
# Detail for `is_carrier`. Paid plans and a free key's full answers.
|
|
357
365
|
def carrier
|
|
358
366
|
@raw['carrier']
|
|
359
367
|
end
|
|
360
368
|
|
|
361
|
-
# Detail for `is_satellite`. Paid plans and
|
|
369
|
+
# Detail for `is_satellite`. Paid plans and a free key's full answers.
|
|
362
370
|
def satellite
|
|
363
371
|
@raw['satellite']
|
|
364
372
|
end
|
|
365
373
|
|
|
366
|
-
# Detail for `is_ssh`. Paid plans and
|
|
374
|
+
# Detail for `is_ssh`. Paid plans and a free key's full answers.
|
|
367
375
|
def ssh
|
|
368
376
|
@raw['ssh']
|
|
369
377
|
end
|
|
370
378
|
|
|
371
|
-
# Detail for `is_smtp`. Paid plans and
|
|
379
|
+
# Detail for `is_smtp`. Paid plans and a free key's full answers.
|
|
372
380
|
def smtp
|
|
373
381
|
@raw['smtp']
|
|
374
382
|
end
|
|
375
383
|
|
|
376
|
-
# Detail for `is_web`: a row per port that answered, lowest first. Paid
|
|
377
|
-
# and
|
|
384
|
+
# Detail for `is_web`: a row per port that answered, lowest first. Paid
|
|
385
|
+
# plans and a free key's full answers.
|
|
378
386
|
def web
|
|
379
387
|
@raw['web']
|
|
380
388
|
end
|
|
381
389
|
|
|
382
|
-
# Detail for `is_dns_resolver`. Paid plans and
|
|
390
|
+
# Detail for `is_dns_resolver`. Paid plans and a free key's full answers.
|
|
383
391
|
def dns_resolver
|
|
384
392
|
@raw['dns_resolver']
|
|
385
393
|
end
|
|
386
394
|
|
|
387
|
-
# Detail for `is_bittorrent`. Paid plans and
|
|
395
|
+
# Detail for `is_bittorrent`. Paid plans and a free key's full answers.
|
|
388
396
|
def bittorrent
|
|
389
397
|
@raw['bittorrent']
|
|
390
398
|
end
|
|
391
399
|
|
|
392
|
-
# Where the address is, as a wire hash (`result.location['country']`).
|
|
393
|
-
#
|
|
400
|
+
# Where the address is, as a wire hash (`result.location['country']`). Every
|
|
401
|
+
# answer; the city and finer members on paid plans and a free key's full
|
|
402
|
+
# answers.
|
|
394
403
|
def location
|
|
395
404
|
@raw['location']
|
|
396
405
|
end
|
|
397
406
|
|
|
398
407
|
# The network announcing the address, from IP ASN, as a wire hash
|
|
399
408
|
# (`result.asn['name']`), with asn 0 where none does. Every answer; the
|
|
400
|
-
# network's type on paid plans and
|
|
409
|
+
# network's type on paid plans and a free key's full answers.
|
|
401
410
|
def asn
|
|
402
411
|
@raw['asn']
|
|
403
412
|
end
|
|
404
413
|
|
|
405
|
-
# Who uses the address, from IP Company
|
|
414
|
+
# Who uses the address, from IP Company, as a wire hash, or nil when your
|
|
415
|
+
# plan does not include it. Paid plans and a free key's full answers: the
|
|
416
|
+
# basics carry no company.
|
|
406
417
|
def company
|
|
407
418
|
@raw['company']
|
|
408
419
|
end
|
|
@@ -413,47 +424,48 @@ module InternetData
|
|
|
413
424
|
@raw['hostname']
|
|
414
425
|
end
|
|
415
426
|
|
|
416
|
-
# Where to report abuse, from IP Abuse Contact
|
|
417
|
-
#
|
|
427
|
+
# Where to report abuse, from IP Abuse Contact, as a wire hash, or nil when
|
|
428
|
+
# your plan does not include it. Paid plans and a free key's full answers:
|
|
429
|
+
# the basics carry no abuse contact.
|
|
418
430
|
def abuse
|
|
419
431
|
@raw['abuse']
|
|
420
432
|
end
|
|
421
433
|
|
|
422
|
-
# IP Whois's most specific record covering the address. Paid plans and
|
|
423
|
-
#
|
|
434
|
+
# IP Whois's most specific record covering the address. Paid plans and a
|
|
435
|
+
# free key's full answers.
|
|
424
436
|
def whois
|
|
425
437
|
@raw['whois']
|
|
426
438
|
end
|
|
427
439
|
|
|
428
|
-
# IP RWHOIS's most specific network covering the address. Paid plans and
|
|
429
|
-
#
|
|
440
|
+
# IP RWHOIS's most specific network covering the address. Paid plans and a
|
|
441
|
+
# free key's full answers.
|
|
430
442
|
def rwhois
|
|
431
443
|
@raw['rwhois']
|
|
432
444
|
end
|
|
433
445
|
|
|
434
446
|
# How many domains IP Hosted Domains finds on the address, and the 10 most
|
|
435
447
|
# popular, as `{'total' => n, 'domains' => [...]}`: `domains` is `[]` when
|
|
436
|
-
# none does. Paid plans and
|
|
448
|
+
# none does. Paid plans and a free key's full answers.
|
|
437
449
|
def hosted_domains
|
|
438
450
|
@raw['hosted_domains']
|
|
439
451
|
end
|
|
440
452
|
|
|
441
453
|
# What the API made of the user agent the lookup sent, as a wire hash
|
|
442
454
|
# (`result.user_agent['verdict']`): agent, the agent it names (`Googlebot`,
|
|
443
|
-
# `Chrome`, `Unknown` where it names none); kind, what kind of client it
|
|
444
|
-
# it is (`browser`, `bot`, `ai-bot` and the rest); and verdict,
|
|
445
|
-
# where the agent's operator vouches for this address, `spoofed`
|
|
446
|
-
# not, `unverifiable` for a bot nothing published can confirm,
|
|
447
|
-
# for a browser, an app or a script. Present only when the
|
|
448
|
-
# agent and the answer has every field (a paid plan, or
|
|
449
|
-
# bogon, which is answered locally.
|
|
455
|
+
# `Chrome`, `Unknown` where it names none); kind, what kind of client it
|
|
456
|
+
# says it is (`browser`, `bot`, `ai-bot` and the rest); and verdict,
|
|
457
|
+
# `verified` where the agent's operator vouches for this address, `spoofed`
|
|
458
|
+
# where it does not, `unverifiable` for a bot nothing published can confirm,
|
|
459
|
+
# or `not_bot` for a browser, an app or a script. Present only when the
|
|
460
|
+
# lookup sent an agent and the answer has every field (a paid plan, or a
|
|
461
|
+
# free key's full answers); nil on a bogon, which is answered locally.
|
|
450
462
|
def user_agent
|
|
451
463
|
@raw['user_agent']
|
|
452
464
|
end
|
|
453
465
|
|
|
454
466
|
# On answers to a key on the free plan only: false while its organization's
|
|
455
|
-
#
|
|
456
|
-
# any other answer.
|
|
467
|
+
# lookups of the UTC day answer every field, true once those are used and
|
|
468
|
+
# the answer has the basics; nil on any other answer.
|
|
457
469
|
def trial_expired
|
|
458
470
|
@raw['trial_expired']
|
|
459
471
|
end
|
|
@@ -465,7 +477,7 @@ module InternetData
|
|
|
465
477
|
|
|
466
478
|
# On answers to a key on a paid plan only: false while the answer has every
|
|
467
479
|
# field, true once its organization's overage cap is reached and the answer
|
|
468
|
-
# has
|
|
480
|
+
# has the basics, which is not billed; nil on any other answer.
|
|
469
481
|
def cap_reached
|
|
470
482
|
@raw['cap_reached']
|
|
471
483
|
end
|
|
@@ -378,8 +378,7 @@ module InternetData
|
|
|
378
378
|
# is `{}` under a false flag. test/database_test.rb holds this to
|
|
379
379
|
# spec/openapi.yaml.
|
|
380
380
|
REQUIRED = {
|
|
381
|
-
'LookupResponse' => %i[ip is_bogon is_tor is_relay is_anycast tor relay location asn
|
|
382
|
-
abuse],
|
|
381
|
+
'LookupResponse' => %i[ip is_bogon is_tor is_relay is_anycast tor relay location asn hostname],
|
|
383
382
|
'ClassDetail' => [],
|
|
384
383
|
'ProxyDetail' => [],
|
|
385
384
|
'PubproxyDetail' => [],
|
|
@@ -435,12 +434,13 @@ module InternetData
|
|
|
435
434
|
'Download' => %i[dataset_id format outcome sample open bytes http_status apikey_id client_ip user_agent created],
|
|
436
435
|
}.freeze
|
|
437
436
|
|
|
438
|
-
# The members the spec stopped requiring in 2026.11.26, because
|
|
439
|
-
# them out: absent reads as absent, as any member a plan leaves out does. A
|
|
440
|
-
# is still refused, as it was while they were required
|
|
437
|
+
# The members the spec stopped requiring in 2026.11.26 and 2026.11.28, because the free
|
|
438
|
+
# answer leaves them out: absent reads as absent, as any member a plan leaves out does. A
|
|
439
|
+
# served null is still refused, as it was while they were required, and a present `company`
|
|
440
|
+
# or `abuse` still holds its own required members.
|
|
441
441
|
NEVER_NULL = {
|
|
442
442
|
'LookupResponse' => %i[is_bot is_carrier is_satellite is_ssh is_smtp is_web is_dns_resolver
|
|
443
|
-
is_bittorrent],
|
|
443
|
+
is_bittorrent company abuse],
|
|
444
444
|
'Asn' => %i[type],
|
|
445
445
|
}.freeze
|
|
446
446
|
|
data/lib/internetdata/version.rb
CHANGED