mysql 2.8.1 → 2.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gemtest +0 -0
- data/History.txt +26 -0
- data/Manifest.txt +1 -0
- data/README.txt +7 -5
- data/ext/mysql_api/extconf.rb +4 -9
- data/ext/mysql_api/mysql.c +21 -6
- data/extra/README.html +13 -3
- data/extra/README_ja.html +13 -3
- data/lib/mysql.rb +4 -11
- data/lib/mysql/version.rb +6 -0
- data/tasks/gem.rake +2 -2
- data/tasks/native.rake +32 -10
- data/tasks/vendor_mysql.rake +11 -10
- data/test/test_mysql.rb +11 -7
- metadata +65 -22
data/.gemtest
ADDED
File without changes
|
data/History.txt
CHANGED
@@ -1,3 +1,29 @@
|
|
1
|
+
=== 2.9.1 / 2013-02-16 / Vacation time!
|
2
|
+
|
3
|
+
* Bugfixes:
|
4
|
+
* Use C89 comment style in source code. #13 [knu]
|
5
|
+
* Use ULL2NUM to return `affected_rows`. #11, #12 [cbandy]
|
6
|
+
|
7
|
+
=== 2.9.0 / 2012-11-17
|
8
|
+
|
9
|
+
DEPRECATION: Ruby 1.8.6 is no longer supported. Do not update your production
|
10
|
+
application blindly without testing first any dependency change!
|
11
|
+
|
12
|
+
* Incompatibility:
|
13
|
+
* Requires Ruby 1.8.7 or newer.
|
14
|
+
|
15
|
+
* Enhancements:
|
16
|
+
* Detect MySQL version at load time and fail on mismatch [ghazel]
|
17
|
+
* Use MySQL Connector/C for Windows binary bindings instead
|
18
|
+
|
19
|
+
* Bug fixes:
|
20
|
+
* Use RbConfig since Config is deprecated in Ruby 2.0 [tenderlove]
|
21
|
+
|
22
|
+
=== 2.8.2 / 2012-11-06 / *yanked*
|
23
|
+
|
24
|
+
* Yanked:
|
25
|
+
* Changes in requirements render this gem incompatible for some users.
|
26
|
+
|
1
27
|
=== 2.8.1 / 2009-08-21
|
2
28
|
|
3
29
|
* New features:
|
data/Manifest.txt
CHANGED
data/README.txt
CHANGED
@@ -1,17 +1,19 @@
|
|
1
1
|
= MySQL/Ruby Interface
|
2
2
|
|
3
|
-
* http://mysql-
|
4
|
-
* http://rubyforge.org/projects/mysql-win
|
5
|
-
* http://github.com/luislaven/mysql-gem
|
3
|
+
* http://github.com/luislavena/mysql-gem
|
6
4
|
|
7
5
|
== DESCRIPTION
|
8
6
|
|
9
7
|
This is the MySQL API module for Ruby. It provides the same functions for Ruby
|
10
8
|
programs that the MySQL C API provides for C programs.
|
11
9
|
|
12
|
-
This is
|
10
|
+
This package is offered as gem for easy installation using RubyGems. It wraps
|
11
|
+
unmodified tmtm's mysql-ruby extension into a proper gem.
|
13
12
|
|
14
|
-
|
13
|
+
Please note that tmtm (Tomita Mashahiro) has deprecated development of this
|
14
|
+
extension and only update it for bug fixes.
|
15
|
+
|
16
|
+
=== Warning about incompatible MySQL versions under Windows
|
15
17
|
|
16
18
|
Mixing MySQL versions will generate segmentation faults.
|
17
19
|
|
data/ext/mysql_api/extconf.rb
CHANGED
@@ -1,11 +1,6 @@
|
|
1
1
|
# Darwin (OSX) special cases for universal binaries
|
2
2
|
# This is to avoid the lack of UB binaries for MySQL
|
3
|
-
if RUBY_PLATFORM =~ /darwin/
|
4
|
-
ENV["RC_ARCHS"] = `uname -m`.chomp if `uname -sr` =~ /^Darwin/
|
5
|
-
|
6
|
-
# On PowerPC the defaults are fine
|
7
|
-
ENV["RC_ARCHS"] = '' if `uname -m` =~ /^Power Macintosh/
|
8
|
-
end
|
3
|
+
ENV["RC_ARCHS"] = "" if RUBY_PLATFORM =~ /darwin/
|
9
4
|
|
10
5
|
require 'mkmf'
|
11
6
|
|
@@ -64,9 +59,9 @@ File.open("conftest.c", "w") do |f|
|
|
64
59
|
f.puts src
|
65
60
|
end
|
66
61
|
if defined? cpp_command then
|
67
|
-
cpp =
|
62
|
+
cpp = RbConfig.expand(cpp_command(''))
|
68
63
|
else
|
69
|
-
cpp =
|
64
|
+
cpp = RbConfig.expand sprintf(CPP, $CPPFLAGS, $CFLAGS, '')
|
70
65
|
end
|
71
66
|
if RUBY_PLATFORM =~ /mswin/ && !/-E/.match(cpp)
|
72
67
|
cpp << " -E"
|
@@ -95,4 +90,4 @@ File.open('error_const.h', 'w') do |f|
|
|
95
90
|
end
|
96
91
|
end
|
97
92
|
|
98
|
-
create_makefile("mysql_api")
|
93
|
+
create_makefile("mysql/mysql_api")
|
data/ext/mysql_api/mysql.c
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ruby mysql module
|
2
|
-
* $Id: mysql.c
|
2
|
+
* $Id: mysql.c 250 2010-02-11 10:42:54Z tommy $
|
3
3
|
*/
|
4
4
|
|
5
5
|
#include <ruby.h>
|
@@ -26,7 +26,7 @@
|
|
26
26
|
#include <mysql/mysqld_error.h>
|
27
27
|
#endif
|
28
28
|
|
29
|
-
#define MYSQL_RUBY_VERSION
|
29
|
+
#define MYSQL_RUBY_VERSION 20802
|
30
30
|
|
31
31
|
#define GC_STORE_RESULT_LIMIT 20
|
32
32
|
|
@@ -445,7 +445,7 @@ static VALUE initialize(int argc, VALUE* argv, VALUE obj)
|
|
445
445
|
/* affected_rows() */
|
446
446
|
static VALUE affected_rows(VALUE obj)
|
447
447
|
{
|
448
|
-
return
|
448
|
+
return ULL2NUM(mysql_affected_rows(GetHandler(obj)));
|
449
449
|
}
|
450
450
|
|
451
451
|
#if MYSQL_VERSION_ID >= 32303
|
@@ -559,7 +559,7 @@ static VALUE info(VALUE obj)
|
|
559
559
|
/* insert_id() */
|
560
560
|
static VALUE insert_id(VALUE obj)
|
561
561
|
{
|
562
|
-
return
|
562
|
+
return ULL2NUM(mysql_insert_id(GetHandler(obj)));
|
563
563
|
}
|
564
564
|
|
565
565
|
/* kill(pid) */
|
@@ -1268,7 +1268,7 @@ static VALUE stmt_affected_rows(VALUE obj)
|
|
1268
1268
|
my_ulonglong n;
|
1269
1269
|
check_stmt_closed(obj);
|
1270
1270
|
n = mysql_stmt_affected_rows(s->stmt);
|
1271
|
-
return
|
1271
|
+
return ULL2NUM(n);
|
1272
1272
|
}
|
1273
1273
|
|
1274
1274
|
#if 0
|
@@ -1621,7 +1621,7 @@ static VALUE stmt_insert_id(VALUE obj)
|
|
1621
1621
|
my_ulonglong n;
|
1622
1622
|
check_stmt_closed(obj);
|
1623
1623
|
n = mysql_stmt_insert_id(s->stmt);
|
1624
|
-
return
|
1624
|
+
return ULL2NUM(n);
|
1625
1625
|
}
|
1626
1626
|
|
1627
1627
|
/* num_rows() */
|
@@ -1884,6 +1884,21 @@ static VALUE error_sqlstate(VALUE obj)
|
|
1884
1884
|
|
1885
1885
|
void Init_mysql_api(void)
|
1886
1886
|
{
|
1887
|
+
int i;
|
1888
|
+
int dots = 0;
|
1889
|
+
const char *lib = mysql_get_client_info();
|
1890
|
+
for (i = 0; lib[i] != 0 && MYSQL_SERVER_VERSION[i] != 0; i++) {
|
1891
|
+
if (lib[i] == '.') {
|
1892
|
+
dots++;
|
1893
|
+
/* we only compare MAJOR and MINOR */
|
1894
|
+
if (dots == 2) break;
|
1895
|
+
}
|
1896
|
+
if (lib[i] != MYSQL_SERVER_VERSION[i]) {
|
1897
|
+
rb_raise(rb_eRuntimeError, "Incorrect MySQL client library version! This gem was compiled for %s but the client library is %s.", MYSQL_SERVER_VERSION, lib);
|
1898
|
+
return;
|
1899
|
+
}
|
1900
|
+
}
|
1901
|
+
|
1887
1902
|
cMysql = rb_define_class("Mysql", rb_cObject);
|
1888
1903
|
cMysqlRes = rb_define_class_under(cMysql, "Result", rb_cObject);
|
1889
1904
|
cMysqlField = rb_define_class_under(cMysql, "Field", rb_cObject);
|
data/extra/README.html
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<!-- $Id: README.html
|
2
|
+
<!-- $Id: README.html 250 2010-02-11 10:42:54Z tommy $ -->
|
3
3
|
<html>
|
4
4
|
<head>
|
5
5
|
<meta http-equiv="content-style-type" content="text/css">
|
@@ -18,7 +18,10 @@
|
|
18
18
|
</p>
|
19
19
|
|
20
20
|
<h2>Download</h2>
|
21
|
-
<
|
21
|
+
<ul>
|
22
|
+
<li><a href="http://rubyforge.org/frs/?group_id=4550">RubyForge</a>
|
23
|
+
<li><a href="http://tmtm.org/downloads/mysql/ruby/">tmtm.org</a>
|
24
|
+
</ul>
|
22
25
|
|
23
26
|
<h2>Requirement</h2>
|
24
27
|
<ul>
|
@@ -818,6 +821,13 @@ st.close
|
|
818
821
|
|
819
822
|
<h2>History</h2>
|
820
823
|
<dl>
|
824
|
+
<dt>2010-02-11</dt>
|
825
|
+
<dd>
|
826
|
+
version 2.8.2<br>
|
827
|
+
<ul>
|
828
|
+
<li>Fix: Mysql#insert_id returns invalid value when larger than 2**32.
|
829
|
+
</ul>
|
830
|
+
|
821
831
|
<dt>2009-02-01
|
822
832
|
<dd>
|
823
833
|
version 2.8.1<br>
|
@@ -1092,7 +1102,7 @@ st.close
|
|
1092
1102
|
<address><a href="mailto:tommy@tmtm.org">TOMITA Masahiro</a></address>
|
1093
1103
|
<!-- Created: Sun Aug 29 11:52:09 JST 2004 -->
|
1094
1104
|
<!-- hhmts start -->
|
1095
|
-
Last modified: Sun Feb 1 17:
|
1105
|
+
Last modified: Sun Feb 1 17:48:41 JST 2009
|
1096
1106
|
<!-- hhmts end -->
|
1097
1107
|
</body>
|
1098
1108
|
</html>
|
data/extra/README_ja.html
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<!-- $Id: README_ja.html
|
2
|
+
<!-- $Id: README_ja.html 250 2010-02-11 10:42:54Z tommy $ -->
|
3
3
|
<html>
|
4
4
|
<head>
|
5
5
|
<meta http-equiv="content-style-type" content="text/css">
|
@@ -17,7 +17,10 @@
|
|
17
17
|
</p>
|
18
18
|
|
19
19
|
<h2>�����������</h2>
|
20
|
-
<
|
20
|
+
<ul>
|
21
|
+
<li><a href="http://rubyforge.org/frs/?group_id=4550">RubyForge</a>
|
22
|
+
<li><a href="http://tmtm.org/downloads/mysql/ruby/">tmtm.org</a>
|
23
|
+
</ul>
|
21
24
|
|
22
25
|
<h2>ɬ�פʤ��</h2>
|
23
26
|
<ul>
|
@@ -899,6 +902,13 @@ st.close
|
|
899
902
|
|
900
903
|
<h2>����</h2>
|
901
904
|
<dl>
|
905
|
+
<dt>2010-02-11</dt>
|
906
|
+
<dd>
|
907
|
+
version 2.8.2<br>
|
908
|
+
<ul>
|
909
|
+
<li>Fix: Mysql#insert_id �� 2**32 �ʾ�λ����������ͤ��֤���
|
910
|
+
</ul>
|
911
|
+
|
902
912
|
<dt>2009-02-01
|
903
913
|
<dd>
|
904
914
|
version 2.8.1<br>
|
@@ -1317,7 +1327,7 @@ st.close
|
|
1317
1327
|
<address><a href="mailto:tommy@tmtm.org">TOMITA Masahiro</a></address>
|
1318
1328
|
<!-- Created: Sun Aug 29 11:52:09 JST 2004 -->
|
1319
1329
|
<!-- hhmts start -->
|
1320
|
-
Last modified: Sun Feb 1 17:
|
1330
|
+
Last modified: Sun Feb 1 17:48:26 JST 2009
|
1321
1331
|
<!-- hhmts end -->
|
1322
1332
|
</body>
|
1323
1333
|
</html>
|
data/lib/mysql.rb
CHANGED
@@ -1,16 +1,9 @@
|
|
1
1
|
# support multiple ruby version (fat binaries under windows)
|
2
2
|
begin
|
3
|
-
|
3
|
+
RUBY_VERSION =~ /(\d+.\d+)/
|
4
|
+
require "mysql/#{$1}/mysql_api"
|
4
5
|
rescue LoadError
|
5
|
-
|
6
|
-
RUBY_VERSION =~ /(\d+.\d+)/
|
7
|
-
require "#{$1}/mysql_api"
|
8
|
-
end
|
6
|
+
require 'mysql/mysql_api'
|
9
7
|
end
|
10
8
|
|
11
|
-
|
12
|
-
class Mysql
|
13
|
-
module GemVersion
|
14
|
-
VERSION = '2.8.1'
|
15
|
-
end
|
16
|
-
end
|
9
|
+
require 'mysql/version'
|
data/tasks/gem.rake
CHANGED
@@ -8,11 +8,11 @@ HOE = Hoe.spec 'mysql' do
|
|
8
8
|
self.need_tar = false
|
9
9
|
self.need_zip = false
|
10
10
|
|
11
|
-
spec_extras[:required_ruby_version] = Gem::Requirement.new('>= 1.8.
|
11
|
+
spec_extras[:required_ruby_version] = Gem::Requirement.new('>= 1.8.7')
|
12
12
|
|
13
13
|
spec_extras[:extensions] = ["ext/mysql_api/extconf.rb"]
|
14
14
|
|
15
|
-
extra_dev_deps << ['rake-compiler', "~> 0.
|
15
|
+
extra_dev_deps << ['rake-compiler', "~> 0.8.1"]
|
16
16
|
end
|
17
17
|
|
18
18
|
file "#{HOE.spec.name}.gemspec" => ['Rakefile', 'tasks/gem.rake'] do |t|
|
data/tasks/native.rake
CHANGED
@@ -1,28 +1,50 @@
|
|
1
1
|
# use rake-compiler for building the extension
|
2
2
|
require 'rake/extensiontask'
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
CONNECTOR_VERSION = "6.0.2"
|
5
|
+
CONNECTOR_MIRROR = ENV['CONNECTOR_MIRROR'] || "http://mysql.localhost.net.ar"
|
6
6
|
|
7
7
|
Rake::ExtensionTask.new('mysql_api', HOE.spec) do |ext|
|
8
8
|
# reference where the vendored MySQL got extracted
|
9
|
-
mysql_lib = File.expand_path(File.join(File.dirname(__FILE__), '..', 'vendor', "mysql-#{
|
9
|
+
mysql_lib = File.expand_path(File.join(File.dirname(__FILE__), '..', 'vendor', "mysql-connector-c-noinstall-#{CONNECTOR_VERSION}-win32"))
|
10
|
+
|
11
|
+
# where native extension will be copied (matches makefile)
|
12
|
+
ext.lib_dir = "lib/mysql"
|
10
13
|
|
11
14
|
# define target for extension (supporting fat binaries)
|
12
|
-
if RUBY_PLATFORM =~ /mingw/ then
|
15
|
+
if RUBY_PLATFORM =~ /mswin|mingw/ then
|
13
16
|
ruby_ver = RUBY_VERSION.match(/(\d+\.\d+)/)[1]
|
14
|
-
ext.lib_dir = "lib/#{ruby_ver}"
|
17
|
+
ext.lib_dir = "lib/mysql/#{ruby_ver}"
|
15
18
|
end
|
16
19
|
|
17
20
|
# automatically add build options to avoid need of manual input
|
18
21
|
if RUBY_PLATFORM =~ /mswin|mingw/ then
|
19
|
-
ext.config_options << "--with-mysql-
|
20
|
-
ext.config_options << "--with-mysql-lib=#{mysql_lib}/lib/opt"
|
22
|
+
ext.config_options << "--with-mysql-dir=#{mysql_lib}"
|
21
23
|
else
|
22
24
|
ext.cross_compile = true
|
23
|
-
ext.cross_platform = ['i386-mingw32', 'i386-mswin32']
|
24
|
-
ext.cross_config_options << "--with-mysql-
|
25
|
-
ext.
|
25
|
+
ext.cross_platform = ['i386-mingw32', 'i386-mswin32-60']
|
26
|
+
ext.cross_config_options << "--with-mysql-dir=#{mysql_lib}"
|
27
|
+
ext.cross_compiling do |gemspec|
|
28
|
+
gemspec.post_install_message = <<-POST_INSTALL_MESSAGE
|
29
|
+
|
30
|
+
======================================================================================================
|
31
|
+
|
32
|
+
You've installed the binary version of #{gemspec.name}.
|
33
|
+
It was built using MySQL Connector/C version #{CONNECTOR_VERSION}.
|
34
|
+
It's recommended to use the exact same version to avoid potential issues.
|
35
|
+
|
36
|
+
At the time of building this gem, the necessary DLL files where available
|
37
|
+
in the following URL:
|
38
|
+
|
39
|
+
http://dev.mysql.com/get/Downloads/Connector-C/mysql-connector-c-noinstall-#{CONNECTOR_VERSION}-win32.zip/from/pick
|
40
|
+
|
41
|
+
You can put the lib\\libmysql.dll available in this package to your Ruby bin directory.
|
42
|
+
E.g. C:\\Ruby\\bin
|
43
|
+
|
44
|
+
======================================================================================================
|
45
|
+
|
46
|
+
POST_INSTALL_MESSAGE
|
47
|
+
end
|
26
48
|
end
|
27
49
|
end
|
28
50
|
|
data/tasks/vendor_mysql.rake
CHANGED
@@ -4,21 +4,21 @@ require 'rake/extensioncompiler'
|
|
4
4
|
# download mysql library and headers
|
5
5
|
directory "vendor"
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
CONNECTOR_DIR = "mysql-connector-c-noinstall-#{CONNECTOR_VERSION}-win32"
|
8
|
+
CONNECTOR_ZIP = "#{CONNECTOR_DIR}.zip"
|
9
|
+
|
10
|
+
file "vendor/#{CONNECTOR_ZIP}" => ['vendor'] do |t|
|
11
|
+
url = "http://dev.mysql.com/get/Downloads/Connector-C/#{File.basename(t.name)}/from/#{CONNECTOR_MIRROR}/"
|
10
12
|
when_writing "downloading #{t.name}" do
|
11
|
-
|
12
|
-
sh "wget -c #{url} || curl -C - -O #{url}"
|
13
|
-
end
|
13
|
+
sh "curl -L #{url} -o #{t.name}"
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
-
file "vendor
|
17
|
+
file "vendor/#{CONNECTOR_DIR}/include/mysql.h" => ["vendor/#{CONNECTOR_ZIP}"] do |t|
|
18
18
|
full_file = File.expand_path(t.prerequisites.last)
|
19
19
|
when_writing "creating #{t.name}" do
|
20
20
|
cd "vendor" do
|
21
|
-
sh "unzip #{full_file}
|
21
|
+
sh "unzip #{full_file} #{CONNECTOR_DIR}/bin/** #{CONNECTOR_DIR}/include/** #{CONNECTOR_DIR}/lib/**"
|
22
22
|
end
|
23
23
|
# update file timestamp to avoid Rake perform this extraction again.
|
24
24
|
touch t.name
|
@@ -26,10 +26,11 @@ file "vendor/mysql-#{MYSQL_VERSION}-win32/include/mysql.h" => ["vendor/mysql-noi
|
|
26
26
|
end
|
27
27
|
|
28
28
|
# clobber expanded packages
|
29
|
-
CLOBBER.include("vendor
|
29
|
+
CLOBBER.include("vendor/#{CONNECTOR_ZIP}")
|
30
|
+
CLOBBER.include("vendor/#{CONNECTOR_DIR}")
|
30
31
|
|
31
32
|
# vendor:mysql
|
32
|
-
task 'vendor:mysql' => ["vendor
|
33
|
+
task 'vendor:mysql' => ["vendor/#{CONNECTOR_DIR}/include/mysql.h"]
|
33
34
|
|
34
35
|
# hook into cross compilation vendored mysql dependency
|
35
36
|
if RUBY_PLATFORM =~ /mingw|mswin/ then
|
data/test/test_mysql.rb
CHANGED
@@ -30,7 +30,7 @@ class TC_Mysql < Test::Unit::TestCase
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def test_version()
|
33
|
-
assert_equal(
|
33
|
+
assert_equal(20802, Mysql::VERSION)
|
34
34
|
end
|
35
35
|
|
36
36
|
def test_init()
|
@@ -342,7 +342,7 @@ class TC_MysqlRes < Test::Unit::TestCase
|
|
342
342
|
assert_equal("t", f.table)
|
343
343
|
assert_equal(nil, f.def)
|
344
344
|
assert_equal(Mysql::Field::TYPE_STRING, f.type)
|
345
|
-
assert_equal(
|
345
|
+
assert_equal(30, f.length)
|
346
346
|
assert_equal(4, f.max_length)
|
347
347
|
assert_equal(0, f.flags)
|
348
348
|
assert_equal(0, f.decimals)
|
@@ -399,7 +399,7 @@ class TC_MysqlRes < Test::Unit::TestCase
|
|
399
399
|
"table" => "t",
|
400
400
|
"def" => nil,
|
401
401
|
"type" => Mysql::Field::TYPE_STRING,
|
402
|
-
"length" =>
|
402
|
+
"length" => 30,
|
403
403
|
"max_length" => 4,
|
404
404
|
"flags" => 0,
|
405
405
|
"decimals" => 0,
|
@@ -1305,12 +1305,16 @@ class TC_MysqlStmt2 < Test::Unit::TestCase
|
|
1305
1305
|
|
1306
1306
|
def test_insert_id()
|
1307
1307
|
if @m.server_version >= 40100 then
|
1308
|
-
@m.query("create temporary table t (i
|
1309
|
-
@s.prepare("insert into t values (
|
1310
|
-
@s.execute()
|
1308
|
+
@m.query("create temporary table t (i bigint auto_increment, unique(i))")
|
1309
|
+
@s.prepare("insert into t values (?)")
|
1310
|
+
@s.execute(0)
|
1311
1311
|
assert_equal(1, @s.insert_id())
|
1312
|
-
@s.execute()
|
1312
|
+
@s.execute(0)
|
1313
1313
|
assert_equal(2, @s.insert_id())
|
1314
|
+
@s.execute(2**32)
|
1315
|
+
assert_equal(2**32, @s.insert_id())
|
1316
|
+
@s.execute(0)
|
1317
|
+
assert_equal(2**32+1, @s.insert_id())
|
1314
1318
|
end
|
1315
1319
|
end
|
1316
1320
|
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mysql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 41
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 2
|
8
|
+
- 9
|
9
|
+
- 1
|
10
|
+
version: 2.9.1
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- TOMITA Masahiro
|
@@ -9,34 +15,63 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date:
|
13
|
-
default_executable:
|
18
|
+
date: 2013-02-16 00:00:00 Z
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
21
|
+
name: rdoc
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ~>
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 19
|
29
|
+
segments:
|
30
|
+
- 3
|
31
|
+
- 10
|
32
|
+
version: "3.10"
|
17
33
|
type: :development
|
18
|
-
|
19
|
-
|
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
|
20
40
|
requirements:
|
21
41
|
- - ~>
|
22
42
|
- !ruby/object:Gem::Version
|
23
|
-
|
24
|
-
|
43
|
+
hash: 61
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
- 8
|
47
|
+
- 1
|
48
|
+
version: 0.8.1
|
49
|
+
type: :development
|
50
|
+
version_requirements: *id002
|
25
51
|
- !ruby/object:Gem::Dependency
|
26
52
|
name: hoe
|
27
|
-
|
28
|
-
|
29
|
-
|
53
|
+
prerelease: false
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
30
56
|
requirements:
|
31
|
-
- -
|
57
|
+
- - ~>
|
32
58
|
- !ruby/object:Gem::Version
|
33
|
-
|
34
|
-
|
59
|
+
hash: 13
|
60
|
+
segments:
|
61
|
+
- 3
|
62
|
+
- 5
|
63
|
+
version: "3.5"
|
64
|
+
type: :development
|
65
|
+
version_requirements: *id003
|
35
66
|
description: |-
|
36
67
|
This is the MySQL API module for Ruby. It provides the same functions for Ruby
|
37
68
|
programs that the MySQL C API provides for C programs.
|
38
69
|
|
39
|
-
This is
|
70
|
+
This package is offered as gem for easy installation using RubyGems. It wraps
|
71
|
+
unmodified tmtm's mysql-ruby extension into a proper gem.
|
72
|
+
|
73
|
+
Please note that tmtm (Tomita Mashahiro) has deprecated development of this
|
74
|
+
extension and only update it for bug fixes.
|
40
75
|
email:
|
41
76
|
- tommy@tmtm.org
|
42
77
|
executables: []
|
@@ -60,12 +95,13 @@ files:
|
|
60
95
|
- extra/README_ja.html
|
61
96
|
- extra/tommy.css
|
62
97
|
- lib/mysql.rb
|
98
|
+
- lib/mysql/version.rb
|
63
99
|
- tasks/gem.rake
|
64
100
|
- tasks/native.rake
|
65
101
|
- tasks/vendor_mysql.rake
|
66
102
|
- test/test_mysql.rb
|
67
|
-
|
68
|
-
homepage: http://mysql-
|
103
|
+
- .gemtest
|
104
|
+
homepage: http://github.com/luislavena/mysql-gem
|
69
105
|
licenses: []
|
70
106
|
|
71
107
|
post_install_message:
|
@@ -74,23 +110,30 @@ rdoc_options:
|
|
74
110
|
- README.txt
|
75
111
|
require_paths:
|
76
112
|
- lib
|
77
|
-
- ext
|
78
113
|
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
79
115
|
requirements:
|
80
116
|
- - ">="
|
81
117
|
- !ruby/object:Gem::Version
|
82
|
-
|
83
|
-
|
118
|
+
hash: 57
|
119
|
+
segments:
|
120
|
+
- 1
|
121
|
+
- 8
|
122
|
+
- 7
|
123
|
+
version: 1.8.7
|
84
124
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
|
+
none: false
|
85
126
|
requirements:
|
86
127
|
- - ">="
|
87
128
|
- !ruby/object:Gem::Version
|
129
|
+
hash: 3
|
130
|
+
segments:
|
131
|
+
- 0
|
88
132
|
version: "0"
|
89
|
-
version:
|
90
133
|
requirements: []
|
91
134
|
|
92
135
|
rubyforge_project: mysql-win
|
93
|
-
rubygems_version: 1.
|
136
|
+
rubygems_version: 1.8.24
|
94
137
|
signing_key:
|
95
138
|
specification_version: 3
|
96
139
|
summary: This is the MySQL API module for Ruby
|