mysql2 0.3.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +1 -151
  3. data/LICENSE +21 -0
  4. data/README.md +634 -0
  5. data/examples/eventmachine.rb +1 -3
  6. data/examples/threaded.rb +5 -9
  7. data/ext/mysql2/client.c +1154 -342
  8. data/ext/mysql2/client.h +20 -33
  9. data/ext/mysql2/extconf.rb +229 -37
  10. data/ext/mysql2/infile.c +122 -0
  11. data/ext/mysql2/infile.h +1 -0
  12. data/ext/mysql2/mysql2_ext.c +3 -1
  13. data/ext/mysql2/mysql2_ext.h +18 -16
  14. data/ext/mysql2/mysql_enc_name_to_ruby.h +168 -0
  15. data/ext/mysql2/mysql_enc_to_ruby.h +259 -0
  16. data/ext/mysql2/result.c +708 -191
  17. data/ext/mysql2/result.h +15 -6
  18. data/ext/mysql2/statement.c +602 -0
  19. data/ext/mysql2/statement.h +17 -0
  20. data/ext/mysql2/wait_for_single_fd.h +37 -0
  21. data/lib/mysql2.rb +69 -7
  22. data/lib/mysql2/client.rb +126 -211
  23. data/lib/mysql2/console.rb +5 -0
  24. data/lib/mysql2/em.rb +24 -8
  25. data/lib/mysql2/error.rb +93 -8
  26. data/lib/mysql2/field.rb +3 -0
  27. data/lib/mysql2/result.rb +2 -0
  28. data/lib/mysql2/statement.rb +11 -0
  29. data/lib/mysql2/version.rb +2 -2
  30. data/spec/configuration.yml.example +11 -0
  31. data/spec/em/em_spec.rb +101 -15
  32. data/spec/my.cnf.example +9 -0
  33. data/spec/mysql2/client_spec.rb +874 -232
  34. data/spec/mysql2/error_spec.rb +55 -46
  35. data/spec/mysql2/result_spec.rb +306 -154
  36. data/spec/mysql2/statement_spec.rb +712 -0
  37. data/spec/spec_helper.rb +103 -57
  38. data/spec/ssl/ca-cert.pem +17 -0
  39. data/spec/ssl/ca-key.pem +27 -0
  40. data/spec/ssl/ca.cnf +22 -0
  41. data/spec/ssl/cert.cnf +22 -0
  42. data/spec/ssl/client-cert.pem +17 -0
  43. data/spec/ssl/client-key.pem +27 -0
  44. data/spec/ssl/client-req.pem +15 -0
  45. data/spec/ssl/gen_certs.sh +48 -0
  46. data/spec/ssl/pkcs8-client-key.pem +28 -0
  47. data/spec/ssl/pkcs8-server-key.pem +28 -0
  48. data/spec/ssl/server-cert.pem +17 -0
  49. data/spec/ssl/server-key.pem +27 -0
  50. data/spec/ssl/server-req.pem +15 -0
  51. data/spec/test_data +1 -0
  52. data/support/5072E1F5.asc +432 -0
  53. data/support/libmysql.def +219 -0
  54. data/support/mysql_enc_to_ruby.rb +81 -0
  55. data/support/ruby_enc_to_mysql.rb +61 -0
  56. metadata +82 -188
  57. data/.gitignore +0 -12
  58. data/.rspec +0 -2
  59. data/.rvmrc +0 -1
  60. data/Gemfile +0 -3
  61. data/MIT-LICENSE +0 -20
  62. data/README.rdoc +0 -257
  63. data/Rakefile +0 -5
  64. data/benchmark/active_record.rb +0 -51
  65. data/benchmark/active_record_threaded.rb +0 -42
  66. data/benchmark/allocations.rb +0 -33
  67. data/benchmark/escape.rb +0 -36
  68. data/benchmark/query_with_mysql_casting.rb +0 -80
  69. data/benchmark/query_without_mysql_casting.rb +0 -47
  70. data/benchmark/sequel.rb +0 -37
  71. data/benchmark/setup_db.rb +0 -119
  72. data/benchmark/threaded.rb +0 -44
  73. data/lib/active_record/connection_adapters/em_mysql2_adapter.rb +0 -64
  74. data/lib/active_record/fiber_patches.rb +0 -104
  75. data/lib/mysql2/em_fiber.rb +0 -31
  76. data/mysql2.gemspec +0 -32
  77. data/spec/em/em_fiber_spec.rb +0 -22
  78. data/tasks/benchmarks.rake +0 -20
  79. data/tasks/compile.rake +0 -71
  80. data/tasks/rspec.rake +0 -16
  81. data/tasks/vendor_mysql.rake +0 -40
@@ -0,0 +1,219 @@
1
+ ; MySQL's Connector/C ships with a libmysql.dll main library and libmysql.lib
2
+ ; interface library. However, the interface library is not linkable by MinGW.
3
+ ;
4
+ ; At compile time, we generate a libmysql.a interface library with dlltool.exe.
5
+ ;
6
+ ; This def file can be re-generated using the reimp.exe or gendef.exe tools.
7
+ ;
8
+ LIBRARY libmysql.dll
9
+ EXPORTS
10
+ mysql_affected_rows
11
+ mysql_affected_rows@4
12
+ mysql_change_user
13
+ mysql_change_user@16
14
+ mysql_character_set_name
15
+ mysql_character_set_name@4
16
+ mysql_close
17
+ mysql_close@4
18
+ mysql_data_seek
19
+ mysql_data_seek@12
20
+ mysql_debug
21
+ mysql_debug@4
22
+ mysql_dump_debug_info
23
+ mysql_dump_debug_info@4
24
+ mysql_eof
25
+ mysql_eof@4
26
+ mysql_errno
27
+ mysql_errno@4
28
+ mysql_error
29
+ mysql_error@4
30
+ mysql_escape_string
31
+ mysql_escape_string@12
32
+ mysql_fetch_field
33
+ mysql_fetch_field@4
34
+ mysql_fetch_field_direct
35
+ mysql_fetch_field_direct@8
36
+ mysql_fetch_fields
37
+ mysql_fetch_fields@4
38
+ mysql_fetch_lengths
39
+ mysql_fetch_lengths@4
40
+ mysql_fetch_row
41
+ mysql_fetch_row@4
42
+ mysql_field_count
43
+ mysql_field_count@4
44
+ mysql_field_seek
45
+ mysql_field_seek@8
46
+ mysql_field_tell
47
+ mysql_field_tell@4
48
+ mysql_free_result
49
+ mysql_free_result@4
50
+ mysql_get_client_info
51
+ mysql_get_client_info@0
52
+ mysql_get_client_version
53
+ mysql_get_client_version@0
54
+ mysql_get_host_info
55
+ mysql_get_host_info@4
56
+ mysql_get_option
57
+ mysql_get_option@12
58
+ mysql_get_proto_info
59
+ mysql_get_proto_info@4
60
+ mysql_get_server_info
61
+ mysql_get_server_info@4
62
+ mysql_get_server_version
63
+ mysql_get_server_version@4
64
+ mysql_get_ssl_cipher
65
+ mysql_get_ssl_cipher@4
66
+ mysql_hex_string
67
+ mysql_hex_string@12
68
+ mysql_info
69
+ mysql_info@4
70
+ mysql_init
71
+ mysql_init@4
72
+ mysql_insert_id
73
+ mysql_insert_id@4
74
+ mysql_kill
75
+ mysql_kill@8
76
+ mysql_library_end
77
+ mysql_library_end@0
78
+ mysql_library_init
79
+ mysql_library_init@12
80
+ mysql_list_dbs
81
+ mysql_list_dbs@8
82
+ mysql_list_fields
83
+ mysql_list_fields@12
84
+ mysql_list_processes
85
+ mysql_list_processes@4
86
+ mysql_list_tables
87
+ mysql_list_tables@8
88
+ mysql_more_results
89
+ mysql_more_results@4
90
+ mysql_next_result
91
+ mysql_next_result@4
92
+ mysql_num_fields
93
+ mysql_num_fields@4
94
+ mysql_num_rows
95
+ mysql_num_rows@4
96
+ mysql_options
97
+ mysql_options@12
98
+ mysql_options4
99
+ mysql_options4@16
100
+ mysql_ping
101
+ mysql_ping@4
102
+ mysql_query
103
+ mysql_query@8
104
+ mysql_read_query_result
105
+ mysql_read_query_result@4
106
+ mysql_real_connect
107
+ mysql_real_connect@32
108
+ mysql_real_escape_string
109
+ mysql_real_escape_string@16
110
+ mysql_real_query
111
+ mysql_real_query@12
112
+ mysql_refresh
113
+ mysql_refresh@8
114
+ mysql_reset_connection
115
+ mysql_reset_connection@4
116
+ mysql_rollback
117
+ mysql_rollback@4
118
+ mysql_row_seek
119
+ mysql_row_seek@8
120
+ mysql_row_tell
121
+ mysql_row_tell@4
122
+ mysql_select_db
123
+ mysql_select_db@8
124
+ mysql_send_query
125
+ mysql_send_query@12
126
+ mysql_server_end
127
+ mysql_server_end@0
128
+ mysql_server_init
129
+ mysql_server_init@12
130
+ mysql_session_track_get_first
131
+ mysql_session_track_get_first@16
132
+ mysql_session_track_get_next
133
+ mysql_session_track_get_next@16
134
+ mysql_set_character_set
135
+ mysql_set_character_set@8
136
+ mysql_set_local_infile_default
137
+ mysql_set_local_infile_default@4
138
+ mysql_set_local_infile_handler
139
+ mysql_set_local_infile_handler@24
140
+ mysql_set_server_option
141
+ mysql_set_server_option@8
142
+ mysql_shutdown
143
+ mysql_shutdown@8
144
+ mysql_sqlstate
145
+ mysql_sqlstate@4
146
+ mysql_ssl_set
147
+ mysql_ssl_set@24
148
+ mysql_stat
149
+ mysql_stat@4
150
+ mysql_stmt_affected_rows
151
+ mysql_stmt_affected_rows@4
152
+ mysql_stmt_attr_get
153
+ mysql_stmt_attr_get@12
154
+ mysql_stmt_attr_set
155
+ mysql_stmt_attr_set@12
156
+ mysql_stmt_bind_param
157
+ mysql_stmt_bind_param@8
158
+ mysql_stmt_bind_result
159
+ mysql_stmt_bind_result@8
160
+ mysql_stmt_close
161
+ mysql_stmt_close@4
162
+ mysql_stmt_data_seek
163
+ mysql_stmt_data_seek@12
164
+ mysql_stmt_errno
165
+ mysql_stmt_errno@4
166
+ mysql_stmt_error
167
+ mysql_stmt_error@4
168
+ mysql_stmt_execute
169
+ mysql_stmt_execute@4
170
+ mysql_stmt_fetch
171
+ mysql_stmt_fetch@4
172
+ mysql_stmt_fetch_column
173
+ mysql_stmt_fetch_column@16
174
+ mysql_stmt_field_count
175
+ mysql_stmt_field_count@4
176
+ mysql_stmt_free_result
177
+ mysql_stmt_free_result@4
178
+ mysql_stmt_init
179
+ mysql_stmt_init@4
180
+ mysql_stmt_insert_id
181
+ mysql_stmt_insert_id@4
182
+ mysql_stmt_next_result
183
+ mysql_stmt_next_result@4
184
+ mysql_stmt_num_rows
185
+ mysql_stmt_num_rows@4
186
+ mysql_stmt_param_count
187
+ mysql_stmt_param_count@4
188
+ mysql_stmt_param_metadata
189
+ mysql_stmt_param_metadata@4
190
+ mysql_stmt_prepare
191
+ mysql_stmt_prepare@12
192
+ mysql_stmt_reset
193
+ mysql_stmt_reset@4
194
+ mysql_stmt_result_metadata
195
+ mysql_stmt_result_metadata@4
196
+ mysql_stmt_row_seek
197
+ mysql_stmt_row_seek@8
198
+ mysql_stmt_row_tell
199
+ mysql_stmt_row_tell@4
200
+ mysql_stmt_send_long_data
201
+ mysql_stmt_send_long_data@16
202
+ mysql_stmt_sqlstate
203
+ mysql_stmt_sqlstate@4
204
+ mysql_stmt_store_result
205
+ mysql_stmt_store_result@4
206
+ mysql_store_result
207
+ mysql_store_result@4
208
+ mysql_thread_end
209
+ mysql_thread_end@0
210
+ mysql_thread_id
211
+ mysql_thread_id@4
212
+ mysql_thread_init
213
+ mysql_thread_init@0
214
+ mysql_thread_safe
215
+ mysql_thread_safe@0
216
+ mysql_use_result
217
+ mysql_use_result@4
218
+ mysql_warning_count
219
+ mysql_warning_count@4
@@ -0,0 +1,81 @@
1
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
+ require 'mysql2'
3
+
4
+ user, pass, host, port = ENV.values_at('user', 'pass', 'host', 'port')
5
+
6
+ mysql_to_rb = {
7
+ "big5" => "Big5",
8
+ "dec8" => "NULL",
9
+ "cp850" => "CP850",
10
+ "hp8" => "NULL",
11
+ "koi8r" => "KOI8-R",
12
+ "latin1" => "ISO-8859-1",
13
+ "latin2" => "ISO-8859-2",
14
+ "swe7" => "NULL",
15
+ "ascii" => "US-ASCII",
16
+ "ujis" => "eucJP-ms",
17
+ "sjis" => "Shift_JIS",
18
+ "hebrew" => "ISO-8859-8",
19
+ "tis620" => "TIS-620",
20
+ "euckr" => "EUC-KR",
21
+ "koi8u" => "KOI8-R",
22
+ "gb2312" => "GB2312",
23
+ "greek" => "ISO-8859-7",
24
+ "cp1250" => "Windows-1250",
25
+ "gbk" => "GBK",
26
+ "latin5" => "ISO-8859-9",
27
+ "armscii8" => "NULL",
28
+ "utf8" => "UTF-8",
29
+ "ucs2" => "UTF-16BE",
30
+ "cp866" => "IBM866",
31
+ "keybcs2" => "NULL",
32
+ "macce" => "macCentEuro",
33
+ "macroman" => "macRoman",
34
+ "cp852" => "CP852",
35
+ "latin7" => "ISO-8859-13",
36
+ "utf8mb4" => "UTF-8",
37
+ "cp1251" => "Windows-1251",
38
+ "utf16" => "UTF-16",
39
+ "cp1256" => "Windows-1256",
40
+ "cp1257" => "Windows-1257",
41
+ "utf32" => "UTF-32",
42
+ "binary" => "ASCII-8BIT",
43
+ "geostd8" => "NULL",
44
+ "cp932" => "Windows-31J",
45
+ "eucjpms" => "eucJP-ms",
46
+ }
47
+
48
+ client = Mysql2::Client.new(username: user, password: pass, host: host, port: port.to_i)
49
+ collations = client.query "SHOW COLLATION", as: :array
50
+ encodings = Array.new(collations.to_a.last[2].to_i)
51
+ encodings_with_nil = Array.new(encodings.size)
52
+
53
+ collations.each do |collation|
54
+ mysql_col_idx = collation[2].to_i
55
+ rb_enc = mysql_to_rb[collation[1]]
56
+ encodings[mysql_col_idx - 1] = [mysql_col_idx, rb_enc]
57
+ end
58
+
59
+ encodings.each_with_index do |encoding, idx|
60
+ encodings_with_nil[idx] = (encoding || [idx, "NULL"])
61
+ end
62
+
63
+ encodings_with_nil.sort! do |a, b|
64
+ a[0] <=> b[0]
65
+ end
66
+
67
+ encodings_with_nil = encodings_with_nil.map do |encoding|
68
+ name = if encoding.nil? || encoding[1] == 'NULL'
69
+ 'NULL'
70
+ else
71
+ "\"#{encoding[1]}\""
72
+ end
73
+
74
+ " #{name}"
75
+ end
76
+
77
+ # start printing output
78
+
79
+ puts "static const char *mysql2_mysql_enc_to_rb[] = {"
80
+ puts encodings_with_nil.join(",\n")
81
+ puts "};"
@@ -0,0 +1,61 @@
1
+ mysql_to_rb = {
2
+ "big5" => "Big5",
3
+ "dec8" => nil,
4
+ "cp850" => "CP850",
5
+ "hp8" => nil,
6
+ "koi8r" => "KOI8-R",
7
+ "latin1" => "ISO-8859-1",
8
+ "latin2" => "ISO-8859-2",
9
+ "swe7" => nil,
10
+ "ascii" => "US-ASCII",
11
+ "ujis" => "eucJP-ms",
12
+ "sjis" => "Shift_JIS",
13
+ "hebrew" => "ISO-8859-8",
14
+ "tis620" => "TIS-620",
15
+ "euckr" => "EUC-KR",
16
+ "koi8u" => "KOI8-R",
17
+ "gb2312" => "GB2312",
18
+ "greek" => "ISO-8859-7",
19
+ "cp1250" => "Windows-1250",
20
+ "gbk" => "GBK",
21
+ "latin5" => "ISO-8859-9",
22
+ "armscii8" => nil,
23
+ "utf8" => "UTF-8",
24
+ "ucs2" => "UTF-16BE",
25
+ "cp866" => "IBM866",
26
+ "keybcs2" => nil,
27
+ "macce" => "macCentEuro",
28
+ "macroman" => "macRoman",
29
+ "cp852" => "CP852",
30
+ "latin7" => "ISO-8859-13",
31
+ "utf8mb4" => "UTF-8",
32
+ "cp1251" => "Windows-1251",
33
+ "utf16" => "UTF-16",
34
+ "cp1256" => "Windows-1256",
35
+ "cp1257" => "Windows-1257",
36
+ "utf32" => "UTF-32",
37
+ "binary" => "ASCII-8BIT",
38
+ "geostd8" => nil,
39
+ "cp932" => "Windows-31J",
40
+ "eucjpms" => "eucJP-ms",
41
+ }
42
+
43
+ puts <<-HEADER
44
+ %readonly-tables
45
+ %enum
46
+ %define lookup-function-name mysql2_mysql_enc_name_to_rb
47
+ %define hash-function-name mysql2_mysql_enc_name_to_rb_hash
48
+ %struct-type
49
+ struct mysql2_mysql_enc_name_to_rb_map { const char *name; const char *rb_name; }
50
+ %%
51
+ HEADER
52
+
53
+ mysql_to_rb.each do |mysql, ruby|
54
+ name = if ruby.nil?
55
+ "NULL"
56
+ else
57
+ "\"#{ruby}\""
58
+ end
59
+
60
+ puts "#{mysql}, #{name}"
61
+ end
metadata CHANGED
@@ -1,235 +1,129 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: mysql2
3
- version: !ruby/object:Gem::Version
4
- hash: 17
5
- prerelease:
6
- segments:
7
- - 0
8
- - 3
9
- - 1
10
- version: 0.3.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.2
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Brian Lopez
8
+ - Aaron Stone
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-04-27 00:00:00 -07:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: eventmachine
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
33
- type: :development
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: rake-compiler
37
- prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ~>
42
- - !ruby/object:Gem::Version
43
- hash: 13
44
- segments:
45
- - 0
46
- - 7
47
- - 7
48
- version: 0.7.7
49
- type: :development
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
52
- name: rspec
53
- prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
55
- none: false
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- hash: 3
60
- segments:
61
- - 0
62
- version: "0"
63
- type: :development
64
- version_requirements: *id003
65
- - !ruby/object:Gem::Dependency
66
- name: activerecord
67
- prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
69
- none: false
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- hash: 3
74
- segments:
75
- - 0
76
- version: "0"
77
- type: :development
78
- version_requirements: *id004
79
- - !ruby/object:Gem::Dependency
80
- name: mysql
81
- prerelease: false
82
- requirement: &id005 !ruby/object:Gem::Requirement
83
- none: false
84
- requirements:
85
- - - ">="
86
- - !ruby/object:Gem::Version
87
- hash: 3
88
- segments:
89
- - 0
90
- version: "0"
91
- type: :development
92
- version_requirements: *id005
93
- - !ruby/object:Gem::Dependency
94
- name: do_mysql
95
- prerelease: false
96
- requirement: &id006 !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ">="
100
- - !ruby/object:Gem::Version
101
- hash: 3
102
- segments:
103
- - 0
104
- version: "0"
105
- type: :development
106
- version_requirements: *id006
107
- - !ruby/object:Gem::Dependency
108
- name: sequel
109
- prerelease: false
110
- requirement: &id007 !ruby/object:Gem::Requirement
111
- none: false
112
- requirements:
113
- - - ">="
114
- - !ruby/object:Gem::Version
115
- hash: 3
116
- segments:
117
- - 0
118
- version: "0"
119
- type: :development
120
- version_requirements: *id007
121
- - !ruby/object:Gem::Dependency
122
- name: faker
123
- prerelease: false
124
- requirement: &id008 !ruby/object:Gem::Requirement
125
- none: false
126
- requirements:
127
- - - ">="
128
- - !ruby/object:Gem::Version
129
- hash: 3
130
- segments:
131
- - 0
132
- version: "0"
133
- type: :development
134
- version_requirements: *id008
12
+ date: 2018-07-04 00:00:00.000000000 Z
13
+ dependencies: []
135
14
  description:
136
- email: seniorlopez@gmail.com
15
+ email:
16
+ - seniorlopez@gmail.com
17
+ - aaron@serendipity.cx
137
18
  executables: []
138
-
139
- extensions:
19
+ extensions:
140
20
  - ext/mysql2/extconf.rb
141
- extra_rdoc_files:
142
- - README.rdoc
143
- files:
144
- - .gitignore
145
- - .rspec
146
- - .rvmrc
21
+ extra_rdoc_files: []
22
+ files:
147
23
  - CHANGELOG.md
148
- - Gemfile
149
- - MIT-LICENSE
150
- - README.rdoc
151
- - Rakefile
152
- - benchmark/active_record.rb
153
- - benchmark/active_record_threaded.rb
154
- - benchmark/allocations.rb
155
- - benchmark/escape.rb
156
- - benchmark/query_with_mysql_casting.rb
157
- - benchmark/query_without_mysql_casting.rb
158
- - benchmark/sequel.rb
159
- - benchmark/setup_db.rb
160
- - benchmark/threaded.rb
24
+ - LICENSE
25
+ - README.md
161
26
  - examples/eventmachine.rb
162
27
  - examples/threaded.rb
163
28
  - ext/mysql2/client.c
164
29
  - ext/mysql2/client.h
165
30
  - ext/mysql2/extconf.rb
31
+ - ext/mysql2/infile.c
32
+ - ext/mysql2/infile.h
166
33
  - ext/mysql2/mysql2_ext.c
167
34
  - ext/mysql2/mysql2_ext.h
35
+ - ext/mysql2/mysql_enc_name_to_ruby.h
36
+ - ext/mysql2/mysql_enc_to_ruby.h
168
37
  - ext/mysql2/result.c
169
38
  - ext/mysql2/result.h
170
- - lib/active_record/connection_adapters/em_mysql2_adapter.rb
171
- - lib/active_record/fiber_patches.rb
39
+ - ext/mysql2/statement.c
40
+ - ext/mysql2/statement.h
41
+ - ext/mysql2/wait_for_single_fd.h
172
42
  - lib/mysql2.rb
173
43
  - lib/mysql2/client.rb
44
+ - lib/mysql2/console.rb
174
45
  - lib/mysql2/em.rb
175
- - lib/mysql2/em_fiber.rb
176
46
  - lib/mysql2/error.rb
47
+ - lib/mysql2/field.rb
177
48
  - lib/mysql2/result.rb
49
+ - lib/mysql2/statement.rb
178
50
  - lib/mysql2/version.rb
179
- - mysql2.gemspec
180
- - spec/em/em_fiber_spec.rb
51
+ - spec/configuration.yml.example
181
52
  - spec/em/em_spec.rb
53
+ - spec/my.cnf.example
182
54
  - spec/mysql2/client_spec.rb
183
55
  - spec/mysql2/error_spec.rb
184
56
  - spec/mysql2/result_spec.rb
57
+ - spec/mysql2/statement_spec.rb
185
58
  - spec/rcov.opts
186
59
  - spec/spec_helper.rb
187
- - tasks/benchmarks.rake
188
- - tasks/compile.rake
189
- - tasks/rspec.rake
190
- - tasks/vendor_mysql.rake
191
- has_rdoc: true
192
- homepage: http://github.com/brianmario/mysql2
193
- licenses: []
194
-
60
+ - spec/ssl/ca-cert.pem
61
+ - spec/ssl/ca-key.pem
62
+ - spec/ssl/ca.cnf
63
+ - spec/ssl/cert.cnf
64
+ - spec/ssl/client-cert.pem
65
+ - spec/ssl/client-key.pem
66
+ - spec/ssl/client-req.pem
67
+ - spec/ssl/gen_certs.sh
68
+ - spec/ssl/pkcs8-client-key.pem
69
+ - spec/ssl/pkcs8-server-key.pem
70
+ - spec/ssl/server-cert.pem
71
+ - spec/ssl/server-key.pem
72
+ - spec/ssl/server-req.pem
73
+ - spec/test_data
74
+ - support/5072E1F5.asc
75
+ - support/libmysql.def
76
+ - support/mysql_enc_to_ruby.rb
77
+ - support/ruby_enc_to_mysql.rb
78
+ homepage: https://github.com/brianmario/mysql2
79
+ licenses:
80
+ - MIT
81
+ metadata:
82
+ msys2_mingw_dependencies: libmariadbclient
195
83
  post_install_message:
196
- rdoc_options:
197
- - --charset=UTF-8
198
- require_paths:
84
+ rdoc_options:
85
+ - "--charset=UTF-8"
86
+ require_paths:
199
87
  - lib
200
- - ext
201
- required_ruby_version: !ruby/object:Gem::Requirement
202
- none: false
203
- requirements:
88
+ required_ruby_version: !ruby/object:Gem::Requirement
89
+ requirements:
204
90
  - - ">="
205
- - !ruby/object:Gem::Version
206
- hash: 3
207
- segments:
208
- - 0
209
- version: "0"
210
- required_rubygems_version: !ruby/object:Gem::Requirement
211
- none: false
212
- requirements:
91
+ - !ruby/object:Gem::Version
92
+ version: 2.0.0
93
+ required_rubygems_version: !ruby/object:Gem::Requirement
94
+ requirements:
213
95
  - - ">="
214
- - !ruby/object:Gem::Version
215
- hash: 3
216
- segments:
217
- - 0
218
- version: "0"
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
219
98
  requirements: []
220
-
221
99
  rubyforge_project:
222
- rubygems_version: 1.6.2
100
+ rubygems_version: 2.5.2
223
101
  signing_key:
224
- specification_version: 3
102
+ specification_version: 4
225
103
  summary: A simple, fast Mysql library for Ruby, binding to libmysql
226
- test_files:
104
+ test_files:
227
105
  - examples/eventmachine.rb
228
106
  - examples/threaded.rb
229
- - spec/em/em_fiber_spec.rb
107
+ - spec/configuration.yml.example
230
108
  - spec/em/em_spec.rb
109
+ - spec/my.cnf.example
231
110
  - spec/mysql2/client_spec.rb
232
111
  - spec/mysql2/error_spec.rb
233
112
  - spec/mysql2/result_spec.rb
113
+ - spec/mysql2/statement_spec.rb
234
114
  - spec/rcov.opts
235
115
  - spec/spec_helper.rb
116
+ - spec/ssl/ca-cert.pem
117
+ - spec/ssl/ca-key.pem
118
+ - spec/ssl/ca.cnf
119
+ - spec/ssl/cert.cnf
120
+ - spec/ssl/client-cert.pem
121
+ - spec/ssl/client-key.pem
122
+ - spec/ssl/client-req.pem
123
+ - spec/ssl/gen_certs.sh
124
+ - spec/ssl/pkcs8-client-key.pem
125
+ - spec/ssl/pkcs8-server-key.pem
126
+ - spec/ssl/server-cert.pem
127
+ - spec/ssl/server-key.pem
128
+ - spec/ssl/server-req.pem
129
+ - spec/test_data