mysql_blob_streaming 2.5.0 → 2.5.1

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
  SHA256:
3
- metadata.gz: 41159757111fa9315bf586c9903a2c9e1f0653cc5d77e62516fff24aa7181fc2
4
- data.tar.gz: 63e0bff12dd9ec05ad90984b04c51263fe9a2087aa195e3de5b7bb51111cc8b7
3
+ metadata.gz: ef1f3180da060f18a1dcbede2948f36002ccc59cffb3386cc209199f86fad9df
4
+ data.tar.gz: ce2106b6b54c28d39c8ed169f32076616695b8585dbc834237e71adcf10fc801
5
5
  SHA512:
6
- metadata.gz: bde7d96f34fe7360e283216218b8722cd34973a2f62e9fa07cddbe8f21d760d09a25fd9b425ee391760c4003f4d06528c2cfbfd322f253abe1fdc1844cd8553e
7
- data.tar.gz: 64f5731e95ce7d5d08b5e70b180bb6f37e39115d43d2240b70a96127551cb210a9ec18ead758d731e43c48f9531fd6c11dfb6c32f3c87ba557a2eaa40e029a9c
6
+ metadata.gz: f05f51fdd3f8684248ceb50411786772d8a6cf8a8e990cd596c6e6132f396c252da8d30ea9d2b92351c402d1925ec9b3d993bde1a0fe21c0d464f74d8aa60b4d
7
+ data.tar.gz: 1adb832c41cdc9cb8601227481be9fd84cedef608381aeb6f40efaede7bd6083d4a53992d4cf7aec5784d8ae794db1381ad998e5fa71f0528146a5652564aad0
@@ -11,6 +11,18 @@ find_header('mysql.h', *additional_mysql_include_dirs)
11
11
  find_header('errmsg.h', *additional_mysql_include_dirs)
12
12
  find_library('mysqlclient', nil, *additional_mysql_lib_dirs)
13
13
 
14
+ if have_header('mysql.h')
15
+ prefix = nil
16
+ elsif have_header('mysql/mysql.h')
17
+ prefix = 'mysql'
18
+ else
19
+ asplode 'mysql.h'
20
+ end
21
+ mysql_h = [prefix, 'mysql.h'].compact.join('/')
22
+ # my_bool is replaced by C99 bool in MySQL 8.0, but we want
23
+ # to retain compatibility with the typedef in earlier MySQLs.
24
+ have_type('my_bool', mysql_h)
25
+
14
26
  # --no-undefined forces us to link against libruby
15
27
  def remove_no_undefined(ldflags)
16
28
  ldflags.gsub("-Wl,--no-undefined", "")
@@ -4,30 +4,35 @@
4
4
  #include <mysql.h>
5
5
  #include <errmsg.h>
6
6
 
7
- #if MYSQL_VERSION_ID >=80000 && MYSQL_VERSION_ID <80030
7
+ /* MySQL 8.0 replaces my_bool with C99 bool. Earlier versions of MySQL had
8
+ * a typedef to char. Gem users reported failures on big endian systems when
9
+ * using C99 bool types with older MySQLs due to mismatched behavior.
10
+ */
11
+ #ifndef HAVE_TYPE_MY_BOOL
8
12
  #include <stdbool.h>
9
13
  typedef bool my_bool;
10
14
  #endif
11
15
 
12
16
  typedef struct {
13
17
  VALUE encoding;
14
- VALUE active_thread;
18
+ VALUE active_fiber; /* rb_fiber_current() or Qnil */
15
19
  long server_version;
16
20
  int reconnect_enabled;
17
- int connect_timeout;
21
+ unsigned int connect_timeout;
18
22
  int active;
19
- int connected;
23
+ int automatic_close;
20
24
  int initialized;
21
25
  int refcount;
22
- int freed;
26
+ int closed;
23
27
  MYSQL *client;
24
28
  } mysql_client_wrapper;
25
29
 
30
+ extern const rb_data_type_t rb_mysql_client_type;
26
31
 
27
32
  static MYSQL * mysql_connection(VALUE rb_mysql2_client)
28
33
  {
29
34
  mysql_client_wrapper *wrapper;
30
- Data_Get_Struct(rb_mysql2_client, mysql_client_wrapper, wrapper);
35
+ TypedData_Get_Struct(rb_mysql2_client, mysql_client_wrapper, &rb_mysql_client_type, wrapper);
31
36
  return wrapper->client;
32
37
  }
33
38
 
@@ -1,3 +1,3 @@
1
1
  class MysqlBlobStreaming
2
- VERSION = "2.5.0"
2
+ VERSION = '2.5.1'
3
3
  end
metadata CHANGED
@@ -1,35 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mysql_blob_streaming
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Infopark AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-04 00:00:00.000000000 Z
11
+ date: 2023-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mysql2
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.4.4
20
- - - "<"
19
+ version: '0.5'
20
+ - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.6.0
22
+ version: 0.5.5
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ">="
27
+ - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: 0.4.4
30
- - - "<"
29
+ version: '0.5'
30
+ - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.6.0
32
+ version: 0.5.5
33
33
  description: " This GEM is required by the infopark_fiona_connector when using
34
34
  MySQL.\n"
35
35
  email: info@infopark.de
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  version: '0'
67
67
  requirements:
68
68
  - infopark_fiona_connector
69
- rubygems_version: 3.1.6
69
+ rubygems_version: 3.4.5
70
70
  signing_key:
71
71
  specification_version: 4
72
72
  summary: A blob streaming extension for the native Ruby-MySQL2 adapter