Skip to content

Commit d9f33b5

Browse files
committed
Fixed compatible issue.
1 parent 080aed8 commit d9f33b5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

ip2proxy_ruby.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Gem::Specification.new do |s|
44
s.name = "ip2proxy_ruby"
5-
s.version = "1.0.1"
5+
s.version = "1.0.2"
66
s.authors = ["ip2location"]
77
s.email = ["[email protected]"]
88

@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
2727
"ip2proxy_ruby.gemspec",
2828
"example.rb",
2929
"lib/ip2proxy_ruby.rb",
30-
"lib/ip2proxy_ruby/database_config.rb",
30+
"lib/ip2proxy_ruby/i2p_database_config.rb",
3131
"lib/ip2proxy_ruby/i2p_ip_data.rb",
3232
"lib/ip2proxy_ruby/i2p_string_data.rb",
3333
"lib/ip2proxy_ruby/ip2proxy_config.rb",

lib/ip2proxy_ruby.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
require 'bindata'
22
require 'ipaddr'
33
require_relative 'ip2proxy_ruby/ip2proxy_config'
4-
require_relative 'ip2proxy_ruby/database_config'
4+
require_relative 'ip2proxy_ruby/i2p_database_config'
55
require_relative 'ip2proxy_ruby/i2p_string_data'
66
require_relative 'ip2proxy_ruby/i2p_ip_data'
77
require_relative 'ip2proxy_ruby/ip2proxy_record'
88

99
class Ip2proxy
1010
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
1111

12-
VERSION = '1.0.1'
12+
VERSION = '1.0.2'
1313
FIELD_NOT_SUPPORTED = 'NOT SUPPORTED'
1414
INVALID_IP_ADDRESS = 'INVALID IP ADDRESS'
1515

@@ -21,7 +21,7 @@ def open(url)
2121
self.databaseyear = 2000 + i2p.databaseyear
2222
self.databasemonth = i2p.databasemonth
2323
self.databaseday = i2p.databaseday
24-
self.database = DbConfig.setup_database(self.db_index)
24+
self.database = I2pDbConfig.setup_database(self.db_index)
2525
self.ipv4databasecount = i2p.ipv4databasecount
2626
self.ipv4databaseaddr = i2p.ipv4databaseaddr
2727
self.ipv6databasecount = i2p.ipv6databasecount
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class DbConfig
1+
class I2pDbConfig
22
COLUMNS = {
33
:COUNTRY => [0, 2, 3, 3, 3],
44
:REGION => [0, 0, 0, 4, 4],

0 commit comments

Comments
 (0)