ip2location_ruby 8.0.2 → 8.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +43 -0
  3. data/VERSION +1 -1
  4. data/ip2location_ruby.gemspec +4 -2
  5. metadata +4 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01fd536e8f027283daa5970430b74f92eac033abba87bc791a91cf7744f32faf
4
- data.tar.gz: 5d51a5a21d7f949950549879dc22a79f20fe93349045c4e6b3fa816904281fef
3
+ metadata.gz: 348d1fba82579c218372c4ef13483ca094ddd971d4c99ee6894533e4c80533ef
4
+ data.tar.gz: de5b0eeb6f5eb9f3a80db2b2daaeb7e458f3f55843ae90709e728b952ee1bebd
5
5
  SHA512:
6
- metadata.gz: 5ca3e80175ae9349195a5e6e96780e07cc81c84a0eefc078a4359b1ab72e479a5e66628f5285d7280b7ce5c4a1d9f6cfcb86bca57ba677eefe9fdcc503f811a9
7
- data.tar.gz: f76289e0dfaaa8372d229c1c07d9e23faea36282ed1f9c721b578fcb3b7e09110117edb300f2095471285590d65b3e3c7968b3ab7b9ecbe309aa51689124c902
6
+ metadata.gz: d1993927999e913ebbadec26352c24fb4f5305b76edbd173b38ef8407e98facbc11c33761c3f614ed6bc035a57d15a16797cbd6f11d0122766fc063e2101a1c9
7
+ data.tar.gz: 3d012bc0e917f1ac06415f82f05d824b8d3b2ccb7f02a83abdb8ed3bd84648d742f3958381414ceceec115ea01223a8f8cfb135924d6bb3737583f0aca548fac
@@ -0,0 +1,43 @@
1
+ [![Latest Stable Version](https://img.shields.io/gem/v/ip2location_ruby.svg)](https://rubygems.org/gems/ip2location_ruby)
2
+ [![Total Downloads](https://img.shields.io/gem/dt/ip2location_ruby.svg)](https://rubygems.org/gems/ip2location_ruby)
3
+
4
+ # IP2Location Ruby Library
5
+ This is IP2Location Ruby library that enables the user to find the country, region or state, city, latitude and longitude, US ZIP code, time zone, Internet Service Provider (ISP) or company name, domain name, net speed, area code, weather station code, weather station name, mobile country code (MCC), mobile network code (MNC) and carrier brand, elevation, and usage type by IP address or hostname originates from. The library reads the geo location information
6
+ from **IP2Location BIN data** file.
7
+
8
+ Supported IPv4 and IPv6 address.
9
+
10
+ For more details, please visit:
11
+ [https://www.ip2location.com/developers/ruby](https://www.ip2location.com/developers/ruby)
12
+
13
+ # Usage
14
+
15
+ i2l = Ip2location.new.open(File.dirname(__FILE__) + "/assets/IP-COUNTRY-SAMPLE.bin")
16
+ record = i2l.get_all('13.5.10.6')
17
+ record.should_not be_nil
18
+ record.country_short.should == 'US'
19
+
20
+ # Contributing to ip2location
21
+
22
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
23
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
24
+ * Fork the project.
25
+ * Start a feature/bugfix branch.
26
+ * Commit and push until you are happy with your contribution.
27
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
28
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
29
+
30
+ # Sample BIN Databases
31
+
32
+ * Download free IP2Location LITE databases at [https://lite.ip2location.com](https://lite.ip2location.com)
33
+ * Download IP2Location sample databases at [https://www.ip2location.com/developers](https://www.ip2location.com/developers)
34
+
35
+ # IPv4 BIN vs IPv6 BIN
36
+
37
+ * Use the IPv4 BIN file if you just need to query IPv4 addresses.
38
+ * Use the IPv6 BIN file if you need to query BOTH IPv4 and IPv6 addresses.
39
+
40
+ # Support
41
+
42
+ Email: support@ip2location.com
43
+ URL: [https://www.ip2location.com](https://www.ip2location.com)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 8.0.2
1
+ 8.0.3
@@ -6,7 +6,7 @@
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "ip2location_ruby"
9
- s.version = "8.0.2"
9
+ s.version = "8.0.3"
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"]
@@ -15,7 +15,8 @@ Gem::Specification.new do |s|
15
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
16
  s.email = "support@ip2location.com"
17
17
  s.extra_rdoc_files = [
18
- "LICENSE.txt"
18
+ "LICENSE.txt",
19
+ "README.md"
19
20
  ]
20
21
  s.files = [
21
22
  ".document",
@@ -47,6 +48,7 @@ Gem::Specification.new do |s|
47
48
  if s.respond_to?(:metadata=)
48
49
  s.metadata = {
49
50
  "bug_tracker_uri" => "https://github.com/ip2location/ip2location-ruby/issues",
51
+ "documentation_uri" => "https://www.rubydoc.info/gems/ip2location_ruby",
50
52
  "homepage_uri" => "https://www.ip2location.com",
51
53
  "source_code_uri" => "https://github.com/ip2location/ip2location-ruby",
52
54
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ip2location_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.2
4
+ version: 8.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent.Z
@@ -117,12 +117,14 @@ executables: []
117
117
  extensions: []
118
118
  extra_rdoc_files:
119
119
  - LICENSE.txt
120
+ - README.md
120
121
  files:
121
122
  - ".document"
122
123
  - ".rspec"
123
124
  - Gemfile
124
125
  - Gemfile.lock
125
126
  - LICENSE.txt
127
+ - README.md
126
128
  - Rakefile
127
129
  - VERSION
128
130
  - ip2location_ruby.gemspec
@@ -143,6 +145,7 @@ licenses:
143
145
  - MIT
144
146
  metadata:
145
147
  bug_tracker_uri: https://github.com/ip2location/ip2location-ruby/issues
148
+ documentation_uri: https://www.rubydoc.info/gems/ip2location_ruby
146
149
  homepage_uri: https://www.ip2location.com
147
150
  source_code_uri: https://github.com/ip2location/ip2location-ruby
148
151
  post_install_message: