kwatch-mysql-ruby 2.8.0.1 → 2.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <!-- $Id: README.html 237 2008-09-29 15:03:04Z tommy $ -->
2
+ <!-- $Id: README.html 244 2009-02-01 08:43:39Z tommy $ -->
3
3
  <html>
4
4
  <head>
5
5
  <meta http-equiv="content-style-type" content="text/css">
@@ -22,8 +22,8 @@
22
22
 
23
23
  <h2>Requirement</h2>
24
24
  <ul>
25
- <li>MySQL 5.0.51a
26
- <li>Ruby 1.8.2-1.8.7, 1.9.0
25
+ <li>MySQL 5.0.67
26
+ <li>Ruby 1.8.7, 1.9.1
27
27
  </ul>
28
28
  <p>
29
29
  The module may work for other versions, but that has not been verified.
@@ -818,6 +818,13 @@ st.close
818
818
 
819
819
  <h2>History</h2>
820
820
  <dl>
821
+ <dt>2009-02-01
822
+ <dd>
823
+ version 2.8.1<br>
824
+ <ul>
825
+ <li>correspond to Ruby 1.9.1
826
+ </ul>
827
+
821
828
  <dt>2008-09-29
822
829
  <dd>
823
830
  version 2.8<br>
@@ -1085,7 +1092,7 @@ st.close
1085
1092
  <address><a href="mailto:tommy@tmtm.org">TOMITA Masahiro</a></address>
1086
1093
  <!-- Created: Sun Aug 29 11:52:09 JST 2004 -->
1087
1094
  <!-- hhmts start -->
1088
- Last modified: Tue Sep 30 00:01:21 JST 2008
1095
+ Last modified: Sun Feb 1 17:40:49 JST 2009
1089
1096
  <!-- hhmts end -->
1090
1097
  </body>
1091
1098
  </html>
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <!-- $Id: README_ja.html 237 2008-09-29 15:03:04Z tommy $ -->
2
+ <!-- $Id: README_ja.html 244 2009-02-01 08:43:39Z tommy $ -->
3
3
  <html>
4
4
  <head>
5
5
  <meta http-equiv="content-style-type" content="text/css">
@@ -21,8 +21,8 @@
21
21
 
22
22
  <h2>ɬ�פʤ��</h2>
23
23
  <ul>
24
- <li>MySQL 5.0.51a
25
- <li>Ruby 1.8.2��1.8.7, 1.9.0
24
+ <li>MySQL 5.0.67
25
+ <li>Ruby 1.8.7, 1.9.1
26
26
  </ul>
27
27
  <p>
28
28
  �����ʳ��Ǥ� make �Ǥ��뤫�⤷��ޤ��󤬡���ǧ���Ƥޤ���
@@ -899,6 +899,13 @@ st.close
899
899
 
900
900
  <h2>����</h2>
901
901
  <dl>
902
+ <dt>2009-02-01
903
+ <dd>
904
+ version 2.8.1<br>
905
+ <ul>
906
+ <li>Ruby 1.9.1 �����
907
+ </ul>
908
+
902
909
  <dt>2008-09-29
903
910
  <dd>
904
911
  version 2.8<br>
@@ -1310,7 +1317,7 @@ st.close
1310
1317
  <address><a href="mailto:tommy@tmtm.org">TOMITA Masahiro</a></address>
1311
1318
  <!-- Created: Sun Aug 29 11:52:09 JST 2004 -->
1312
1319
  <!-- hhmts start -->
1313
- Last modified: Tue Sep 30 00:01:32 JST 2008
1320
+ Last modified: Sun Feb 1 17:41:18 JST 2009
1314
1321
  <!-- hhmts end -->
1315
1322
  </body>
1316
1323
  </html>
@@ -61,6 +61,7 @@ end
61
61
 
62
62
  have_func('mysql_ssl_set')
63
63
  have_func('rb_str_set_len')
64
+ have_func('rb_thread_start_timer')
64
65
 
65
66
  if have_header('mysql.h') then
66
67
  src = "#include <errmsg.h>\n#include <mysqld_error.h>\n"
@@ -1,5 +1,5 @@
1
1
  /* ruby mysql module
2
- * $Id: mysql.c 232 2008-08-19 14:48:50Z tommy $
2
+ * $Id: mysql.c 244 2009-02-01 08:43:39Z tommy $
3
3
  */
4
4
  #define ulong unsigned long
5
5
 
@@ -11,22 +11,20 @@
11
11
  #define RSTRING_LEN(str) RSTRING(str)->len
12
12
  #endif
13
13
  #ifndef RARRAY_PTR
14
- #define RARRAY_PTR(str) RARRAY(str)->ptr
14
+ #define RARRAY_PTR(ary) RARRAY(ary)->ptr
15
15
  #endif
16
16
  #ifndef HAVE_RB_STR_SET_LEN
17
17
  #define rb_str_set_len(str, length) (RSTRING_LEN(str) = (length))
18
18
  #endif
19
19
 
20
- #ifdef HAVE_RUBY_ENCODING_H
21
- /* Ruby 1.9.1 */
22
- #define rb_thread_start_timer() rb_thread_start_timer_thread()
23
- #define rb_thread_stop_timer() rb_thread_stop_timer_thread()
24
- void rb_thread_start_timer_thread(void);
25
- void rb_thread_stop_timer_thread(void);
26
- #else
20
+ #ifdef HAVE_RB_THREAD_START_TIMER
27
21
  /* Ruby 1.8.x */
28
22
  void rb_thread_start_timer(void);
29
23
  void rb_thread_stop_timer(void);
24
+ #else
25
+ /* Ruby 1.9.1 */
26
+ #define rb_thread_start_timer()
27
+ #define rb_thread_stop_timer()
30
28
  #endif
31
29
 
32
30
  #ifdef HAVE_MYSQL_H
@@ -39,7 +37,7 @@ void rb_thread_stop_timer(void);
39
37
  #include <mysql/mysqld_error.h>
40
38
  #endif
41
39
 
42
- #define MYSQL_RUBY_VERSION 20800
40
+ #define MYSQL_RUBY_VERSION 20801
43
41
 
44
42
  #define GC_STORE_RESULT_LIMIT 20
45
43
 
@@ -1403,6 +1401,7 @@ static VALUE stmt_execute(int argc, VALUE *argv, VALUE obj)
1403
1401
  VALUE a = rb_funcall(argv[i], rb_intern("to_a"), 0);
1404
1402
  s->param.bind[i].buffer_type = MYSQL_TYPE_DATETIME;
1405
1403
  s->param.bind[i].buffer = &(s->param.buffer[i]);
1404
+ memset(&t, 0, sizeof(t)); /* avoid warning */
1406
1405
  t.second_part = 0;
1407
1406
  t.neg = 0;
1408
1407
  t.second = FIX2INT(RARRAY_PTR(a)[0]);
@@ -1416,6 +1415,7 @@ static VALUE stmt_execute(int argc, VALUE *argv, VALUE obj)
1416
1415
  MYSQL_TIME t;
1417
1416
  s->param.bind[i].buffer_type = MYSQL_TYPE_DATETIME;
1418
1417
  s->param.bind[i].buffer = &(s->param.buffer[i]);
1418
+ memset(&t, 0, sizeof(t)); /* avoid warning */
1419
1419
  t.second_part = 0;
1420
1420
  t.neg = 0;
1421
1421
  t.second = NUM2INT(rb_iv_get(argv[i], "second"));
@@ -4,7 +4,7 @@ spec = Gem::Specification.new do |s|
4
4
  s.name = "mysql-ruby"
5
5
  s.author = "Masahiro TOMITA"
6
6
  s.email = "tommy.(at).tmtm.org"
7
- s.version = "2.8.0.1"
7
+ s.version = "2.8.1"
8
8
  s.date = "2008-09-29"
9
9
  #s.platform = Gem::Platform::RUBY
10
10
  s.homepage = "http://www.tmtm.org/mysql/ruby/"
data/test.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/local/bin/ruby
2
- # $Id: test.rb 218 2008-06-17 05:36:44Z tommy $
2
+ # $Id: test.rb 244 2009-02-01 08:43:39Z tommy $
3
3
 
4
4
  require "test/unit"
5
5
  require "./mysql.o"
@@ -16,7 +16,7 @@ class TC_Mysql < Test::Unit::TestCase
16
16
  end
17
17
 
18
18
  def test_version()
19
- assert_equal(20800, Mysql::VERSION)
19
+ assert_equal(20801, Mysql::VERSION)
20
20
  end
21
21
 
22
22
  def test_init()
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kwatch-mysql-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0.1
4
+ version: 2.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masahiro TOMITA