mysql2 0.3.18 → 0.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -0
- data/LICENSE +21 -0
- data/README.md +132 -55
- data/examples/eventmachine.rb +1 -1
- data/examples/threaded.rb +4 -6
- data/ext/mysql2/client.c +374 -197
- data/ext/mysql2/client.h +13 -3
- data/ext/mysql2/extconf.rb +119 -35
- data/ext/mysql2/infile.c +2 -2
- data/ext/mysql2/mysql2_ext.c +1 -0
- data/ext/mysql2/mysql2_ext.h +7 -6
- data/ext/mysql2/mysql_enc_name_to_ruby.h +2 -2
- data/ext/mysql2/mysql_enc_to_ruby.h +25 -22
- data/ext/mysql2/result.c +512 -138
- data/ext/mysql2/result.h +13 -6
- data/ext/mysql2/statement.c +595 -0
- data/ext/mysql2/statement.h +19 -0
- data/lib/mysql2/client.rb +85 -26
- data/lib/mysql2/console.rb +1 -1
- data/lib/mysql2/em.rb +5 -6
- data/lib/mysql2/error.rb +18 -27
- data/lib/mysql2/field.rb +3 -0
- data/lib/mysql2/statement.rb +17 -0
- data/lib/mysql2/version.rb +1 -1
- data/lib/mysql2.rb +38 -18
- data/spec/configuration.yml.example +0 -6
- data/spec/em/em_spec.rb +22 -21
- data/spec/mysql2/client_spec.rb +530 -388
- data/spec/mysql2/error_spec.rb +38 -39
- data/spec/mysql2/result_spec.rb +223 -214
- data/spec/mysql2/statement_spec.rb +763 -0
- data/spec/spec_helper.rb +80 -59
- data/spec/ssl/ca-cert.pem +17 -0
- data/spec/ssl/ca-key.pem +27 -0
- data/spec/ssl/ca.cnf +22 -0
- data/spec/ssl/cert.cnf +22 -0
- data/spec/ssl/client-cert.pem +17 -0
- data/spec/ssl/client-key.pem +27 -0
- data/spec/ssl/client-req.pem +15 -0
- data/spec/ssl/gen_certs.sh +48 -0
- data/spec/ssl/pkcs8-client-key.pem +28 -0
- data/spec/ssl/pkcs8-server-key.pem +28 -0
- data/spec/ssl/server-cert.pem +17 -0
- data/spec/ssl/server-key.pem +27 -0
- data/spec/ssl/server-req.pem +15 -0
- data/support/mysql_enc_to_ruby.rb +7 -8
- data/support/ruby_enc_to_mysql.rb +1 -1
- metadata +42 -47
metadata
CHANGED
@@ -1,64 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mysql2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Lopez
|
8
|
+
- Aaron Stone
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: rake-compiler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ~>
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 0.9.5
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ~>
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 0.9.5
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ~>
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.9.3
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ~>
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 0.9.3
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rspec
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ~>
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 2.8.0
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 2.8.0
|
12
|
+
date: 2017-08-11 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
55
14
|
description:
|
56
|
-
email:
|
15
|
+
email:
|
16
|
+
- seniorlopez@gmail.com
|
17
|
+
- aaron@serendipity.cx
|
57
18
|
executables: []
|
58
19
|
extensions:
|
59
20
|
- ext/mysql2/extconf.rb
|
60
21
|
extra_rdoc_files: []
|
61
22
|
files:
|
23
|
+
- CHANGELOG.md
|
24
|
+
- LICENSE
|
62
25
|
- README.md
|
63
26
|
- ext/mysql2/client.c
|
64
27
|
- ext/mysql2/client.h
|
@@ -71,13 +34,17 @@ files:
|
|
71
34
|
- ext/mysql2/mysql_enc_to_ruby.h
|
72
35
|
- ext/mysql2/result.c
|
73
36
|
- ext/mysql2/result.h
|
37
|
+
- ext/mysql2/statement.c
|
38
|
+
- ext/mysql2/statement.h
|
74
39
|
- ext/mysql2/wait_for_single_fd.h
|
75
40
|
- lib/mysql2.rb
|
76
41
|
- lib/mysql2/client.rb
|
77
42
|
- lib/mysql2/console.rb
|
78
43
|
- lib/mysql2/em.rb
|
79
44
|
- lib/mysql2/error.rb
|
45
|
+
- lib/mysql2/field.rb
|
80
46
|
- lib/mysql2/result.rb
|
47
|
+
- lib/mysql2/statement.rb
|
81
48
|
- lib/mysql2/version.rb
|
82
49
|
- support/libmysql.def
|
83
50
|
- support/mysql_enc_to_ruby.rb
|
@@ -90,8 +57,22 @@ files:
|
|
90
57
|
- spec/mysql2/client_spec.rb
|
91
58
|
- spec/mysql2/error_spec.rb
|
92
59
|
- spec/mysql2/result_spec.rb
|
60
|
+
- spec/mysql2/statement_spec.rb
|
93
61
|
- spec/rcov.opts
|
94
62
|
- spec/spec_helper.rb
|
63
|
+
- spec/ssl/ca-cert.pem
|
64
|
+
- spec/ssl/ca-key.pem
|
65
|
+
- spec/ssl/ca.cnf
|
66
|
+
- spec/ssl/cert.cnf
|
67
|
+
- spec/ssl/client-cert.pem
|
68
|
+
- spec/ssl/client-key.pem
|
69
|
+
- spec/ssl/client-req.pem
|
70
|
+
- spec/ssl/gen_certs.sh
|
71
|
+
- spec/ssl/pkcs8-client-key.pem
|
72
|
+
- spec/ssl/pkcs8-server-key.pem
|
73
|
+
- spec/ssl/server-cert.pem
|
74
|
+
- spec/ssl/server-key.pem
|
75
|
+
- spec/ssl/server-req.pem
|
95
76
|
- spec/test_data
|
96
77
|
homepage: http://github.com/brianmario/mysql2
|
97
78
|
licenses:
|
@@ -114,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
95
|
version: '0'
|
115
96
|
requirements: []
|
116
97
|
rubyforge_project:
|
117
|
-
rubygems_version: 2.0.14
|
98
|
+
rubygems_version: 2.0.14.1
|
118
99
|
signing_key:
|
119
100
|
specification_version: 4
|
120
101
|
summary: A simple, fast Mysql library for Ruby, binding to libmysql
|
@@ -127,6 +108,20 @@ test_files:
|
|
127
108
|
- spec/mysql2/client_spec.rb
|
128
109
|
- spec/mysql2/error_spec.rb
|
129
110
|
- spec/mysql2/result_spec.rb
|
111
|
+
- spec/mysql2/statement_spec.rb
|
130
112
|
- spec/rcov.opts
|
131
113
|
- spec/spec_helper.rb
|
114
|
+
- spec/ssl/ca-cert.pem
|
115
|
+
- spec/ssl/ca-key.pem
|
116
|
+
- spec/ssl/ca.cnf
|
117
|
+
- spec/ssl/cert.cnf
|
118
|
+
- spec/ssl/client-cert.pem
|
119
|
+
- spec/ssl/client-key.pem
|
120
|
+
- spec/ssl/client-req.pem
|
121
|
+
- spec/ssl/gen_certs.sh
|
122
|
+
- spec/ssl/pkcs8-client-key.pem
|
123
|
+
- spec/ssl/pkcs8-server-key.pem
|
124
|
+
- spec/ssl/server-cert.pem
|
125
|
+
- spec/ssl/server-key.pem
|
126
|
+
- spec/ssl/server-req.pem
|
132
127
|
- spec/test_data
|