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: 0a2cf510b7ddcab2839fb65cb24544e4a8a09493
4
- data.tar.gz: d113829de4191c7e1f568519dd1cd3e60dd28eef
3
+ metadata.gz: b9440307fd3da2ce5561eaa479425d3295776a66
4
+ data.tar.gz: 477d7501345f21bf9c7f3c7a7d1e9faf592991d6
5
5
  SHA512:
6
- metadata.gz: 42f3216df69b0bd061343aba038cab7673dd090dd1a3307384fd2b6a6f3fcea06ac4ba6dfa183030e54d96072dc3759b57a4faee21841e393370d6660bca58c2
7
- data.tar.gz: b37601fa67fce773724fbb688c8b7c3acb603cf70a4a3079ed82977b91b41e1ec531a484409fe366142b6efd05d96dbe707dbc32504aedfd19648f41bdbfd7ae
6
+ metadata.gz: cde7bac539db121e998b988ef27a32ac9774285ba5dcbf8c245a9fea7bd3fc5db30f42af32e335ffba2a047f88cfd9b2ae584d336f1e81a7cd42380eea897919
7
+ data.tar.gz: 72867604ac534149ed11ad8b14b6b803d4b4bfd4b40394ff80c369fd96ee934b8757f5edac145cf0004c1e2d2bd38e59ea2302caf5b387002f5bf07ef7a23eb4
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "ip2proxy_ruby"
5
- s.version = "1.0.1"
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/database_config.rb",
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/database_config'
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.1'
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 = DbConfig.setup_database(self.db_index)
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
@@ -1,4 +1,4 @@
1
- class DbConfig
1
+ class I2pDbConfig
2
2
  COLUMNS = {
3
3
  :COUNTRY => [0, 2, 3, 3, 3],
4
4
  :REGION => [0, 0, 0, 4, 4],
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.1
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: 2016-12-21 00:00:00.000000000 Z
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/database_config.rb
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