iptoasn-data 1.2025.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.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/iptoasn/data.rb +15 -0
  3. metadata +57 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1d887e4d83395ec544fa5e776fe2e798b01958f802326e8e797e0d3591e1e0c8
4
+ data.tar.gz: c58881dad12499611d5d69b7f5323ff6a72941462b821291399106668e770cbf
5
+ SHA512:
6
+ metadata.gz: 8f9b8653bc5aa576c7eee490c54bbf9efb778b8129dd50564fdfed2cbe618103f54d4b90ff83daf61564380c7024c4f117c56078fd06cd488dbd769856ea2457
7
+ data.tar.gz: c4707451c1a9b9ebd35f1898e4e48bcc95e98658d754e290ed060dc924bcd8b46b2aa60c58ad19285536cd99a7ec0f8a6827e8abb07fd1d3a35d6380332137a3
@@ -0,0 +1,15 @@
1
+ module IpToAsn
2
+ class Data
3
+ def self.ip2asn
4
+ File.join(File.dirname(File.expand_path(__FILE__)), 'data/ip2asn.dat')
5
+ end
6
+
7
+ def self.countries
8
+ File.join(File.dirname(File.expand_path(__FILE__)), 'data/countries.dat')
9
+ end
10
+
11
+ def self.asnames
12
+ File.join(File.dirname(File.expand_path(__FILE__)), 'data/asnames.dat')
13
+ end
14
+ end
15
+ end
metadata ADDED
@@ -0,0 +1,57 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: iptoasn-data
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2025.1
5
+ platform: ruby
6
+ authors:
7
+ - OMAR
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2025-02-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: iptoasn
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.1.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.1.0
27
+ description: This gem wraps the IP to ASN dataset.
28
+ email:
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - lib/iptoasn/data.rb
34
+ homepage: https://github.com/ancat/iptoasn-data
35
+ licenses:
36
+ - MIT
37
+ metadata: {}
38
+ post_install_message:
39
+ rdoc_options: []
40
+ require_paths:
41
+ - lib
42
+ required_ruby_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '3.0'
47
+ required_rubygems_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ requirements: []
53
+ rubygems_version: 3.5.3
54
+ signing_key:
55
+ specification_version: 4
56
+ summary: The IP to ASN dataset wrapped in a Ruby gem
57
+ test_files: []