mysql2 0.4.7-x64-mingw32 → 0.4.8-x64-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: 453a3e20e7f3dbb02c72c486e02415d905720f93
4
- data.tar.gz: dd0f4dc57756cbcccc72517b5c87d538eb5f3318
3
+ metadata.gz: ce6b8a8eba7925cab06a26b9165e283831033e2b
4
+ data.tar.gz: 7ddd0a75bebfb0c553d3271da69b6637d724cdbb
5
5
  SHA512:
6
- metadata.gz: d9cc3d554e47ab6f68cae1bbc58501a444058f0e2b97f0c3995fbc3a24568417045d0ad53097d600968bcfbf4a7e5c67bf754e3f303cb35ae8041385e3aea8e1
7
- data.tar.gz: a54f879bc8a39fdc1be5148e7ff0ed02093931ca55e44f30140b921d3f6c6900168f87a39ccff1134232afe9c7f0386a2c77286a5ccc835d02cc6f81dd9ad38f
6
+ metadata.gz: e342867696a87381941d8bdf39bebd97127e7b4dde75f87358f259e65fc581d60ceaf0b037d582bcce29e71f1c6ba347cafdf13bb34417117eb3a150b1e5b74a
7
+ data.tar.gz: 8e223adda1718fda8a26f5f8198774cfe7dc87592f15b45537d49d30ee84e98dd4235d514693fcc2c16ffb00aca7c974dc97ba3684be1231eafe875e13d65600
@@ -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
@@ -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: x64-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: