mmdb 0.3.0 → 0.3.1

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 +3 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04e83203d350b85813210cb63cd2f47cab9d7f53
4
- data.tar.gz: dac172b67b0bfa2c3591a82819f3adf7f24dabec
3
+ metadata.gz: 74e643c16981ea032d165d443acab75fd869ba22
4
+ data.tar.gz: 282d3b2071e2b93dc2b0890245eb38db93a2b5ba
5
5
  SHA512:
6
- metadata.gz: d3e877c123d0f8cab6d60fd405b7b0936f5aa1e0c71c83eefde0419d0b851c2d0b0df716a47d654839b8f87ba2ef84e92e695a3629ab10931a6f65a20067e4f5
7
- data.tar.gz: 3e0b05ed42c42590b4aa36a1e07a38a96a62e33729cdbbf8007745483791668131619b9380e1c0f17feb20184105cc3254b8af00198dc4a8c3145049f55d5e49
6
+ metadata.gz: 27997ce2155d53b47138cce87a61889d88259126c7a0edde316b3849aac859c6787faae803acaf304621d243a5f742e2b7e1a9d955106406fab51506fc143323
7
+ data.tar.gz: 6c667bd13b0dbb9bb152e505def6abed7cdaec21bc6c09feeee36a5cb7c6b80f0ed71484ddb88791e09e75f2a0a4f3794ead7ae51e8359ad265520840cd4b370
@@ -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 <= 20100)
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.0
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-25 00:00:00.000000000 Z
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.5.1
85
+ rubygems_version: 2.6.8
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: MaxMindDB client for Ruby