db-mariadb 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d18fa619ccfc3b043299790a3e6a275670ce48614304355e3f75ba5ed1cdc202
4
- data.tar.gz: eb9e90465532de40869b545c1a65158136e2efbedeff6440f061c4f45d486e8d
3
+ metadata.gz: 3b1fb0496909a9d442eefe8576721a57eb4affee9693f9bb7c69d682546d74b2
4
+ data.tar.gz: a98067cc177c1ee492769caa3ffcae13453f913e240a71a92b71a562ed9c778c
5
5
  SHA512:
6
- metadata.gz: ec5a4ceca8186959f19019e92cc77a53e945e4834f2c7776d60b78688c32d5f614e243a868b19f584e93c70bd8c19360525a1e2b11d9b597a37a83ae247e239b
7
- data.tar.gz: 65b204be2c1c3f4dfa24f114246a2ec32913aceb580c7be40333aafe8c89a5680098612fae30136f8d537821d246ae9bf508def1f367d57db9c0bb59f767bd82
6
+ metadata.gz: 4f3fd799d28712eea7ca8e27471c515dfd18925e11204883a601f7f4a91b831477bbda99a696f50d84cc921487b0531b44771dc0cc45deb876dbefc2adf8bd4f
7
+ data.tar.gz: 36b0ea16a2b0a2249a9f731e6ddb5de6999d21f691cd1a02e764ca7ca049a1aaccbdac316cc484546e6f79ce5111ab30862bdae666ed1fbb3afe786b049060ce
@@ -70,7 +70,7 @@ module DB
70
70
  end
71
71
 
72
72
  class Connection < FFI::Pointer
73
- def self.connect(io: IO, host: 'localhost', user: nil, password: nil, database: nil, port: 0, unix_socket: nil, client_flags: 0, compression: false, types: DEFAULT_TYPES, **options)
73
+ def self.connect(wrapper: IO, host: 'localhost', user: nil, password: nil, database: nil, port: 0, unix_socket: nil, client_flags: 0, compression: false, types: DEFAULT_TYPES, **options)
74
74
  pointer = Native.mysql_init(nil)
75
75
  Native.mysql_options(pointer, MYSQL_OPT_NONBLOCK, nil)
76
76
 
@@ -85,7 +85,7 @@ module DB
85
85
  status = Native.mysql_real_connect_start(result, pointer, host, user, password, database, port, unix_socket, client_flags);
86
86
 
87
87
  if status > 0
88
- io = IO.new(Native.mysql_get_socket(pointer), "r+")
88
+ io = wrapper.new(Native.mysql_get_socket(pointer), "r+")
89
89
 
90
90
  while status > 0
91
91
  if status & MYSQL_WAIT_READ
@@ -20,6 +20,6 @@
20
20
 
21
21
  module DB
22
22
  module MariaDB
23
- VERSION = "0.3.0"
23
+ VERSION = "0.3.1"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: db-mariadb
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
  - Samuel Williams