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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0fae682668684b92f92ebf353cc0bcfaaeffc5afc922a82f6203fce60fc21ce
4
- data.tar.gz: d289a2371c8cf2e60188ee6c0364640297116629c15a825b24048914b7470bc4
3
+ metadata.gz: 6f6ecaf21c3afca2e777913291a4e8a15d32cbd7d08f7e3228076fe408e84bbf
4
+ data.tar.gz: dc74d88932d6671d5928677c32fe71837c7c638cbbed3fc6bc7e7330b71dcc23
5
5
  SHA512:
6
- metadata.gz: 6581d6cc73e910bbce33bb6024eda12971a0757a8d53ffa79b7c2fee983c19007821250af2a717217f6213b0a8a7b34285731988fba77f67b66496a03342e035
7
- data.tar.gz: 8be3f83e953ea70aa80da335f8f2b4dbb7bd23bdb463b1abf3d6625e16f73558ff485112a958ffa737c10febb115c7de7538c8994b420fdd56525052e22c440b
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 = {} # rubocop:disable Style/MutableConstant
333
+ NUMBER_TO_CHARSET = {}
334
334
  # @private
335
- COLLATION_TO_CHARSET = {} # rubocop:disable Style/MutableConstant
335
+ COLLATION_TO_CHARSET = {}
336
336
  # @private
337
- CHARSET_DEFAULT = {} # rubocop:disable Style/MutableConstant
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 = {} # rubocop:disable Style/MutableConstant
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 = {} # rubocop:disable Style/MutableConstant
915
+ ERROR_MAP = {}
916
916
 
917
917
  CR_ERROR_FIRST = 2000
918
918
  CR_UNKNOWN_ERROR = 2000
@@ -119,6 +119,7 @@ class Mysql
119
119
  return type, val
120
120
  end
121
121
 
122
+ attr_reader :socket
122
123
  attr_reader :server_info
123
124
  attr_reader :server_version
124
125
  attr_reader :thread_id
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.0' # Version number of this library
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.0
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: 2024-12-23 00:00:00.000000000 Z
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: 3.6.0.dev
55
+ rubygems_version: 4.0.2
56
56
  specification_version: 4
57
57
  summary: MySQL connector
58
58
  test_files: []