Mailinglist Archive: opensuse-commit (1028 mails)
| < Previous | Next > |
commit ruby-mysql
- From: root@xxxxxxx (h_root)
- Date: Mon, 19 Jun 2006 23:57:29 +0200 (CEST)
- Message-id: <20060619215729.97CE471A62@xxxxxxxxxxxxxxx>
Hello community,
here is the log from the commit of package ruby-mysql
checked in at Mon Jun 19 23:57:28 CEST 2006.
--------
--- ruby-mysql/ruby-mysql.changes 2006-01-25 21:41:15.000000000 +0100
+++ ruby-mysql/ruby-mysql.changes 2006-06-19 22:19:43.000000000 +0200
@@ -1,0 +2,6 @@
+Sun Jun 4 21:45:27 CEST 2006 - mrueckert@xxxxxxx
+
+- Update to version 2.7.1
+ * change free() to xfree()
+
+-------------------------------------------------------------------
Old:
----
mysql-ruby-2.7.tar.gz
New:
----
mysql-ruby-2.7.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ruby-mysql.spec ++++++
--- /var/tmp/diff_new_pack.CRuZ5Z/_old 2006-06-19 23:57:20.000000000 +0200
+++ /var/tmp/diff_new_pack.CRuZ5Z/_new 2006-06-19 23:57:20.000000000 +0200
@@ -1,26 +1,31 @@
#
-# spec file for package ruby-mysql (Version 2.7)
+# spec file for package ruby-mysql (Version 2.7.1)
#
-# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
-# Please submit bugfixes or comments via http://www.suse.de/feedback/
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: ruby-mysql
-BuildRequires: mysql-devel ruby-devel
%define rb_pkg mysql-ruby
-Version: 2.7
+#
+Version: 2.7.1
Release: 1
+#
License: Other uncritical OpenSource License
Group: Development/Languages/Ruby
+#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
+BuildRequires: mysql-devel ruby-devel
+#
URL: http://www.tmtm.org/en/mysql/ruby/
Source: http://tmtm.org/downloads/mysql/ruby/%{rb_pkg}-%{version}.tar.gz
Patch: ruby-mysql-2.7_gcc4.patch
+#
Summary: MySQL bindings for Ruby
%description
@@ -64,6 +69,9 @@
%{_datadir}/ri/*Mysql*
%changelog -n ruby-mysql
+* Sun Jun 04 2006 - mrueckert@xxxxxxx
+- Update to version 2.7.1
+ * change free() to xfree()
* Wed Jan 25 2006 - mls@xxxxxxx
- converted neededforbuild to BuildRequires
* Mon Sep 26 2005 - mrueckert@xxxxxxx
++++++ mysql-ruby-2.7.tar.gz -> mysql-ruby-2.7.1.tar.gz ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/mysql-ruby-2.7/README.html new/mysql-ruby-2.7.1/README.html
--- old/mysql-ruby-2.7/README.html 2005-08-21 17:20:45.000000000 +0200
+++ new/mysql-ruby-2.7.1/README.html 2006-06-04 16:39:53.000000000 +0200
@@ -1,5 +1,5 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<!-- $Id: README.html,v 1.16 2005/08/21 15:20:45 tommy Exp $ -->
+<!-- $Id: README.html,v 1.18 2006/06/04 14:39:53 tommy Exp $ -->
<html>
<head>
<meta http-equiv="content-style-type" content="text/css">
@@ -22,8 +22,8 @@
<h2>Requirement</h2>
<ul>
- <li>MySQL 4.0.22/4.1.13/5.0.11
- <li>Ruby 1.8.2
+ <li>MySQL 4.1.15/5.0.16
+ <li>Ruby 1.8.4
</ul>
<p>
The module may work for other versions, but that has not been verified.
@@ -811,6 +811,13 @@
<h2>History</h2>
<dl>
+ <dt>2006-06-04
+ <dd>
+ version 2.7.1
+ <ul>
+ <li>change free() to xfree(). To avoid crash on Windows. (Thanks Tobias Grimm)
+ </ul>
+
<dt>2005-08-22
<dd>
version 2.7
@@ -1004,7 +1011,7 @@
<address><a href="mailto:tommy@xxxxxxxx">TOMITA Masahiro</a></address>
<!-- Created: Sun Aug 29 11:52:09 JST 2004 -->
<!-- hhmts start -->
-Last modified: Mon Aug 22 00:20:00 JST 2005
+Last modified: Sun Jun 4 23:39:34 JST 2006
<!-- hhmts end -->
</body>
</html>
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/mysql-ruby-2.7/README_ja.html new/mysql-ruby-2.7.1/README_ja.html
--- old/mysql-ruby-2.7/README_ja.html 2005-08-21 17:20:45.000000000 +0200
+++ new/mysql-ruby-2.7.1/README_ja.html 2006-06-04 16:39:53.000000000 +0200
@@ -1,5 +1,5 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<!-- $Id: README_ja.html,v 1.20 2005/08/21 15:20:45 tommy Exp $ -->
+<!-- $Id: README_ja.html,v 1.22 2006/06/04 14:39:53 tommy Exp $ -->
<html>
<head>
<meta http-equiv="content-style-type" content="text/css">
@@ -21,8 +21,8 @@
<h2>ɬÍפʤâ¤Î</h2>
<ul>
- <li>MySQL 4.0.22/4.1.13/5.0.11
- <li>Ruby 1.8.2
+ <li>MySQL 4.1.15/5.0.16
+ <li>Ruby 1.8.4
</ul>
<p>
¤³¤ì¤é°Ê³°¤Ç¤â make ¤Ç¤¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¤¬¡¢³Îǧ¤·¤Æ¤Þ¤»¤ó¡£
@@ -891,6 +891,13 @@
<h2>ÍúÎò</h2>
<dl>
+ <dt>2006-06-04
+ <dd>
+ version 2.7.1
+ <ul>
+ <li>free() ¤ò xfree() ¤ËÊѹ¹¡£Windows ¤Ç¤Î¥¯¥é¥Ã¥·¥å¤Î²óÈò¤Î¤¿¤á¡£(Tobias Grimm ¤Ë´¶¼Õ)
+ </ul>
+
<dt>2005-08-22
<dd>
version 2.7
@@ -1228,7 +1235,7 @@
<address><a href="mailto:tommy@xxxxxxxx">TOMITA Masahiro</a></address>
<!-- Created: Sun Aug 29 11:52:09 JST 2004 -->
<!-- hhmts start -->
-Last modified: Mon Aug 22 00:19:08 JST 2005
+Last modified: Sun Jun 4 23:39:20 JST 2006
<!-- hhmts end -->
</body>
</html>
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/mysql-ruby-2.7/mysql.c.in new/mysql-ruby-2.7.1/mysql.c.in
--- old/mysql-ruby-2.7/mysql.c.in 2005-08-21 17:15:38.000000000 +0200
+++ new/mysql-ruby-2.7.1/mysql.c.in 2006-06-04 16:29:28.000000000 +0200
@@ -1,5 +1,5 @@
/* ruby mysql module
- * $Id: mysql.c.in,v 1.30 2005/08/21 15:15:38 tommy Exp $
+ * $Id: mysql.c.in,v 1.32 2006/06/04 14:29:28 tommy Exp $
*/
#include "ruby.h"
@@ -14,7 +14,7 @@
#include <mysql/mysqld_error.h>
#endif
-#define MYSQL_RUBY_VERSION 20700
+#define MYSQL_RUBY_VERSION 20701
#define GC_STORE_RESULT_LIMIT 20
@@ -92,7 +92,7 @@
{
if (my->connection == Qtrue)
mysql_close(&my->handler);
- free(my);
+ xfree(my);
}
static void free_mysqlres(struct mysql_res* resp)
@@ -101,7 +101,7 @@
mysql_free_result(resp->res);
store_result_count--;
}
- free(resp);
+ xfree(resp);
}
#if MYSQL_VERSION_ID >= 40101
@@ -151,7 +151,7 @@
mysql_stmt_close(s->stmt);
if (s->res)
mysql_free_result(s->res);
- free(s);
+ xfree(s);
}
#endif
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/mysql-ruby-2.7/test.rb new/mysql-ruby-2.7.1/test.rb
--- old/mysql-ruby-2.7/test.rb 2005-08-21 17:12:34.000000000 +0200
+++ new/mysql-ruby-2.7.1/test.rb 2006-06-04 16:39:53.000000000 +0200
@@ -1,5 +1,5 @@
#!/usr/local/bin/ruby
-# $Id: test.rb,v 1.16 2005/08/21 15:12:34 tommy Exp $
+# $Id: test.rb,v 1.18 2006/06/04 14:39:53 tommy Exp $
require "test/unit"
require "./mysql.o"
@@ -16,7 +16,7 @@
end
def test_version()
- assert_equal(20700, Mysql::VERSION)
+ assert_equal(20701, Mysql::VERSION)
end
def test_init()
@@ -796,7 +796,11 @@
assert_equal([-1], @s.fetch)
assert_equal([9223372036854775807], @s.fetch)
assert_equal([-9223372036854775808], @s.fetch)
- assert_equal([-1], @s.fetch) # MySQL problem
+ if @m.server_version >= 50000 then
+ assert_equal([9223372036854775807], @s.fetch)
+ else
+ assert_equal([-1], @s.fetch) # MySQL problem
+ end
assert_equal([-9223372036854775808], @s.fetch)
assert_equal([9223372036854775807], @s.fetch)
end
@@ -809,7 +813,11 @@
@s.prepare("select i from t")
@s.execute
assert_equal([0], @s.fetch)
- assert_equal([-1], @s.fetch) # MySQL & MySQL/Ruby problem
+ if @m.server_version >= 50000 then
+ assert_equal([0], @s.fetch)
+ else
+ assert_equal([-1], @s.fetch) # MySQL & MySQL/Ruby problem
+ end
assert_equal([9223372036854775807], @s.fetch)
if @m.server_version < 50000 then
assert_equal([-9223372036854775808], @s.fetch) # MySQL problem
@@ -857,12 +865,10 @@
@s.prepare("select i from t")
@s.execute
assert_equal([0], @s.fetch)
- assert_equal(-Float::MAX, @s.fetch[0])
- if Mysql.client_version <= 40109 then # higher version has bug
- assert_equal(-Float::MIN, @s.fetch[0])
- assert_equal(Float::MIN, @s.fetch[0])
- assert_equal(Float::MAX, @s.fetch[0])
- end
+ assert_in_delta(-Float::MAX, @s.fetch[0], Float::EPSILON)
+ assert_in_delta(-Float::MIN, @s.fetch[0], Float::EPSILON)
+ assert_in_delta(Float::MIN, @s.fetch[0], Float::EPSILON)
+ assert_in_delta(Float::MAX, @s.fetch[0], Float::EPSILON)
end
end
@@ -874,11 +880,9 @@
@s.execute
assert_equal([0], @s.fetch)
assert_equal([0], @s.fetch)
- if Mysql.client_version <= 40109 then # higher version has bug
- assert_equal([0], @s.fetch)
- assert_equal(Float::MIN, @s.fetch[0])
- assert_equal(Float::MAX, @s.fetch[0])
- end
+ assert_equal([0], @s.fetch)
+ assert_in_delta(Float::MIN, @s.fetch[0], Float::EPSILON)
+ assert_in_delta(Float::MAX, @s.fetch[0], Float::EPSILON)
end
end
@@ -943,11 +947,11 @@
def test_fetch_timestamp()
if @m.server_version >= 40100 then
@m.query("create temporary table t (i timestamp)")
- @m.query("insert into t values ('1970-01-01 12:00:00'),('2037-12-31 23:59:59')")
+ @m.query("insert into t values ('1970-01-02 00:00:00'),('2037-12-30 23:59:59')")
@s.prepare("select i from t")
@s.execute
- assert_equal([Mysql::Time.new(1970,1,1,12,0,0)], @s.fetch)
- assert_equal([Mysql::Time.new(2037,12,31,23,59,59)], @s.fetch)
+ assert_equal([Mysql::Time.new(1970,1,2,0,0,0)], @s.fetch)
+ assert_equal([Mysql::Time.new(2037,12,30,23,59,59)], @s.fetch)
end
end
@@ -1006,7 +1010,11 @@
@s.prepare("select i from t")
@s.execute
assert_equal([nil], @s.fetch)
- assert_equal(["abc"], @s.fetch)
+ if @m.server_version >= 50000 then
+ assert_equal(["abc\0\0\0\0\0\0\0"], @s.fetch)
+ else
+ assert_equal(["abc"], @s.fetch)
+ end
end
end
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit-unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit-help@xxxxxxxxxxxx
| < Previous | Next > |