ip2proxy_ruby 1.0.1 → 1.0.2
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9440307fd3da2ce5561eaa479425d3295776a66
|
4
|
+
data.tar.gz: 477d7501345f21bf9c7f3c7a7d1e9faf592991d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cde7bac539db121e998b988ef27a32ac9774285ba5dcbf8c245a9fea7bd3fc5db30f42af32e335ffba2a047f88cfd9b2ae584d336f1e81a7cd42380eea897919
|
7
|
+
data.tar.gz: 72867604ac534149ed11ad8b14b6b803d4b4bfd4b40394ff80c369fd96ee934b8757f5edac145cf0004c1e2d2bd38e59ea2302caf5b387002f5bf07ef7a23eb4
|
data/ip2proxy_ruby.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "ip2proxy_ruby"
|
5
|
-
s.version = "1.0.
|
5
|
+
s.version = "1.0.2"
|
6
6
|
s.authors = ["ip2location"]
|
7
7
|
s.email = ["support@ip2location.com"]
|
8
8
|
|
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
|
|
27
27
|
"ip2proxy_ruby.gemspec",
|
28
28
|
"example.rb",
|
29
29
|
"lib/ip2proxy_ruby.rb",
|
30
|
-
"lib/ip2proxy_ruby/
|
30
|
+
"lib/ip2proxy_ruby/i2p_database_config.rb",
|
31
31
|
"lib/ip2proxy_ruby/i2p_ip_data.rb",
|
32
32
|
"lib/ip2proxy_ruby/i2p_string_data.rb",
|
33
33
|
"lib/ip2proxy_ruby/ip2proxy_config.rb",
|
data/lib/ip2proxy_ruby.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'bindata'
|
2
2
|
require 'ipaddr'
|
3
3
|
require_relative 'ip2proxy_ruby/ip2proxy_config'
|
4
|
-
require_relative 'ip2proxy_ruby/
|
4
|
+
require_relative 'ip2proxy_ruby/i2p_database_config'
|
5
5
|
require_relative 'ip2proxy_ruby/i2p_string_data'
|
6
6
|
require_relative 'ip2proxy_ruby/i2p_ip_data'
|
7
7
|
require_relative 'ip2proxy_ruby/ip2proxy_record'
|
@@ -9,7 +9,7 @@ require_relative 'ip2proxy_ruby/ip2proxy_record'
|
|
9
9
|
class Ip2proxy
|
10
10
|
attr_accessor :record_class4, :record_class6, :v4, :file, :db_index, :count, :base_addr, :ipno, :record, :database, :columns, :ip_version, :ipv4databasecount, :ipv4databaseaddr, :ipv4indexbaseaddr, :ipv6databasecount, :ipv6databaseaddr, :ipv6indexbaseaddr, :databaseyear, :databasemonth, :databaseday
|
11
11
|
|
12
|
-
VERSION = '1.0.
|
12
|
+
VERSION = '1.0.2'
|
13
13
|
FIELD_NOT_SUPPORTED = 'NOT SUPPORTED'
|
14
14
|
INVALID_IP_ADDRESS = 'INVALID IP ADDRESS'
|
15
15
|
|
@@ -21,7 +21,7 @@ class Ip2proxy
|
|
21
21
|
self.databaseyear = 2000 + i2p.databaseyear
|
22
22
|
self.databasemonth = i2p.databasemonth
|
23
23
|
self.databaseday = i2p.databaseday
|
24
|
-
self.database =
|
24
|
+
self.database = I2pDbConfig.setup_database(self.db_index)
|
25
25
|
self.ipv4databasecount = i2p.ipv4databasecount
|
26
26
|
self.ipv4databaseaddr = i2p.ipv4databaseaddr
|
27
27
|
self.ipv6databasecount = i2p.ipv6databasecount
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ip2proxy_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ip2location
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bindata
|
@@ -113,7 +113,7 @@ files:
|
|
113
113
|
- example.rb
|
114
114
|
- ip2proxy_ruby.gemspec
|
115
115
|
- lib/ip2proxy_ruby.rb
|
116
|
-
- lib/ip2proxy_ruby/
|
116
|
+
- lib/ip2proxy_ruby/i2p_database_config.rb
|
117
117
|
- lib/ip2proxy_ruby/i2p_ip_data.rb
|
118
118
|
- lib/ip2proxy_ruby/i2p_string_data.rb
|
119
119
|
- lib/ip2proxy_ruby/ip2proxy_config.rb
|