Skip to content

Commit 3b1f8ce

Browse files
committed
Updated file path error message.
1 parent 4b20297 commit 3b1f8ce

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ For more details, please visit:
1111
You can check the **example.rb** file to learn more about usage.
1212

1313
## BIN Database
14+
An outdated BIN database was provided in the library for your testing. You are recommended to visit the [links](#dependencies) to download the latest BIN database and save it in the ```rb``` folder.
15+
1416
Below is the description of the functions available in the **BIN Database** lookup.
1517

1618
|Method Name|Description|
@@ -88,8 +90,6 @@ This library requires IP2Proxy BIN data file to function. You may download the B
8890
* IP2Proxy LITE BIN Data (Free): https://lite.ip2location.com
8991
* IP2Proxy Commercial BIN Data (Comprehensive): https://www.ip2location.com/proxy-database
9092

91-
An outdated BIN database was provided in the library for your testing. You are recommended to visit the above links to download the latest BIN database.
92-
9393
You can also sign up for [IP2Proxy Web Service](https://www.ip2location.com/web-service/ip2proxy) to lookup by IP2Proxy API.
9494

9595
# Support

ip2proxy_ruby.gemspec

Lines changed: 1 addition & 1 deletion
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 = "3.2.0"
5+
s.version = "3.2.1"
66
s.authors = ["ip2location"]
77
s.email = ["[email protected]"]
88

lib/ip2proxy_ruby.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class Ip2proxy
1212
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, :last_err_msg
1313

14-
VERSION = '3.2.0'
14+
VERSION = '3.2.1'
1515
FIELD_NOT_SUPPORTED = 'NOT SUPPORTED'
1616
INVALID_IP_ADDRESS = 'INVALID IP ADDRESS'
1717
INVALID_BIN_DATABASE = 'Incorrect IP2Proxy BIN file format. Please make sure that you are using the latest IP2Proxy BIN file.'
@@ -26,7 +26,7 @@ def open(url)
2626
self.file = File.open(File.expand_path url, 'rb')
2727
rescue
2828
self.last_err_msg = 'Ip2proxy.new.open() error in opening ' + url +'.'
29-
abort('Ip2proxy.new.open() error in opening ' + url +'.')
29+
abort('Ip2proxy.new.open() error in opening ' + url + '. No such file in the /your_ip2proxy_ruby_library_path/rb/ folder.')
3030
else
3131
end
3232
i2p = Ip2proxyConfig.read(file)

spec/ip2proxy_ruby_database_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
it "work correctly with get_module_version" do
107107
i2p = Ip2proxy.new.open(File.dirname(__FILE__) + "/assets/PX11.SAMPLE.BIN")
108108
record = i2p.get_module_version()
109-
expect(record).to eq '3.2.0'
109+
expect(record).to eq '3.2.1'
110110
end
111111

112112
it "work correctly with get_package_version" do

0 commit comments

Comments
 (0)