geo_db 0.0.1 → 0.0.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/GeoIP.dat +0 -0
  3. data/lib/geo_db.rb +4 -0
  4. metadata +5 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9a01f97fc7c0f7ce54387eea1a961ac6538c51c
4
- data.tar.gz: dccabb813ac36f30205014497224600eef02e7ee
3
+ metadata.gz: 230c10dc6ff7a06148d630d05515bea7171d19bf
4
+ data.tar.gz: 2a8cb36d19e1777db6902145dff8d9d97c25544c
5
5
  SHA512:
6
- metadata.gz: c38dd35778d0689d6dfd9df98ffb49c2eeb5475ab21de1b11fd9beca344269de38de042cfdd8356eec3a5c24c32a35c57aa57a119f34048c438971136b4cbf8a
7
- data.tar.gz: cfd0c18a9826e2bca27fb2dd3439b8c9779b3febdb98126b1e9377610856332b62a52882fff64561c0c715b0c41318538e1fb0fa5ae16826b0fdd67584a09153
6
+ metadata.gz: a51382e67c0e61c4ece48a2e61172802ed9e59349ba6ae7b7fdfbed984d1566418bf936a153362663e60f7627ba8a4050b3421f9f1289b58c7b089226c646ba4
7
+ data.tar.gz: 158fd7e01c112bbb61cde3bddf045ef488932639b6ee0a293871bfc2a4e7fdc6b92c9602d16791e1cb535e9bbfea56abbd5dc8ab198445d466f5c3cf5b23e559
data/lib/GeoIP.dat ADDED
Binary file
data/lib/geo_db.rb CHANGED
@@ -2,4 +2,8 @@ class GeoDB
2
2
  def self.path
3
3
  File.expand_path('../GeoLiteCity.dat', __FILE__)
4
4
  end
5
+
6
+ def self.country_path
7
+ File.expand_path('../GeoIP.dat', __FILE__)
8
+ end
5
9
  end
metadata CHANGED
@@ -1,21 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geo_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jingshuai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-04 00:00:00.000000000 Z
11
+ date: 2017-01-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: GeoIP city database
13
+ description: GeoIP city and country database
14
14
  email: wjs_linux@163.com
15
15
  executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
+ - lib/GeoIP.dat
19
20
  - lib/GeoLiteCity.dat
20
21
  - lib/geo_db.rb
21
22
  homepage: https://github.com/vcamvr/geo_db
@@ -41,5 +42,5 @@ rubyforge_project:
41
42
  rubygems_version: 2.5.1
42
43
  signing_key:
43
44
  specification_version: 4
44
- summary: GeoIP city
45
+ summary: GeoIP DB
45
46
  test_files: []