Skip to content

Commit f1e74bb

Browse files
Fixed file load error
1 parent cbb0d37 commit f1e74bb

File tree

6 files changed

+7
-39
lines changed

6 files changed

+7
-39
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ source "http://rubygems.org"
22
# Add dependencies required to use your gem here.
33
# Example:
44
# gem "activesupport", ">= 2.3.5"
5-
gem 'bindata'
5+
gem 'bindata', "~> 2.4.15"
66
# Add dependencies to develop your gem here.
77
# Include everything needed to run rake, tests, features, etc.
88

Gemfile.lock

Lines changed: 0 additions & 25 deletions
This file was deleted.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.7.2
1+
8.7.3

example.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@
3434
puts 'AS: ' + record['as']
3535
i2l.close()
3636

37-
# Web Service
38-
ws = Ip2locationWebService.new('demo', 'WS25', true)
39-
record = ws.lookup('8.8.8.8', 'continent,country,region,city,geotargeting,country_groupings,time_zone_info', 'en')
40-
puts record
41-
puts ws.get_credit()
42-
4337
# IP Tools
4438
iptool = Ip2locationIpTools.new()
4539
puts iptool.is_ipv4('8.8.8.8')

ip2location_ruby.gemspec

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |s|
22
s.name = "ip2location_ruby"
3-
s.version = "8.7.2"
3+
s.version = "8.7.3"
44

55
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
66
s.require_paths = ["lib"]
@@ -16,7 +16,6 @@ Gem::Specification.new do |s|
1616
".document",
1717
".rspec",
1818
"Gemfile",
19-
"Gemfile.lock",
2019
"LICENSE.txt",
2120
"Rakefile",
2221
"VERSION",
@@ -57,18 +56,18 @@ Gem::Specification.new do |s|
5756
s.specification_version = 4
5857

5958
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
60-
s.add_runtime_dependency(%q<bindata>, [">= 0"])
59+
s.add_runtime_dependency(%q<bindata>, ["~> 2.4.15"])
6160
s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
6261
s.add_development_dependency(%q<rdoc>, [">= 6.3.1"])
6362
s.add_development_dependency(%q<bundler>, [">= 1.2.0"])
6463
else
65-
s.add_dependency(%q<bindata>, [">= 0"])
64+
s.add_dependency(%q<bindata>, ["~> 2.4.15"])
6665
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
6766
s.add_dependency(%q<rdoc>, [">= 6.3.1"])
6867
s.add_dependency(%q<bundler>, [">= 1.2.0"])
6968
end
7069
else
71-
s.add_dependency(%q<bindata>, [">= 0"])
70+
s.add_dependency(%q<bindata>, ["~> 2.4.15"])
7271
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
7372
s.add_dependency(%q<rdoc>, [">= 6.3.1"])
7473
s.add_dependency(%q<bundler>, [">= 1.2.0"])

lib/ip2location_ruby.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
class Ip2location
1515
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
1616

17-
VERSION = '8.7.2'
17+
VERSION = '8.7.3'
1818
FIELD_NOT_SUPPORTED = 'NOT SUPPORTED'
1919
INVALID_IP_ADDRESS = 'INVALID IP ADDRESS'
2020
INVALID_BIN_DATABASE = 'Incorrect IP2Location BIN file format. Please make sure that you are using the latest IP2Location BIN file.'

0 commit comments

Comments
 (0)