ip2location_ruby 0.3.1 → 0.3.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 +4 -4
- data/VERSION +1 -1
- data/ip2location_ruby.gemspec +4 -4
- data/lib/ip2location_ruby/i2l_float_data.rb +1 -1
- data/spec/ip2location_ruby_spec.rb +8 -0
- data/spec/spec_helper.rb +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d572eaea90429a8a3eff55e48f0986a58ef371db
|
|
4
|
+
data.tar.gz: 4e4de29d32aa884a910948d5844a2bf05fcd0ed5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e4b287394f962b7a620fbb770408b0d50af2dafaaff80d946395f29a073dae97b2dbbf6e2981e48de93ec8d9eb156ec933900c76c509e4596f66141ef46c0071
|
|
7
|
+
data.tar.gz: 06ecd794eba9697f7f3035de7579e8021e76a7415cacea7be9c78307d64d9ba9e8943d8b5a4a698e6f003150e69533485983da0a53b23bc6d9f7bd6dee082f0e
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.2
|
data/ip2location_ruby.gemspec
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: ip2location_ruby 0.3.
|
|
5
|
+
# stub: ip2location_ruby 0.3.2 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "ip2location_ruby"
|
|
9
|
-
s.version = "0.3.
|
|
9
|
+
s.version = "0.3.2"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib"]
|
|
13
13
|
s.authors = ["Vincent.Z"]
|
|
14
|
-
s.date = "2014-
|
|
14
|
+
s.date = "2014-07-04"
|
|
15
15
|
s.description = "the ip2location ruby library"
|
|
16
16
|
s.email = "zhu1230@gmail.com"
|
|
17
17
|
s.extra_rdoc_files = [
|
|
@@ -41,7 +41,7 @@ Gem::Specification.new do |s|
|
|
|
41
41
|
]
|
|
42
42
|
s.homepage = "http://github.com/zhu1230/ip2location"
|
|
43
43
|
s.licenses = ["MIT"]
|
|
44
|
-
s.rubygems_version = "2.2.
|
|
44
|
+
s.rubygems_version = "2.2.2"
|
|
45
45
|
s.summary = "the ip2location ruby library"
|
|
46
46
|
|
|
47
47
|
if s.respond_to? :specification_version then
|
|
@@ -7,4 +7,12 @@ describe "Ip2location" do
|
|
|
7
7
|
record.should_not be_nil
|
|
8
8
|
record.country_short.should == 'US'
|
|
9
9
|
end
|
|
10
|
+
|
|
11
|
+
# this need spec/assets/IP2LOCATION-LITE-DB5.bin file which too big to include in this test.
|
|
12
|
+
|
|
13
|
+
# it "should get float value of attitude" do
|
|
14
|
+
# i2l = Ip2location.new.open(File.dirname(__FILE__) + "/assets/IP2LOCATION-LITE-DB5.bin")
|
|
15
|
+
# record = i2l.get_all('192.110.164.88')
|
|
16
|
+
# record['latitude'].should eq(33.44837951660156)
|
|
17
|
+
# end
|
|
10
18
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ip2location_ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vincent.Z
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-07-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bindata
|
|
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
155
155
|
version: '0'
|
|
156
156
|
requirements: []
|
|
157
157
|
rubyforge_project:
|
|
158
|
-
rubygems_version: 2.2.
|
|
158
|
+
rubygems_version: 2.2.2
|
|
159
159
|
signing_key:
|
|
160
160
|
specification_version: 4
|
|
161
161
|
summary: the ip2location ruby library
|