ruby-mysql 4.2.0 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mysql/authenticator/caching_sha2_password.rb +1 -1
- data/lib/mysql/charset.rb +3 -3
- data/lib/mysql/error.rb +2 -2
- data/lib/mysql/protocol.rb +1 -0
- data/lib/mysql.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6f6ecaf21c3afca2e777913291a4e8a15d32cbd7d08f7e3228076fe408e84bbf
|
|
4
|
+
data.tar.gz: dc74d88932d6671d5928677c32fe71837c7c638cbbed3fc6bc7e7330b71dcc23
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 86170456f509197452cbb1a4d9b8d9767d8403c02f6128769428bbce76a51f108e1e14c12879d8b9baf64285ba2c50864f16fe6d49df81b44f995ae4a6c33ebc
|
|
7
|
+
data.tar.gz: 5e301d87b8483bca8eb43fb72fdec997b49610001b4bf5563fb1e496a77190c7f812945b45a30b01dcf9fe212a529338041c2076fe5bf509d4153f99538310a1
|
|
@@ -27,7 +27,7 @@ class Mysql
|
|
|
27
27
|
when "\x03" # fast_auth_success
|
|
28
28
|
# OK
|
|
29
29
|
when "\x04" # perform_full_authentication
|
|
30
|
-
if @protocol.client_flags & CLIENT_SSL != 0
|
|
30
|
+
if @protocol.client_flags & CLIENT_SSL != 0 || @protocol.socket.local_address.unix?
|
|
31
31
|
@protocol.write passwd+"\0"
|
|
32
32
|
elsif !@protocol.get_server_public_key
|
|
33
33
|
raise ClientError::AuthPluginErr, 'Authentication requires secure connection'
|
data/lib/mysql/charset.rb
CHANGED
|
@@ -330,11 +330,11 @@ class Mysql
|
|
|
330
330
|
].freeze
|
|
331
331
|
|
|
332
332
|
# @private
|
|
333
|
-
NUMBER_TO_CHARSET = {}
|
|
333
|
+
NUMBER_TO_CHARSET = {}
|
|
334
334
|
# @private
|
|
335
|
-
COLLATION_TO_CHARSET = {}
|
|
335
|
+
COLLATION_TO_CHARSET = {}
|
|
336
336
|
# @private
|
|
337
|
-
CHARSET_DEFAULT = {}
|
|
337
|
+
CHARSET_DEFAULT = {}
|
|
338
338
|
CHARSETS.each do |number, csname, clname, default|
|
|
339
339
|
cs = Charset.new number, csname, clname
|
|
340
340
|
NUMBER_TO_CHARSET[number] = cs
|
data/lib/mysql/error.rb
CHANGED
|
@@ -35,7 +35,7 @@ class Mysql
|
|
|
35
35
|
|
|
36
36
|
# server side error
|
|
37
37
|
class ServerError < Error
|
|
38
|
-
ERROR_MAP = {}
|
|
38
|
+
ERROR_MAP = {}
|
|
39
39
|
|
|
40
40
|
ER_ERROR_FIRST = 1000
|
|
41
41
|
ER_HASHCHK = 1000
|
|
@@ -912,7 +912,7 @@ class Mysql
|
|
|
912
912
|
|
|
913
913
|
# client side error
|
|
914
914
|
class ClientError < Error
|
|
915
|
-
ERROR_MAP = {}
|
|
915
|
+
ERROR_MAP = {}
|
|
916
916
|
|
|
917
917
|
CR_ERROR_FIRST = 2000
|
|
918
918
|
CR_UNKNOWN_ERROR = 2000
|
data/lib/mysql/protocol.rb
CHANGED
data/lib/mysql.rb
CHANGED
|
@@ -22,7 +22,7 @@ class Mysql
|
|
|
22
22
|
require_relative "mysql/protocol"
|
|
23
23
|
require_relative "mysql/packet"
|
|
24
24
|
|
|
25
|
-
VERSION = -'4.2.
|
|
25
|
+
VERSION = -'4.2.1' # Version number of this library
|
|
26
26
|
MYSQL_UNIX_PORT = -"/tmp/mysql.sock" # UNIX domain socket filename
|
|
27
27
|
MYSQL_TCP_PORT = 3306 # TCP socket port number
|
|
28
28
|
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-mysql
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.2.
|
|
4
|
+
version: 4.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tomita Masahiro
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies: []
|
|
12
12
|
description: This is MySQL connector. pure Ruby version
|
|
13
13
|
email: tommy@tmtm.org
|
|
@@ -52,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
53
|
version: '0'
|
|
54
54
|
requirements: []
|
|
55
|
-
rubygems_version:
|
|
55
|
+
rubygems_version: 4.0.2
|
|
56
56
|
specification_version: 4
|
|
57
57
|
summary: MySQL connector
|
|
58
58
|
test_files: []
|