mysql2 0.2.18-x86-mingw32 → 0.3.9-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,17 +1,48 @@
1
1
  # Changelog
2
2
 
3
- ## 0.2.18 (December 6th, 2011)
4
- * change mysql error detection strategy from using mysql_field_count to the more explicit mysql_errno
5
- * bugfix to avoid race condition with active connections that error out
6
- * revert back to using xmalloc/xfree for allocations
7
- * avoid potentially unsafe Ruby C API usage w/o GVL
8
- * reacquire GVL before retrying on EINTR on connect
3
+ ## 0.3.8 (November 9th, 2011)
4
+ * remove fiber support from mysql2, the code has moved to the
5
+ em-synchrony gem.
6
+ * use rb_wait_for_single_fd() if available
7
+ * fixed a bug with inheriting query options
8
+ * remove ext/ from the default loadpath
9
+ * fix build issues on OSX with Xcode 4.2 (gcc-llvm compiler)
10
+
11
+ ## 0.3.7 (August 16th, 2011)
12
+ * ensure symbolized column names support encodings in 1.9
13
+
14
+ ## 0.3.6 (June 17th, 2011)
15
+ * fix bug in Time/DateTime range detection
16
+ * (win32) fix bug where the Mysql2::Client object wasn't cleaned up properly if interrupted during a query
17
+ * add Mysql2::Result#count (aliased as size) to get the row count for the dataset
18
+ this can be especially helpful if you want to get the number of rows without having to inflate
19
+ the entire dataset into ruby (since this happens lazily)
20
+
21
+ ## 0.3.5 (June 15th, 2011)
22
+ * bug fix for Time/DateTime usage depending on 32/64bit Ruby
23
+
24
+ ## 0.3.4 (June 15th, 2011)
25
+ * fix a long standing bug where a signal would interrupt rb_thread_select and put the connection in a permanently broken state
26
+ * turn on casting in the ActiveRecord again, users can disable it if they need to for performance reasons
27
+
28
+ ## 0.3.3 (June 14th, 2011)
29
+ * disable async support, and access to the underlying file descriptor under Windows. It's never worked reliably and ruby-core has a lot of work to do in order to make it possible.
30
+ * added support for turning eager-casting off. This is especially useful in ORMs that will lazily cast values upon access.
31
+ * added a warning if a 0.2.x release is being used with ActiveRecord 3.1 since both the 0.2.x releases and AR 3.1 have mysql2 adapters, we want you to use the one in AR 3.1
32
+ * added Mysql2::Client.escape (class-level method)
33
+ * disabled eager-casting in the bundled ActiveRecord adapter (for Rails 3.0 or less)
9
34
 
10
- ## 0.2.17 (November 9th, 2011)
35
+ ## 0.3.2 (April 26th, 2011)
36
+ * Fix typo in initialization for older ActiveRecord versions
11
37
 
12
- ## 0.2.16 (November 9th, 2011)
38
+ ## 0.3.1 (April 26th, 2011)
39
+ * Fix typo in initialization for older ActiveRecord versions
13
40
 
14
- ## 0.2.15 (November 9th, 2011)
41
+ ## 0.3.0 (April 26th, 2011)
42
+ * switch to MySQL Connector/C for win32 builds
43
+ * win32 bugfixes
44
+ * BREAKING CHANGE: the ActiveRecord adapter has been pulled into Rails 3.1 and is no longer part of the gem
45
+ * added Mysql2::Client.escape (class-level) for raw one-off non-encoding-aware escaping
15
46
 
16
47
  ## 0.2.14 (November 9th, 2011)
17
48
  * use rb_wait_for_single_fd() if available
data/README.md CHANGED
@@ -6,7 +6,7 @@ This one is not.
6
6
 
7
7
  It also forces the use of UTF-8 [or binary] for the connection [and all strings in 1.9, unless Encoding.default_internal is set then it'll convert from UTF-8 to that encoding] and uses encoding-aware MySQL API calls where it can.
8
8
 
9
- The API consists of two clases:
9
+ The API consists of two classes:
10
10
 
11
11
  Mysql2::Client - your connection to the database
12
12
 
@@ -214,7 +214,7 @@ This would be helpful if you wanted to iterate over the results in a streaming m
214
214
 
215
215
  ## ActiveRecord
216
216
 
217
- To use the ActiveRecord driver (with our without rails), all you should need to do is have this gem installed and set the adapter in your database.yml to "mysql2".
217
+ To use the ActiveRecord driver (with or without rails), all you should need to do is have this gem installed and set the adapter in your database.yml to "mysql2".
218
218
  That was easy right? :)
219
219
 
220
220
  NOTE: as of 0.3.0, and ActiveRecord 3.1 - the ActiveRecord adapter has been pulled out of this gem and into ActiveRecord itself. If you need to use mysql2 with
@@ -222,8 +222,7 @@ Rails versions < 3.1 make sure and specify `gem "mysql2", "~> 0.2.7"` in your Ge
222
222
 
223
223
  ## Asynchronous ActiveRecord
224
224
 
225
- You can also use Mysql2 with asynchronous Rails (first introduced at http://www.mikeperham.com/2010/04/03/introducing-phat-an-asynchronous-rails-app/) by
226
- setting the adapter in your database.yml to "em_mysql2". You must be running Ruby 1.9, thin and the rack-fiber_pool middleware for it to work.
225
+ Please see the [em-synchrony](https://github.com/igrigorik/em-synchrony) project for details about using EventMachine with mysql2 and Rails.
227
226
 
228
227
  ## Sequel
229
228
 
@@ -46,8 +46,6 @@ struct nogvl_connect_args {
46
46
  struct nogvl_send_query_args {
47
47
  MYSQL *mysql;
48
48
  VALUE sql;
49
- const char *sql_ptr;
50
- long sql_len;
51
49
  mysql_client_wrapper *wrapper;
52
50
  };
53
51
 
@@ -114,10 +112,12 @@ static VALUE nogvl_connect(void *ptr) {
114
112
  struct nogvl_connect_args *args = ptr;
115
113
  MYSQL *client;
116
114
 
117
- client = mysql_real_connect(args->mysql, args->host,
118
- args->user, args->passwd,
119
- args->db, args->port, args->unix_socket,
120
- args->client_flag);
115
+ do {
116
+ client = mysql_real_connect(args->mysql, args->host,
117
+ args->user, args->passwd,
118
+ args->db, args->port, args->unix_socket,
119
+ args->client_flag);
120
+ } while (! client && errno == EINTR && (errno = 0) == 0);
121
121
 
122
122
  return client ? Qtrue : Qfalse;
123
123
  }
@@ -147,7 +147,7 @@ static VALUE nogvl_close(void *ptr) {
147
147
  #endif
148
148
 
149
149
  mysql_close(wrapper->client);
150
- xfree(wrapper->client);
150
+ free(wrapper->client);
151
151
  }
152
152
 
153
153
  return Qnil;
@@ -158,7 +158,7 @@ static void rb_mysql_client_free(void * ptr) {
158
158
 
159
159
  nogvl_close(wrapper);
160
160
 
161
- xfree(ptr);
161
+ free(ptr);
162
162
  }
163
163
 
164
164
  static VALUE allocate(VALUE klass) {
@@ -169,7 +169,7 @@ static VALUE allocate(VALUE klass) {
169
169
  wrapper->active = 0;
170
170
  wrapper->reconnect_enabled = 0;
171
171
  wrapper->closed = 1;
172
- wrapper->client = (MYSQL*)xmalloc(sizeof(MYSQL));
172
+ wrapper->client = (MYSQL*)malloc(sizeof(MYSQL));
173
173
  return obj;
174
174
  }
175
175
 
@@ -181,26 +181,25 @@ static VALUE rb_mysql_client_escape(RB_MYSQL_UNUSED VALUE klass, VALUE str) {
181
181
  Check_Type(str, T_STRING);
182
182
 
183
183
  oldLen = RSTRING_LEN(str);
184
- newStr = xmalloc(oldLen*2+1);
184
+ newStr = malloc(oldLen*2+1);
185
185
 
186
186
  newLen = mysql_escape_string((char *)newStr, StringValuePtr(str), oldLen);
187
187
  if (newLen == oldLen) {
188
188
  // no need to return a new ruby string if nothing changed
189
- xfree(newStr);
189
+ free(newStr);
190
190
  return str;
191
191
  } else {
192
192
  rb_str = rb_str_new((const char*)newStr, newLen);
193
193
  #ifdef HAVE_RUBY_ENCODING_H
194
194
  rb_enc_copy(rb_str, str);
195
195
  #endif
196
- xfree(newStr);
196
+ free(newStr);
197
197
  return rb_str;
198
198
  }
199
199
  }
200
200
 
201
201
  static VALUE rb_connect(VALUE self, VALUE user, VALUE pass, VALUE host, VALUE port, VALUE database, VALUE socket, VALUE flags) {
202
202
  struct nogvl_connect_args args;
203
- VALUE rv;
204
203
  GET_CLIENT(self);
205
204
 
206
205
  args.host = NIL_P(host) ? "localhost" : StringValuePtr(host);
@@ -212,14 +211,9 @@ static VALUE rb_connect(VALUE self, VALUE user, VALUE pass, VALUE host, VALUE po
212
211
  args.mysql = wrapper->client;
213
212
  args.client_flag = NUM2ULONG(flags);
214
213
 
215
- rv = rb_thread_blocking_region(nogvl_connect, &args, RUBY_UBF_IO, 0);
216
- if (rv == Qfalse) {
217
- while (rv == Qfalse && errno == EINTR) {
218
- errno = 0;
219
- rv = rb_thread_blocking_region(nogvl_connect, &args, RUBY_UBF_IO, 0);
220
- }
221
- if (rv == Qfalse)
222
- return rb_raise_mysql2_error(wrapper);
214
+ if (rb_thread_blocking_region(nogvl_connect, &args, RUBY_UBF_IO, 0) == Qfalse) {
215
+ // unable to connect
216
+ return rb_raise_mysql2_error(wrapper);
223
217
  }
224
218
 
225
219
  return self;
@@ -249,8 +243,10 @@ static VALUE rb_mysql_client_close(VALUE self) {
249
243
  static VALUE nogvl_send_query(void *ptr) {
250
244
  struct nogvl_send_query_args *args = ptr;
251
245
  int rv;
246
+ const char *sql = StringValuePtr(args->sql);
247
+ long sql_len = RSTRING_LEN(args->sql);
252
248
 
253
- rv = mysql_send_query(args->mysql, args->sql_ptr, args->sql_len);
249
+ rv = mysql_send_query(args->mysql, sql, sql_len);
254
250
 
255
251
  return rv == 0 ? Qtrue : Qfalse;
256
252
  }
@@ -315,11 +311,9 @@ static VALUE rb_mysql_client_async_result(VALUE self) {
315
311
  result = (MYSQL_RES *)rb_thread_blocking_region(nogvl_store_result, wrapper, RUBY_UBF_IO, 0);
316
312
 
317
313
  if (result == NULL) {
318
- if (mysql_errno(wrapper->client) != 0) {
319
- MARK_CONN_INACTIVE(self);
314
+ if (mysql_field_count(wrapper->client) != 0) {
320
315
  rb_raise_mysql2_error(wrapper);
321
316
  }
322
- // no data and no error, so query was not a SELECT
323
317
  return Qnil;
324
318
  }
325
319
 
@@ -456,8 +450,6 @@ static VALUE rb_mysql_client_query(int argc, VALUE * argv, VALUE self) {
456
450
  // ensure the string is in the encoding the connection is expecting
457
451
  args.sql = rb_str_export_to_enc(args.sql, conn_enc);
458
452
  #endif
459
- args.sql_ptr = StringValuePtr(args.sql);
460
- args.sql_len = RSTRING_LEN(args.sql);
461
453
 
462
454
  // see if this connection is still waiting on a result from a previous query
463
455
  if (wrapper->active == 0) {
@@ -510,12 +502,12 @@ static VALUE rb_mysql_client_real_escape(VALUE self, VALUE str) {
510
502
  #endif
511
503
 
512
504
  oldLen = RSTRING_LEN(str);
513
- newStr = xmalloc(oldLen*2+1);
505
+ newStr = malloc(oldLen*2+1);
514
506
 
515
507
  newLen = mysql_real_escape_string(wrapper->client, (char *)newStr, StringValuePtr(str), oldLen);
516
508
  if (newLen == oldLen) {
517
509
  // no need to return a new ruby string if nothing changed
518
- xfree(newStr);
510
+ free(newStr);
519
511
  return str;
520
512
  } else {
521
513
  rb_str = rb_str_new((const char*)newStr, newLen);
@@ -525,7 +517,7 @@ static VALUE rb_mysql_client_real_escape(VALUE self, VALUE str) {
525
517
  rb_str = rb_str_export_to_enc(rb_str, default_internal_enc);
526
518
  }
527
519
  #endif
528
- xfree(newStr);
520
+ free(newStr);
529
521
  return rb_str;
530
522
  }
531
523
  }
@@ -80,7 +80,7 @@ static void rb_mysql_result_free(void * wrapper) {
80
80
  mysql2_result_wrapper * w = wrapper;
81
81
  /* FIXME: this may call flush_use_result, which can hit the socket */
82
82
  rb_mysql_result_free_result(w);
83
- xfree(wrapper);
83
+ free(wrapper);
84
84
  }
85
85
 
86
86
  /*
@@ -15,7 +15,7 @@ require 'mysql2/client'
15
15
  module Mysql2
16
16
  end
17
17
 
18
- if defined?(ActiveRecord::VERSION::STRING) && ActiveRecord::VERSION::STRING >= "3.1"
19
- puts "WARNING: This version of mysql2 (#{Mysql2::VERSION}) isn't compatible with Rails 3.1 as the ActiveRecord adapter was pulled into Rails itself."
20
- puts "WARNING: Please use the 0.3.x (or greater) releases if you plan on using it in Rails >= 3.1.x"
21
- end
18
+ if defined?(ActiveRecord::VERSION::STRING) && ActiveRecord::VERSION::STRING < "3.1"
19
+ puts "WARNING: This version of mysql2 (#{Mysql2::VERSION}) doesn't ship with the ActiveRecord adapter bundled anymore as it's now part of Rails 3.1"
20
+ puts "WARNING: Please use the 0.2.x releases if you plan on using it in Rails <= 3.0.x"
21
+ end
@@ -1,3 +1,3 @@
1
1
  module Mysql2
2
- VERSION = "0.2.18"
2
+ VERSION = "0.3.9"
3
3
  end
@@ -1,6 +1,7 @@
1
1
  # encoding: UTF-8
2
- if defined? EventMachine
3
- require 'spec_helper'
2
+ require 'spec_helper'
3
+ begin
4
+ require 'eventmachine'
4
5
  require 'mysql2/em'
5
6
 
6
7
  describe Mysql2::EM::Client do
@@ -44,6 +45,6 @@ if defined? EventMachine
44
45
  results[1].keys.should include("second_query")
45
46
  end
46
47
  end
47
- else
48
+ rescue LoadError
48
49
  puts "EventMachine not installed, skipping the specs that use it"
49
- end
50
+ end
metadata CHANGED
@@ -1,172 +1,121 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: mysql2
3
- version: !ruby/object:Gem::Version
4
- hash: 51
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.9
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 18
10
- segments_generated: true
11
- version: 0.2.18
12
6
  platform: x86-mingw32
13
- authors:
7
+ authors:
14
8
  - Brian Lopez
15
9
  autorequire:
16
10
  bindir: bin
17
11
  cert_chain: []
18
-
19
- date: 2011-12-06 00:00:00 -08:00
20
- default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
12
+ date: 2011-11-09 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
23
15
  name: eventmachine
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70366941834500 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- segments_generated: true
33
- version: "0"
34
- prerelease: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
35
22
  type: :development
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
23
+ prerelease: false
24
+ version_requirements: *70366941834500
25
+ - !ruby/object:Gem::Dependency
38
26
  name: rake-compiler
39
- requirement: &id002 !ruby/object:Gem::Requirement
27
+ requirement: &70366941832980 !ruby/object:Gem::Requirement
40
28
  none: false
41
- requirements:
29
+ requirements:
42
30
  - - ~>
43
- - !ruby/object:Gem::Version
44
- hash: 13
45
- segments:
46
- - 0
47
- - 7
48
- - 7
49
- segments_generated: true
31
+ - !ruby/object:Gem::Version
50
32
  version: 0.7.7
51
- prerelease: false
52
33
  type: :development
53
- version_requirements: *id002
54
- - !ruby/object:Gem::Dependency
34
+ prerelease: false
35
+ version_requirements: *70366941832980
36
+ - !ruby/object:Gem::Dependency
55
37
  name: rake
56
- requirement: &id003 !ruby/object:Gem::Requirement
38
+ requirement: &70366941831480 !ruby/object:Gem::Requirement
57
39
  none: false
58
- requirements:
59
- - - "="
60
- - !ruby/object:Gem::Version
61
- hash: 49
62
- segments:
63
- - 0
64
- - 8
65
- - 7
66
- segments_generated: true
40
+ requirements:
41
+ - - =
42
+ - !ruby/object:Gem::Version
67
43
  version: 0.8.7
68
- prerelease: false
69
44
  type: :development
70
- version_requirements: *id003
71
- - !ruby/object:Gem::Dependency
45
+ prerelease: false
46
+ version_requirements: *70366941831480
47
+ - !ruby/object:Gem::Dependency
72
48
  name: rspec
73
- requirement: &id004 !ruby/object:Gem::Requirement
49
+ requirement: &70366941830420 !ruby/object:Gem::Requirement
74
50
  none: false
75
- requirements:
76
- - - ">="
77
- - !ruby/object:Gem::Version
78
- hash: 3
79
- segments:
80
- - 0
81
- segments_generated: true
82
- version: "0"
83
- prerelease: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
84
55
  type: :development
85
- version_requirements: *id004
86
- - !ruby/object:Gem::Dependency
56
+ prerelease: false
57
+ version_requirements: *70366941830420
58
+ - !ruby/object:Gem::Dependency
87
59
  name: activerecord
88
- requirement: &id005 !ruby/object:Gem::Requirement
60
+ requirement: &70366941829400 !ruby/object:Gem::Requirement
89
61
  none: false
90
- requirements:
91
- - - ">="
92
- - !ruby/object:Gem::Version
93
- hash: 3
94
- segments:
95
- - 0
96
- segments_generated: true
97
- version: "0"
98
- prerelease: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
99
66
  type: :development
100
- version_requirements: *id005
101
- - !ruby/object:Gem::Dependency
67
+ prerelease: false
68
+ version_requirements: *70366941829400
69
+ - !ruby/object:Gem::Dependency
102
70
  name: mysql
103
- requirement: &id006 !ruby/object:Gem::Requirement
71
+ requirement: &70366941828800 !ruby/object:Gem::Requirement
104
72
  none: false
105
- requirements:
106
- - - ">="
107
- - !ruby/object:Gem::Version
108
- hash: 3
109
- segments:
110
- - 0
111
- segments_generated: true
112
- version: "0"
113
- prerelease: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
114
77
  type: :development
115
- version_requirements: *id006
116
- - !ruby/object:Gem::Dependency
78
+ prerelease: false
79
+ version_requirements: *70366941828800
80
+ - !ruby/object:Gem::Dependency
117
81
  name: do_mysql
118
- requirement: &id007 !ruby/object:Gem::Requirement
82
+ requirement: &70366941828320 !ruby/object:Gem::Requirement
119
83
  none: false
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- hash: 3
124
- segments:
125
- - 0
126
- segments_generated: true
127
- version: "0"
128
- prerelease: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
129
88
  type: :development
130
- version_requirements: *id007
131
- - !ruby/object:Gem::Dependency
89
+ prerelease: false
90
+ version_requirements: *70366941828320
91
+ - !ruby/object:Gem::Dependency
132
92
  name: sequel
133
- requirement: &id008 !ruby/object:Gem::Requirement
93
+ requirement: &70366941827760 !ruby/object:Gem::Requirement
134
94
  none: false
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- hash: 3
139
- segments:
140
- - 0
141
- segments_generated: true
142
- version: "0"
143
- prerelease: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
144
99
  type: :development
145
- version_requirements: *id008
146
- - !ruby/object:Gem::Dependency
100
+ prerelease: false
101
+ version_requirements: *70366941827760
102
+ - !ruby/object:Gem::Dependency
147
103
  name: faker
148
- requirement: &id009 !ruby/object:Gem::Requirement
104
+ requirement: &70366941827060 !ruby/object:Gem::Requirement
149
105
  none: false
150
- requirements:
151
- - - ">="
152
- - !ruby/object:Gem::Version
153
- hash: 3
154
- segments:
155
- - 0
156
- segments_generated: true
157
- version: "0"
158
- prerelease: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
159
110
  type: :development
160
- version_requirements: *id009
111
+ prerelease: false
112
+ version_requirements: *70366941827060
161
113
  description:
162
114
  email: seniorlopez@gmail.com
163
115
  executables: []
164
-
165
116
  extensions: []
166
-
167
117
  extra_rdoc_files: []
168
-
169
- files:
118
+ files:
170
119
  - .gitignore
171
120
  - .rspec
172
121
  - .rvmrc
@@ -195,19 +144,13 @@ files:
195
144
  - ext/mysql2/result.c
196
145
  - ext/mysql2/result.h
197
146
  - ext/mysql2/wait_for_single_fd.h
198
- - lib/active_record/connection_adapters/em_mysql2_adapter.rb
199
- - lib/active_record/connection_adapters/mysql2_adapter.rb
200
- - lib/active_record/fiber_patches.rb
201
- - lib/arel/engines/sql/compilers/mysql2_compiler.rb
202
147
  - lib/mysql2.rb
203
148
  - lib/mysql2/client.rb
204
149
  - lib/mysql2/em.rb
205
- - lib/mysql2/em_fiber.rb
206
150
  - lib/mysql2/error.rb
207
151
  - lib/mysql2/result.rb
208
152
  - lib/mysql2/version.rb
209
153
  - mysql2.gemspec
210
- - spec/em/em_fiber_spec.rb
211
154
  - spec/em/em_spec.rb
212
155
  - spec/mysql2/client_spec.rb
213
156
  - spec/mysql2/error_spec.rb
@@ -221,62 +164,45 @@ files:
221
164
  - lib/mysql2/1.8/mysql2.so
222
165
  - lib/mysql2/1.9/mysql2.so
223
166
  - lib/mysql2/mysql2.rb
224
- has_rdoc: true
225
167
  homepage: http://github.com/brianmario/mysql2
226
168
  licenses: []
227
-
228
- post_install_message: |+
229
-
230
- ======================================================================================================
231
-
232
- You've installed the binary version of mysql2.
233
- It was built using MySQL Connector/C version 6.0.2.
234
- It's recommended to use the exact same version to avoid potential issues.
235
-
236
- At the time of building this gem, the necessary DLL files where available
237
- in the following download:
238
-
239
- http://dev.mysql.com/get/Downloads/Connector-C/mysql-connector-c-noinstall-6.0.2-win32.zip/from/pick
240
-
241
- And put lib\libmysql.dll file in your Ruby bin directory, for example C:\Ruby\bin
242
-
243
- ======================================================================================================
244
-
245
- rdoc_options:
169
+ post_install_message: ! "\n======================================================================================================\n\n
170
+ \ You've installed the binary version of mysql2.\n It was built using MySQL Connector/C
171
+ version 6.0.2.\n It's recommended to use the exact same version to avoid potential
172
+ issues.\n\n At the time of building this gem, the necessary DLL files where available\n
173
+ \ in the following download:\n\n http://dev.mysql.com/get/Downloads/Connector-C/mysql-connector-c-noinstall-6.0.2-win32.zip/from/pick\n\n
174
+ \ And put lib\\libmysql.dll file in your Ruby bin directory, for example C:\\Ruby\\bin\n\n======================================================================================================\n\n"
175
+ rdoc_options:
246
176
  - --charset=UTF-8
247
- require_paths:
177
+ require_paths:
248
178
  - lib
249
- required_ruby_version: !ruby/object:Gem::Requirement
179
+ required_ruby_version: !ruby/object:Gem::Requirement
250
180
  none: false
251
- requirements:
252
- - - ">="
253
- - !ruby/object:Gem::Version
254
- hash: 3
255
- segments:
181
+ requirements:
182
+ - - ! '>='
183
+ - !ruby/object:Gem::Version
184
+ version: '0'
185
+ segments:
256
186
  - 0
257
- segments_generated: true
258
- version: "0"
259
- required_rubygems_version: !ruby/object:Gem::Requirement
187
+ hash: 4509010119636737419
188
+ required_rubygems_version: !ruby/object:Gem::Requirement
260
189
  none: false
261
- requirements:
262
- - - ">="
263
- - !ruby/object:Gem::Version
264
- hash: 3
265
- segments:
190
+ requirements:
191
+ - - ! '>='
192
+ - !ruby/object:Gem::Version
193
+ version: '0'
194
+ segments:
266
195
  - 0
267
- segments_generated: true
268
- version: "0"
196
+ hash: 4509010119636737419
269
197
  requirements: []
270
-
271
198
  rubyforge_project:
272
- rubygems_version: 1.3.9.3
199
+ rubygems_version: 1.8.10
273
200
  signing_key:
274
201
  specification_version: 3
275
202
  summary: A simple, fast Mysql library for Ruby, binding to libmysql
276
- test_files:
203
+ test_files:
277
204
  - examples/eventmachine.rb
278
205
  - examples/threaded.rb
279
- - spec/em/em_fiber_spec.rb
280
206
  - spec/em/em_spec.rb
281
207
  - spec/mysql2/client_spec.rb
282
208
  - spec/mysql2/error_spec.rb