mysql2 0.3.21-x86-mingw32 → 0.4.0-x86-mingw32
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/README.md +28 -6
- data/examples/threaded.rb +4 -6
- data/ext/mysql2/client.c +54 -46
- data/ext/mysql2/client.h +21 -0
- data/ext/mysql2/extconf.rb +20 -23
- data/ext/mysql2/mysql2_ext.c +1 -0
- data/ext/mysql2/mysql2_ext.h +1 -0
- data/ext/mysql2/mysql_enc_name_to_ruby.h +6 -6
- data/ext/mysql2/result.c +473 -94
- data/ext/mysql2/result.h +8 -1
- data/ext/mysql2/statement.c +454 -0
- data/ext/mysql2/statement.h +22 -0
- data/lib/mysql2.rb +2 -18
- data/lib/mysql2/1.8/mysql2.so +0 -0
- data/lib/mysql2/1.9/mysql2.so +0 -0
- data/lib/mysql2/2.0/mysql2.so +0 -0
- data/lib/mysql2/2.1/mysql2.so +0 -0
- data/lib/mysql2/2.2/mysql2.so +0 -0
- data/lib/mysql2/client.rb +9 -2
- data/lib/mysql2/error.rb +8 -20
- data/lib/mysql2/field.rb +4 -0
- data/lib/mysql2/statement.rb +5 -0
- data/lib/mysql2/version.rb +1 -1
- data/spec/em/em_spec.rb +13 -13
- data/spec/mysql2/client_spec.rb +284 -277
- data/spec/mysql2/error_spec.rb +37 -36
- data/spec/mysql2/result_spec.rb +184 -193
- data/spec/mysql2/statement_spec.rb +598 -0
- data/spec/spec_helper.rb +7 -0
- metadata +15 -48
- data/lib/mysql2/2.3/mysql2.so +0 -0
data/spec/spec_helper.rb
CHANGED
@@ -7,13 +7,20 @@ require 'yaml'
|
|
7
7
|
DatabaseCredentials = YAML.load_file('spec/configuration.yml')
|
8
8
|
|
9
9
|
RSpec.configure do |config|
|
10
|
+
config.disable_monkey_patching!
|
11
|
+
|
10
12
|
def with_internal_encoding(encoding)
|
11
13
|
old_enc = Encoding.default_internal
|
14
|
+
old_verbose = $VERBOSE
|
15
|
+
$VERBOSE = nil
|
12
16
|
Encoding.default_internal = encoding
|
17
|
+
$VERBOSE = old_verbose
|
13
18
|
|
14
19
|
yield
|
15
20
|
ensure
|
21
|
+
$VERBOSE = nil
|
16
22
|
Encoding.default_internal = old_enc
|
23
|
+
$VERBOSE = old_verbose
|
17
24
|
end
|
18
25
|
|
19
26
|
config.before :each do
|
metadata
CHANGED
@@ -1,63 +1,25 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mysql2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: x86-mingw32
|
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: 2015-09-08 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
|
extra_rdoc_files: []
|
60
21
|
files:
|
22
|
+
- CHANGELOG.md
|
61
23
|
- LICENSE
|
62
24
|
- README.md
|
63
25
|
- examples/eventmachine.rb
|
@@ -73,6 +35,8 @@ files:
|
|
73
35
|
- ext/mysql2/mysql_enc_to_ruby.h
|
74
36
|
- ext/mysql2/result.c
|
75
37
|
- ext/mysql2/result.h
|
38
|
+
- ext/mysql2/statement.c
|
39
|
+
- ext/mysql2/statement.h
|
76
40
|
- ext/mysql2/wait_for_single_fd.h
|
77
41
|
- lib/mysql2.rb
|
78
42
|
- lib/mysql2/1.8/mysql2.so
|
@@ -80,13 +44,14 @@ files:
|
|
80
44
|
- lib/mysql2/2.0/mysql2.so
|
81
45
|
- lib/mysql2/2.1/mysql2.so
|
82
46
|
- lib/mysql2/2.2/mysql2.so
|
83
|
-
- lib/mysql2/2.3/mysql2.so
|
84
47
|
- lib/mysql2/client.rb
|
85
48
|
- lib/mysql2/console.rb
|
86
49
|
- lib/mysql2/em.rb
|
87
50
|
- lib/mysql2/error.rb
|
51
|
+
- lib/mysql2/field.rb
|
88
52
|
- lib/mysql2/mysql2.rb
|
89
53
|
- lib/mysql2/result.rb
|
54
|
+
- lib/mysql2/statement.rb
|
90
55
|
- lib/mysql2/version.rb
|
91
56
|
- spec/configuration.yml.example
|
92
57
|
- spec/em/em_spec.rb
|
@@ -94,6 +59,7 @@ files:
|
|
94
59
|
- spec/mysql2/client_spec.rb
|
95
60
|
- spec/mysql2/error_spec.rb
|
96
61
|
- spec/mysql2/result_spec.rb
|
62
|
+
- spec/mysql2/statement_spec.rb
|
97
63
|
- spec/rcov.opts
|
98
64
|
- spec/spec_helper.rb
|
99
65
|
- spec/test_data
|
@@ -137,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
103
|
version: '0'
|
138
104
|
requirements: []
|
139
105
|
rubyforge_project:
|
140
|
-
rubygems_version: 2.
|
106
|
+
rubygems_version: 2.4.8
|
141
107
|
signing_key:
|
142
108
|
specification_version: 4
|
143
109
|
summary: A simple, fast Mysql library for Ruby, binding to libmysql
|
@@ -150,6 +116,7 @@ test_files:
|
|
150
116
|
- spec/mysql2/client_spec.rb
|
151
117
|
- spec/mysql2/error_spec.rb
|
152
118
|
- spec/mysql2/result_spec.rb
|
119
|
+
- spec/mysql2/statement_spec.rb
|
153
120
|
- spec/rcov.opts
|
154
121
|
- spec/spec_helper.rb
|
155
122
|
- spec/test_data
|
data/lib/mysql2/2.3/mysql2.so
DELETED
Binary file
|