geoip2_c 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/README.md +0 -7
- data/ext/geoip2/extconf.rb +1 -1
- data/lib/geoip2/version.rb +1 -1
- 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: 7d4407340c5c98633cae71cbc6b2c69cfb85a315
|
|
4
|
+
data.tar.gz: 35e0cc0e59278f9d6ce2f5c8079dff2a5a443ed0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 03a92ddb4b9d5097ea58a4a734a2bd4a7dc578e2afb01ad735211a6f71eeb139d2ce7cfab3022c90bdd0fded7e79799a89ece649c9886d32cc58d43ebed9bec5
|
|
7
|
+
data.tar.gz: 92a70552ec7f8f3583e49574f88116a19f9575f6b2948889d2e0168097a71cfa9e9ee4bb6809abeb17bc5767b6108691fd3876040c778063f11c7d52b88847d2
|
data/README.md
CHANGED
|
@@ -8,7 +8,6 @@ So you can get the element you want fast such as city name, country name or etc.
|
|
|
8
8
|
## Requirements
|
|
9
9
|
|
|
10
10
|
* Ruby 2.3 or later
|
|
11
|
-
* libmaxminddb
|
|
12
11
|
|
|
13
12
|
NOTE:
|
|
14
13
|
|
|
@@ -16,12 +15,6 @@ This library uses `Hash#dig` and `Array#dig`.
|
|
|
16
15
|
If you want to use this library with Ruby2.1 or Ruby2.2, you can install a gem which adds support `#dig` method.
|
|
17
16
|
But I don't want to add extra dependency to this library, so I decided not to add extra dependency to support old Ruby versions.
|
|
18
17
|
|
|
19
|
-
### libmaxminddb
|
|
20
|
-
|
|
21
|
-
* Debian: [libmaxminddb](https://packages.debian.org/search?keywords=libmaxminddb&searchon=names&suite=all§ion=all)
|
|
22
|
-
* Ubuntu: [Ubuntu official package](http://packages.ubuntu.com/search?keywords=libmaxminddb&searchon=names&suite=all§ion=all) or [PPA of MaxMind team](https://launchpad.net/~maxmind/+archive/ubuntu/ppa)
|
|
23
|
-
* CentOS/Fedora: [rpms/libmaxminddb](https://admin.fedoraproject.org/pkgdb/package/rpms/libmaxminddb/)
|
|
24
|
-
|
|
25
18
|
## Installation
|
|
26
19
|
|
|
27
20
|
Add this line to your application's Gemfile:
|
data/ext/geoip2/extconf.rb
CHANGED
|
@@ -20,7 +20,7 @@ dir_config("maxminddb", header_dirs, lib_dirs)
|
|
|
20
20
|
have_func("rb_sym2str", "ruby.h")
|
|
21
21
|
|
|
22
22
|
$LDFLAGS << " -L#{maxminddb_dir}/src/.libs -lmaxminddb"
|
|
23
|
-
$CFLAGS << " -std=c99 -fPIC -I#{maxminddb_dir}/src/.libs"
|
|
23
|
+
$CFLAGS << " -std=c99 -fPIC -fms-extensions -I#{maxminddb_dir}/src/.libs"
|
|
24
24
|
# $CFLAGS << " -g -O0"
|
|
25
25
|
|
|
26
26
|
create_makefile("geoip2/geoip2")
|
data/lib/geoip2/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: geoip2_c
|
|
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
|
- okkez
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-12-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: appraisal
|
|
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
213
213
|
version: '0'
|
|
214
214
|
requirements: []
|
|
215
215
|
rubyforge_project:
|
|
216
|
-
rubygems_version: 2.6.
|
|
216
|
+
rubygems_version: 2.6.14
|
|
217
217
|
signing_key:
|
|
218
218
|
specification_version: 4
|
|
219
219
|
summary: Write a short summary, because Rubygems requires one.
|