mmdb 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/mmdb/mmdb.c +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 014e86e972f3e39a9c37f4935251398f4cb48743
|
4
|
+
data.tar.gz: c5f0c1242458448fb1beb3944f8d639e75dc2028
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab00c0859f05ba290efccc93eadbb7d3943002e84cad9152be24084e782d80739861978fe9f1adf219d24fdd81ed0ca3a15a714f26b65b9dd926ff8f91d9bdd7
|
7
|
+
data.tar.gz: 8f9c5dacaf7d463c34df1b4a37fdebef7f8dc956a5b6cd0e94944fd2a1b17727a99b8e2aed93c828a5d7988ee492204fda56814a564bc3d7537f6511a64daa76
|
data/ext/mmdb/mmdb.c
CHANGED
@@ -155,10 +155,10 @@ maxminddb_lookup(VALUE self, VALUE ip) {
|
|
155
155
|
|
156
156
|
lookuped = MMDB_lookup_string(ptr->mmdb, StringValuePtr(ip), &gai_error, &mmdb_error);
|
157
157
|
if (gai_error) {
|
158
|
-
|
158
|
+
rb_raise(rb_eTypeError, gai_strerror(gai_error));
|
159
159
|
}
|
160
160
|
if (mmdb_error) {
|
161
|
-
|
161
|
+
rb_raise(rb_eTypeError, MMDB_strerror(mmdb_error));
|
162
162
|
}
|
163
163
|
|
164
164
|
if (lookuped.found_entry) {
|