ip2location_ruby 8.0.1 → 8.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6498bb18d849412de400120c7e71a6f1f4fe7bfa
4
- data.tar.gz: fc922eede3355f2223b152d491194f654c9a56fb
2
+ SHA256:
3
+ metadata.gz: 01fd536e8f027283daa5970430b74f92eac033abba87bc791a91cf7744f32faf
4
+ data.tar.gz: 5d51a5a21d7f949950549879dc22a79f20fe93349045c4e6b3fa816904281fef
5
5
  SHA512:
6
- metadata.gz: 4730d2e28e3b5815ccb9949ca64d7d7918e3228b1ce2942f9d46313c1020527cc6a3042a0c8410fc750360627bb5467116aac6efdbd8351103ebbe670f60983a
7
- data.tar.gz: 9bc77be32a4edf9480a8e13cdc40d5802747e1bc448a837a398db956229c0a1de638b28a666dea75c523302c787f4d87bfe5a3a0f0a102f5f4dadb3492ecc302
6
+ metadata.gz: 5ca3e80175ae9349195a5e6e96780e07cc81c84a0eefc078a4359b1ab72e479a5e66628f5285d7280b7ce5c4a1d9f6cfcb86bca57ba677eefe9fdcc503f811a9
7
+ data.tar.gz: f76289e0dfaaa8372d229c1c07d9e23faea36282ed1f9c721b578fcb3b7e09110117edb300f2095471285590d65b3e3c7968b3ab7b9ecbe309aa51689124c902
data/.document CHANGED
@@ -1,5 +1,5 @@
1
- lib/**/*.rb
2
- bin/*
3
- -
4
- features/**/*.feature
5
- LICENSE.txt
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/.rspec CHANGED
@@ -1 +1 @@
1
- --color
1
+ --color
data/Gemfile CHANGED
@@ -1,16 +1,16 @@
1
- source "http://rubygems.org"
2
- # Add dependencies required to use your gem here.
3
- # Example:
4
- # gem "activesupport", ">= 2.3.5"
5
- gem 'bindata'
6
- # Add dependencies to develop your gem here.
7
- # Include everything needed to run rake, tests, features, etc.
8
-
9
- group :development do
10
- gem 'awesome_print'
11
- gem "rspec", "~> 2.8.0"
12
- gem "rdoc", "~> 3.12"
13
- gem "bundler", ">= 1.2.0"
14
- gem "jeweler", "~> 1.8.4"
15
- gem "simplecov", ">= 0"
16
- end
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+ gem 'bindata'
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+
9
+ group :development do
10
+ gem 'awesome_print'
11
+ gem "rspec", "~> 2.8.0"
12
+ gem "rdoc", "~> 3.12"
13
+ gem "bundler", ">= 1.2.0"
14
+ gem "jeweler", "~> 1.8.4"
15
+ gem "simplecov", ">= 0"
16
+ end
data/Gemfile.lock CHANGED
@@ -1,74 +1,74 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- addressable (2.3.5)
5
- awesome_print (1.2.0)
6
- bindata (2.1.0)
7
- builder (3.2.2)
8
- diff-lcs (1.1.3)
9
- docile (1.1.1)
10
- faraday (0.8.8)
11
- multipart-post (~> 1.2.0)
12
- git (1.2.6)
13
- github_api (0.10.1)
14
- addressable
15
- faraday (~> 0.8.1)
16
- hashie (>= 1.2)
17
- multi_json (~> 1.4)
18
- nokogiri (~> 1.5.2)
19
- oauth2
20
- hashie (2.0.5)
21
- highline (1.6.20)
22
- httpauth (0.2.0)
23
- jeweler (1.8.8)
24
- builder
25
- bundler (~> 1.0)
26
- git (>= 1.2.5)
27
- github_api (= 0.10.1)
28
- highline (>= 1.6.15)
29
- nokogiri (= 1.5.10)
30
- rake
31
- rdoc
32
- json (1.8.1)
33
- jwt (0.1.8)
34
- multi_json (>= 1.5)
35
- multi_json (1.8.2)
36
- multi_xml (0.5.5)
37
- multipart-post (1.2.0)
38
- nokogiri (1.5.10)
39
- oauth2 (0.9.2)
40
- faraday (~> 0.8)
41
- httpauth (~> 0.2)
42
- jwt (~> 0.1.4)
43
- multi_json (~> 1.0)
44
- multi_xml (~> 0.5)
45
- rack (~> 1.2)
46
- rack (1.5.2)
47
- rake (10.1.1)
48
- rdoc (3.12.2)
49
- json (~> 1.4)
50
- rspec (2.8.0)
51
- rspec-core (~> 2.8.0)
52
- rspec-expectations (~> 2.8.0)
53
- rspec-mocks (~> 2.8.0)
54
- rspec-core (2.8.0)
55
- rspec-expectations (2.8.0)
56
- diff-lcs (~> 1.1.2)
57
- rspec-mocks (2.8.0)
58
- simplecov (0.8.2)
59
- docile (~> 1.1.0)
60
- multi_json
61
- simplecov-html (~> 0.8.0)
62
- simplecov-html (0.8.0)
63
-
64
- PLATFORMS
65
- ruby
66
-
67
- DEPENDENCIES
68
- awesome_print
69
- bindata
70
- bundler (>= 1.2.0)
71
- jeweler (~> 1.8.4)
72
- rdoc (~> 3.12)
73
- rspec (~> 2.8.0)
74
- simplecov
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ addressable (2.3.5)
5
+ awesome_print (1.2.0)
6
+ bindata (2.1.0)
7
+ builder (3.2.2)
8
+ diff-lcs (1.1.3)
9
+ docile (1.1.1)
10
+ faraday (0.8.8)
11
+ multipart-post (~> 1.2.0)
12
+ git (1.2.6)
13
+ github_api (0.10.1)
14
+ addressable
15
+ faraday (~> 0.8.1)
16
+ hashie (>= 1.2)
17
+ multi_json (~> 1.4)
18
+ nokogiri (~> 1.5.2)
19
+ oauth2
20
+ hashie (2.0.5)
21
+ highline (1.6.20)
22
+ httpauth (0.2.0)
23
+ jeweler (1.8.8)
24
+ builder
25
+ bundler (~> 1.0)
26
+ git (>= 1.2.5)
27
+ github_api (= 0.10.1)
28
+ highline (>= 1.6.15)
29
+ nokogiri (>= 1.8.2)
30
+ rake
31
+ rdoc
32
+ json (1.8.1)
33
+ jwt (0.1.8)
34
+ multi_json (>= 1.5)
35
+ multi_json (1.8.2)
36
+ multi_xml (0.5.5)
37
+ multipart-post (1.2.0)
38
+ nokogiri (>= 1.8.2)
39
+ oauth2 (0.9.2)
40
+ faraday (~> 0.8)
41
+ httpauth (~> 0.2)
42
+ jwt (~> 0.1.4)
43
+ multi_json (~> 1.0)
44
+ multi_xml (~> 0.5)
45
+ rack (~> 1.2)
46
+ rack (>= 1.6.11)
47
+ rake (10.1.1)
48
+ rdoc (3.12.2)
49
+ json (~> 1.4)
50
+ rspec (2.8.0)
51
+ rspec-core (~> 2.8.0)
52
+ rspec-expectations (~> 2.8.0)
53
+ rspec-mocks (~> 2.8.0)
54
+ rspec-core (2.8.0)
55
+ rspec-expectations (2.8.0)
56
+ diff-lcs (~> 1.1.2)
57
+ rspec-mocks (2.8.0)
58
+ simplecov (0.8.2)
59
+ docile (~> 1.1.0)
60
+ multi_json
61
+ simplecov-html (~> 0.8.0)
62
+ simplecov-html (0.8.0)
63
+
64
+ PLATFORMS
65
+ ruby
66
+
67
+ DEPENDENCIES
68
+ awesome_print
69
+ bindata
70
+ bundler (>= 1.2.0)
71
+ jeweler (~> 1.8.4)
72
+ rdoc (~> 3.12)
73
+ rspec (~> 2.8.0)
74
+ simplecov
data/LICENSE.txt CHANGED
@@ -1,20 +1,20 @@
1
- Copyright (c) 2013 Vincent.Z ( zhu1230@gmail.com )
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ Copyright (c) 2013 Vincent.Z ( zhu1230@gmail.com )
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile CHANGED
@@ -1,49 +1,49 @@
1
- # encoding: utf-8
2
-
3
- require 'rubygems'
4
- require 'bundler'
5
- begin
6
- Bundler.setup(:default, :development)
7
- rescue Bundler::BundlerError => e
8
- $stderr.puts e.message
9
- $stderr.puts "Run `bundle install` to install missing gems"
10
- exit e.status_code
11
- end
12
- require 'rake'
13
-
14
- require 'jeweler'
15
- Jeweler::Tasks.new do |gem|
16
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
- gem.name = "ip2location_ruby"
18
- gem.homepage = "https://github.com/ip2location/ip2location-ruby"
19
- gem.license = "MIT"
20
- gem.summary = %Q{the ip2location ruby library}
21
- gem.description = %Q{ip2location ruby library}
22
- gem.email = "support@ip2location.com"
23
- gem.authors = ["Vincent.Z"]
24
- # dependencies defined in Gemfile
25
- end
26
- Jeweler::RubygemsDotOrgTasks.new
27
-
28
- require 'rspec/core'
29
- require 'rspec/core/rake_task'
30
- RSpec::Core::RakeTask.new(:spec) do |spec|
31
- spec.pattern = FileList['spec/**/*_spec.rb']
32
- end
33
-
34
- RSpec::Core::RakeTask.new(:rcov) do |spec|
35
- spec.pattern = 'spec/**/*_spec.rb'
36
- spec.rcov = true
37
- end
38
-
39
- task :default => :spec
40
-
41
- require 'rdoc/task'
42
- Rake::RDocTask.new do |rdoc|
43
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
44
-
45
- rdoc.rdoc_dir = 'rdoc'
46
- rdoc.title = "ip2location #{version}"
47
- rdoc.rdoc_files.include('README*')
48
- rdoc.rdoc_files.include('lib/**/*.rb')
49
- end
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "ip2location_ruby"
18
+ gem.homepage = "https://github.com/ip2location/ip2location-ruby"
19
+ gem.license = "MIT"
20
+ gem.summary = %Q{the ip2location ruby library}
21
+ gem.description = %Q{ip2location ruby library}
22
+ gem.email = "support@ip2location.com"
23
+ gem.authors = ["Vincent.Z"]
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Jeweler::RubygemsDotOrgTasks.new
27
+
28
+ require 'rspec/core'
29
+ require 'rspec/core/rake_task'
30
+ RSpec::Core::RakeTask.new(:spec) do |spec|
31
+ spec.pattern = FileList['spec/**/*_spec.rb']
32
+ end
33
+
34
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
35
+ spec.pattern = 'spec/**/*_spec.rb'
36
+ spec.rcov = true
37
+ end
38
+
39
+ task :default => :spec
40
+
41
+ require 'rdoc/task'
42
+ Rake::RDocTask.new do |rdoc|
43
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
44
+
45
+ rdoc.rdoc_dir = 'rdoc'
46
+ rdoc.title = "ip2location #{version}"
47
+ rdoc.rdoc_files.include('README*')
48
+ rdoc.rdoc_files.include('lib/**/*.rb')
49
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 8.0.1
1
+ 8.0.2
@@ -1,79 +1,85 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
- # stub: ip2location_ruby 8.0.1 ruby lib
6
-
7
- Gem::Specification.new do |s|
8
- s.name = "ip2location_ruby"
9
- s.version = "8.0.1"
10
-
11
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
- s.require_paths = ["lib"]
13
- s.authors = ["Vincent.Z"]
14
- s.date = "2016-07-25"
15
- s.description = "ip2location ruby library"
16
- s.email = "support@ip2location.com"
17
- s.extra_rdoc_files = [
18
- "LICENSE.txt",
19
- "README.rdoc"
20
- ]
21
- s.files = [
22
- ".document",
23
- ".rspec",
24
- "Gemfile",
25
- "Gemfile.lock",
26
- "LICENSE.txt",
27
- "README.rdoc",
28
- "Rakefile",
29
- "VERSION",
30
- "ip2location_ruby.gemspec",
31
- "lib/ip2location_ruby.rb",
32
- "lib/ip2location_ruby/database_config.rb",
33
- "lib/ip2location_ruby/i2l_float_data.rb",
34
- "lib/ip2location_ruby/i2l_ip_data.rb",
35
- "lib/ip2location_ruby/i2l_string_data.rb",
36
- "lib/ip2location_ruby/ip2location_config.rb",
37
- "lib/ip2location_ruby/ip2location_record.rb",
38
- "spec/assets/DB24.DEMO4.BIN",
39
- "spec/assets/DB24.DEMO6.BIN",
40
- "spec/assets/IP-COUNTRY-SAMPLE.BIN",
41
- "spec/ip2location_ruby_spec.rb",
42
- "spec/spec_helper.rb"
43
- ]
44
- s.homepage = "https://github.com/ip2location/ip2location-ruby"
45
- s.licenses = ["MIT"]
46
- s.rubygems_version = "2.4.1"
47
- s.summary = "the ip2location ruby library"
48
-
49
- if s.respond_to? :specification_version then
50
- s.specification_version = 4
51
-
52
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
53
- s.add_runtime_dependency(%q<bindata>, [">= 0"])
54
- s.add_development_dependency(%q<awesome_print>, [">= 0"])
55
- s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
56
- s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
57
- s.add_development_dependency(%q<bundler>, [">= 1.2.0"])
58
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
59
- s.add_development_dependency(%q<simplecov>, [">= 0"])
60
- else
61
- s.add_dependency(%q<bindata>, [">= 0"])
62
- s.add_dependency(%q<awesome_print>, [">= 0"])
63
- s.add_dependency(%q<rspec>, ["~> 2.8.0"])
64
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
65
- s.add_dependency(%q<bundler>, [">= 1.2.0"])
66
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
67
- s.add_dependency(%q<simplecov>, [">= 0"])
68
- end
69
- else
70
- s.add_dependency(%q<bindata>, [">= 0"])
71
- s.add_dependency(%q<awesome_print>, [">= 0"])
72
- s.add_dependency(%q<rspec>, ["~> 2.8.0"])
73
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
74
- s.add_dependency(%q<bundler>, [">= 1.2.0"])
75
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
76
- s.add_dependency(%q<simplecov>, [">= 0"])
77
- end
78
- end
79
-
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+ # stub: ip2location_ruby 8.0.2 ruby lib
6
+
7
+ Gem::Specification.new do |s|
8
+ s.name = "ip2location_ruby"
9
+ s.version = "8.0.2"
10
+
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
13
+ s.authors = ["Vincent.Z"]
14
+ s.date = "2016-07-25"
15
+ s.description = "The official IP2Location Ruby library to geolocate an IP address. You can lookup for country, region, city, latitude, longitude, zip code, time zone, ISP, domain, area code, usage type, mobile data, weather data and elevation from an IP address. Supported both IPv4 and IPv6 lookup."
16
+ s.email = "support@ip2location.com"
17
+ s.extra_rdoc_files = [
18
+ "LICENSE.txt"
19
+ ]
20
+ s.files = [
21
+ ".document",
22
+ ".rspec",
23
+ "Gemfile",
24
+ "Gemfile.lock",
25
+ "LICENSE.txt",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "ip2location_ruby.gemspec",
29
+ "lib/ip2location_ruby.rb",
30
+ "lib/ip2location_ruby/database_config.rb",
31
+ "lib/ip2location_ruby/i2l_float_data.rb",
32
+ "lib/ip2location_ruby/i2l_ip_data.rb",
33
+ "lib/ip2location_ruby/i2l_string_data.rb",
34
+ "lib/ip2location_ruby/ip2location_config.rb",
35
+ "lib/ip2location_ruby/ip2location_record.rb",
36
+ "spec/assets/DB24.DEMO4.BIN",
37
+ "spec/assets/DB24.DEMO6.BIN",
38
+ "spec/assets/IP-COUNTRY-SAMPLE.BIN",
39
+ "spec/ip2location_ruby_spec.rb",
40
+ "spec/spec_helper.rb"
41
+ ]
42
+ s.homepage = "https://github.com/ip2location/ip2location-ruby"
43
+ s.licenses = ["MIT"]
44
+ s.rubygems_version = "2.4.1"
45
+ s.summary = "the ip2location ruby library"
46
+
47
+ if s.respond_to?(:metadata=)
48
+ s.metadata = {
49
+ "bug_tracker_uri" => "https://github.com/ip2location/ip2location-ruby/issues",
50
+ "homepage_uri" => "https://www.ip2location.com",
51
+ "source_code_uri" => "https://github.com/ip2location/ip2location-ruby",
52
+ }
53
+ end
54
+
55
+ if s.respond_to? :specification_version then
56
+ s.specification_version = 4
57
+
58
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
59
+ s.add_runtime_dependency(%q<bindata>, [">= 0"])
60
+ s.add_development_dependency(%q<awesome_print>, [">= 0"])
61
+ s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
62
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
63
+ s.add_development_dependency(%q<bundler>, [">= 1.2.0"])
64
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
65
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
66
+ else
67
+ s.add_dependency(%q<bindata>, [">= 0"])
68
+ s.add_dependency(%q<awesome_print>, [">= 0"])
69
+ s.add_dependency(%q<rspec>, ["~> 2.8.0"])
70
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
71
+ s.add_dependency(%q<bundler>, [">= 1.2.0"])
72
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
73
+ s.add_dependency(%q<simplecov>, [">= 0"])
74
+ end
75
+ else
76
+ s.add_dependency(%q<bindata>, [">= 0"])
77
+ s.add_dependency(%q<awesome_print>, [">= 0"])
78
+ s.add_dependency(%q<rspec>, ["~> 2.8.0"])
79
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
80
+ s.add_dependency(%q<bundler>, [">= 1.2.0"])
81
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
82
+ s.add_dependency(%q<simplecov>, [">= 0"])
83
+ end
84
+ end
85
+