lib/ip2proxy_ruby.rb in ip2proxy_ruby-3.2.0 vs lib/ip2proxy_ruby.rb in ip2proxy_ruby-3.2.1

- old
+ new

@@ -9,11 +9,11 @@ require_relative 'ip2proxy_ruby/ip2proxy_record' class Ip2proxy 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 - VERSION = '3.2.0' + VERSION = '3.2.1' FIELD_NOT_SUPPORTED = 'NOT SUPPORTED' INVALID_IP_ADDRESS = 'INVALID IP ADDRESS' INVALID_BIN_DATABASE = 'Incorrect IP2Proxy BIN file format. Please make sure that you are using the latest IP2Proxy BIN file.' def open(url) @@ -24,10 +24,10 @@ begin self.file = File.open(File.expand_path url, 'rb') rescue self.last_err_msg = 'Ip2proxy.new.open() error in opening ' + url +'.' - abort('Ip2proxy.new.open() error in opening ' + url +'.') + abort('Ip2proxy.new.open() error in opening ' + url + '. No such file in the /your_ip2proxy_ruby_library_path/rb/ folder.') else end i2p = Ip2proxyConfig.read(file) if i2p.productcode == 2 else \ No newline at end of file