mysql2 0.2.12 → 0.2.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.13 (August 16th, 2011)
4
+ * fix stupid bug around symbol encoding support (thanks coderrr!)
5
+
3
6
  ## 0.2.12 (August 16th, 2011)
4
7
  * ensure symbolized column names support encodings in 1.9
5
8
  * plugging sql vulnerability in mysql2 adapter
@@ -122,7 +122,7 @@ static VALUE rb_mysql_result_fetch_field(VALUE self, unsigned int idx, short int
122
122
  #ifdef HAVE_RUBY_ENCODING_H
123
123
  rb_enc_associate(colStr, rb_utf8_encoding());
124
124
  #endif
125
- rb_field = ID2SYM(colStr);
125
+ rb_field = ID2SYM(rb_to_id(colStr));
126
126
  } else {
127
127
  rb_field = rb_str_new(field->name, field->name_length);
128
128
  #ifdef HAVE_RUBY_ENCODING_H
@@ -1,3 +1,3 @@
1
1
  module Mysql2
2
- VERSION = "0.2.12"
2
+ VERSION = "0.2.13"
3
3
  end
metadata CHANGED
@@ -1,146 +1,112 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: mysql2
3
- version: !ruby/object:Gem::Version
4
- hash: 15
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.13
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 12
10
- version: 0.2.12
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Brian Lopez
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-08-16 00:00:00 -07:00
12
+ date: 2011-08-17 00:00:00.000000000 -07:00
19
13
  default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
22
16
  name: eventmachine
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &70274481462240 !ruby/object:Gem::Requirement
25
18
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
33
23
  type: :development
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: rake-compiler
37
24
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *70274481462240
26
+ - !ruby/object:Gem::Dependency
27
+ name: rake-compiler
28
+ requirement: &70274481461740 !ruby/object:Gem::Requirement
39
29
  none: false
40
- requirements:
30
+ requirements:
41
31
  - - ~>
42
- - !ruby/object:Gem::Version
43
- hash: 13
44
- segments:
45
- - 0
46
- - 7
47
- - 7
32
+ - !ruby/object:Gem::Version
48
33
  version: 0.7.7
49
34
  type: :development
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
52
- name: rspec
53
35
  prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
36
+ version_requirements: *70274481461740
37
+ - !ruby/object:Gem::Dependency
38
+ name: rspec
39
+ requirement: &70274481461320 !ruby/object:Gem::Requirement
55
40
  none: false
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- hash: 3
60
- segments:
61
- - 0
62
- version: "0"
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
63
45
  type: :development
64
- version_requirements: *id003
65
- - !ruby/object:Gem::Dependency
66
- name: activerecord
67
46
  prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
47
+ version_requirements: *70274481461320
48
+ - !ruby/object:Gem::Dependency
49
+ name: activerecord
50
+ requirement: &70274481460860 !ruby/object:Gem::Requirement
69
51
  none: false
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- hash: 3
74
- segments:
75
- - 0
76
- version: "0"
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
77
56
  type: :development
78
- version_requirements: *id004
79
- - !ruby/object:Gem::Dependency
80
- name: mysql
81
57
  prerelease: false
82
- requirement: &id005 !ruby/object:Gem::Requirement
58
+ version_requirements: *70274481460860
59
+ - !ruby/object:Gem::Dependency
60
+ name: mysql
61
+ requirement: &70274481460440 !ruby/object:Gem::Requirement
83
62
  none: false
84
- requirements:
85
- - - ">="
86
- - !ruby/object:Gem::Version
87
- hash: 3
88
- segments:
89
- - 0
90
- version: "0"
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
91
67
  type: :development
92
- version_requirements: *id005
93
- - !ruby/object:Gem::Dependency
94
- name: do_mysql
95
68
  prerelease: false
96
- requirement: &id006 !ruby/object:Gem::Requirement
69
+ version_requirements: *70274481460440
70
+ - !ruby/object:Gem::Dependency
71
+ name: do_mysql
72
+ requirement: &70274481460020 !ruby/object:Gem::Requirement
97
73
  none: false
98
- requirements:
99
- - - ">="
100
- - !ruby/object:Gem::Version
101
- hash: 3
102
- segments:
103
- - 0
104
- version: "0"
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
105
78
  type: :development
106
- version_requirements: *id006
107
- - !ruby/object:Gem::Dependency
108
- name: sequel
109
79
  prerelease: false
110
- requirement: &id007 !ruby/object:Gem::Requirement
80
+ version_requirements: *70274481460020
81
+ - !ruby/object:Gem::Dependency
82
+ name: sequel
83
+ requirement: &70274481459600 !ruby/object:Gem::Requirement
111
84
  none: false
112
- requirements:
113
- - - ">="
114
- - !ruby/object:Gem::Version
115
- hash: 3
116
- segments:
117
- - 0
118
- version: "0"
85
+ requirements:
86
+ - - ! '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
119
89
  type: :development
120
- version_requirements: *id007
121
- - !ruby/object:Gem::Dependency
122
- name: faker
123
90
  prerelease: false
124
- requirement: &id008 !ruby/object:Gem::Requirement
91
+ version_requirements: *70274481459600
92
+ - !ruby/object:Gem::Dependency
93
+ name: faker
94
+ requirement: &70274465320920 !ruby/object:Gem::Requirement
125
95
  none: false
126
- requirements:
127
- - - ">="
128
- - !ruby/object:Gem::Version
129
- hash: 3
130
- segments:
131
- - 0
132
- version: "0"
96
+ requirements:
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
133
100
  type: :development
134
- version_requirements: *id008
101
+ prerelease: false
102
+ version_requirements: *70274465320920
135
103
  description:
136
104
  email: seniorlopez@gmail.com
137
105
  executables: []
138
-
139
- extensions:
106
+ extensions:
140
107
  - ext/mysql2/extconf.rb
141
108
  extra_rdoc_files: []
142
-
143
- files:
109
+ files:
144
110
  - .gitignore
145
111
  - .rspec
146
112
  - .rvmrc
@@ -193,39 +159,31 @@ files:
193
159
  has_rdoc: true
194
160
  homepage: http://github.com/brianmario/mysql2
195
161
  licenses: []
196
-
197
162
  post_install_message:
198
- rdoc_options:
163
+ rdoc_options:
199
164
  - --charset=UTF-8
200
- require_paths:
165
+ require_paths:
201
166
  - lib
202
167
  - ext
203
- required_ruby_version: !ruby/object:Gem::Requirement
168
+ required_ruby_version: !ruby/object:Gem::Requirement
204
169
  none: false
205
- requirements:
206
- - - ">="
207
- - !ruby/object:Gem::Version
208
- hash: 3
209
- segments:
210
- - 0
211
- version: "0"
212
- required_rubygems_version: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ required_rubygems_version: !ruby/object:Gem::Requirement
213
175
  none: false
214
- requirements:
215
- - - ">="
216
- - !ruby/object:Gem::Version
217
- hash: 3
218
- segments:
219
- - 0
220
- version: "0"
176
+ requirements:
177
+ - - ! '>='
178
+ - !ruby/object:Gem::Version
179
+ version: '0'
221
180
  requirements: []
222
-
223
181
  rubyforge_project:
224
182
  rubygems_version: 1.6.2
225
183
  signing_key:
226
184
  specification_version: 3
227
185
  summary: A simple, fast Mysql library for Ruby, binding to libmysql
228
- test_files:
186
+ test_files:
229
187
  - examples/eventmachine.rb
230
188
  - examples/threaded.rb
231
189
  - spec/em/em_fiber_spec.rb