mmdb 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/ext/mmdb/mmdb.c +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ddbd3f739b7ffac9b3e61811c4aa3edf5e8a55f7
4
- data.tar.gz: bd71b111bd50ac7c88fad053377120c027f4a2c8
3
+ metadata.gz: 014e86e972f3e39a9c37f4935251398f4cb48743
4
+ data.tar.gz: c5f0c1242458448fb1beb3944f8d639e75dc2028
5
5
  SHA512:
6
- metadata.gz: e6fe7e623f94fec0f4e45e0a7078cf7e3329b57826d46fddae0c1d939412f6a023e96affa116e93bb585b3e302032ca331ab3bff73161637630bb706cd230558
7
- data.tar.gz: 1fac584cfb105ae76f5379414d87b7fd1cc3fd29f016e5132261b46e4cba9d58a3c265a66d83d1f384c6e35161fca175d3512edf42379d34c2c341da5f611aa7
6
+ metadata.gz: ab00c0859f05ba290efccc93eadbb7d3943002e84cad9152be24084e782d80739861978fe9f1adf219d24fdd81ed0ca3a15a714f26b65b9dd926ff8f91d9bdd7
7
+ data.tar.gz: 8f9c5dacaf7d463c34df1b4a37fdebef7f8dc956a5b6cd0e94944fd2a1b17727a99b8e2aed93c828a5d7988ee492204fda56814a564bc3d7537f6511a64daa76
@@ -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
- rb_sys_fail(gai_strerror(gai_error));
158
+ rb_raise(rb_eTypeError, gai_strerror(gai_error));
159
159
  }
160
160
  if (mmdb_error) {
161
- rb_sys_fail(MMDB_strerror(mmdb_error));
161
+ rb_raise(rb_eTypeError, MMDB_strerror(mmdb_error));
162
162
  }
163
163
 
164
164
  if (lookuped.found_entry) {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mmdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoppi