mmdb 0.3.0 → 0.3.1
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 +3 -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: 74e643c16981ea032d165d443acab75fd869ba22
|
4
|
+
data.tar.gz: 282d3b2071e2b93dc2b0890245eb38db93a2b5ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27997ce2155d53b47138cce87a61889d88259126c7a0edde316b3849aac859c6787faae803acaf304621d243a5f742e2b7e1a9d955106406fab51506fc143323
|
7
|
+
data.tar.gz: 6c667bd13b0dbb9bb152e505def6abed7cdaec21bc6c09feeee36a5cb7c6b80f0ed71484ddb88791e09e75f2a0a4f3794ead7ae51e8359ad265520840cd4b370
|
data/ext/mmdb/mmdb.c
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
#include <ruby.h>
|
2
|
+
#include <ruby/version.h>
|
2
3
|
|
3
4
|
#include <maxminddb.h>
|
4
5
|
#include <netdb.h>
|
@@ -95,7 +96,8 @@ maxminddb_alloc(VALUE klass) {
|
|
95
96
|
}
|
96
97
|
|
97
98
|
// Supported 2.1 later
|
98
|
-
#if (defined RUBY_API_VERSION_CODE) && (RUBY_API_VERSION_CODE <=
|
99
|
+
#if (defined RUBY_API_VERSION_CODE) && (RUBY_API_VERSION_CODE <= 21000)
|
100
|
+
#include <ruby/encoding.h>
|
99
101
|
static VALUE
|
100
102
|
rb_utf8_str_new(const char *ptr, long len) {
|
101
103
|
VALUE str = rb_str_new(ptr, len);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mmdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yoppi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.
|
85
|
+
rubygems_version: 2.6.8
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: MaxMindDB client for Ruby
|