mysql2 0.4.7-x86-mingw32 → 0.4.8-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 128d66084cc8ce1d9c2108f037083d8a0ea478d7
4
- data.tar.gz: 806d4d982e5f24d52cadd6dfebb577b656207f8c
3
+ metadata.gz: 65f7116ee8a9e76d115fcf5ec82800428fc68163
4
+ data.tar.gz: 5e789646fa0724315a38bd344d23263f55a234de
5
5
  SHA512:
6
- metadata.gz: b885bf4b4e1903f82266f439f044c7a6b91137e6a9d42ad76791d5715ba231a2a3cf30d1cd971fcf67499d906ecb265180e281507fe3f4b67dafbe7d7726b9c5
7
- data.tar.gz: 0204e5cdeb58fb39ec635cca3810a4dc8ea335a4f940d201fc7b8531640ab8e01fd884f720d0cf29b178cf6b4c6a64d9cd4d86202561ddbbf279c7146da0ccfe
6
+ metadata.gz: 1d982b2881a348660139d6b5a5782d8eaf1440810791c6245f97450c10a3d84524ffd7232ba67e75e00b03f1d7b2dad9f82f102936713b9d585b66035c792a9e
7
+ data.tar.gz: 530fffc2b866da522a3f2c4c52a751405363eafa9f990621d59b3da0a83efa223446080a29d823842c5f5073d8ea230557fdcb77da064c5c26b4df922e9526cf
data/ext/mysql2/client.c CHANGED
@@ -903,10 +903,12 @@ static VALUE _mysql_client_options(VALUE self, int opt, VALUE value) {
903
903
  retval = charval;
904
904
  break;
905
905
 
906
+ #ifdef MYSQL_ENABLE_CLEARTEXT_PLUGIN
906
907
  case MYSQL_ENABLE_CLEARTEXT_PLUGIN:
907
908
  boolval = (value == Qfalse ? 0 : 1);
908
909
  retval = &boolval;
909
910
  break;
911
+ #endif
910
912
 
911
913
  default:
912
914
  return Qfalse;
@@ -1326,7 +1328,11 @@ static VALUE set_init_command(VALUE self, VALUE value) {
1326
1328
  }
1327
1329
 
1328
1330
  static VALUE set_enable_cleartext_plugin(VALUE self, VALUE value) {
1331
+ #ifdef MYSQL_ENABLE_CLEARTEXT_PLUGIN
1329
1332
  return _mysql_client_options(self, MYSQL_ENABLE_CLEARTEXT_PLUGIN, value);
1333
+ #else
1334
+ rb_raise(cMysql2Error, "enable-cleartext-plugin is not available, you may need a newer MySQL client library");
1335
+ #endif
1330
1336
  }
1331
1337
 
1332
1338
  static VALUE initialize_ext(VALUE self) {
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,3 +1,3 @@
1
1
  module Mysql2
2
- VERSION = "0.4.7"
2
+ VERSION = "0.4.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mysql2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Brian Lopez
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-07-01 00:00:00.000000000 Z
12
+ date: 2017-07-10 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: