[ruby-oci8-commit] [259] trunk/ruby-oci8: * metaconfig: add '-w' when running test cases.

nobody at rubyforge.org nobody at rubyforge.org
Tue Apr 8 02:49:49 EDT 2008


Revision: 259
Author:   kubo
Date:     2008-04-08 02:49:49 -0400 (Tue, 08 Apr 2008)

Log Message:
-----------
* metaconfig: add '-w' when running test cases.
* test/test_metadata.rb: suppress warning: "shadowing outer local variable - i."
* ext/oci8/stmt.c: suppress warning: "warning: instance variable
    @max_array_size not initialized" at lib/oci8/oci8.rb:375.

Modified Paths:
--------------
    trunk/ruby-oci8/ChangeLog
    trunk/ruby-oci8/ext/oci8/stmt.c
    trunk/ruby-oci8/metaconfig
    trunk/ruby-oci8/test/test_metadata.rb

Modified: trunk/ruby-oci8/ChangeLog
===================================================================
--- trunk/ruby-oci8/ChangeLog	2008-04-08 02:51:31 UTC (rev 258)
+++ trunk/ruby-oci8/ChangeLog	2008-04-08 06:49:49 UTC (rev 259)
@@ -1,3 +1,9 @@
+2008-04-08  KUBO Takehiro  <kubo at jiubao.org>
+	* metaconfig: add '-w' when running test cases.
+	* test/test_metadata.rb: suppress warning: "shadowing outer local variable - i."
+	* ext/oci8/stmt.c: suppress warning: "warning: instance variable
+	    @max_array_size not initialized" at lib/oci8/oci8.rb:375.
+
 2008-03-29  KUBO Takehiro  <kubo at jiubao.org>
 	* ext/oci8/encoding.c, ext/oci8/extconf.rb, ext/oci8/oci8.h
 	  ext/oci8/oci8lib.c: add a new file encoding.c.

Modified: trunk/ruby-oci8/ext/oci8/stmt.c
===================================================================
--- trunk/ruby-oci8/ext/oci8/stmt.c	2008-04-08 02:51:31 UTC (rev 258)
+++ trunk/ruby-oci8/ext/oci8/stmt.c	2008-04-08 06:49:49 UTC (rev 259)
@@ -82,6 +82,7 @@
     rb_ivar_set(stmt->base.self, id_at_column_metadata, rb_ary_new());
     rb_ivar_set(stmt->base.self, id_at_names, Qnil);
     rb_ivar_set(stmt->base.self, id_at_con, svc);
+    rb_ivar_set(stmt->base.self, id_at_max_array_size, Qnil);
 
     if (argc > 1) {
         rv = OCIStmtPrepare(stmt->base.hp.stmt, oci8_errhp, RSTRING_ORATEXT(sql), RSTRING_LEN(sql), OCI_NTV_SYNTAX, OCI_DEFAULT);

Modified: trunk/ruby-oci8/metaconfig
===================================================================
--- trunk/ruby-oci8/metaconfig	2008-04-08 02:51:31 UTC (rev 258)
+++ trunk/ruby-oci8/metaconfig	2008-04-08 06:49:49 UTC (rev 259)
@@ -10,7 +10,7 @@
     old = Dir.pwd
     @installer.mkdir_p "#{objdir_root}/test"
     Dir.chdir "#{objdir_root}/test"
-    @installer.ruby("-I#{srcdir_root}/ext/oci8 -I#{srcdir_root}/lib -I#{srcdir_root}/support -I#{srcdir_root}/test #{srcdir_root}/test/test_all.rb")
+    @installer.ruby("-w -I#{srcdir_root}/ext/oci8 -I#{srcdir_root}/lib -I#{srcdir_root}/support -I#{srcdir_root}/test #{srcdir_root}/test/test_all.rb")
     Dir.chdir old
   end
 

Modified: trunk/ruby-oci8/test/test_metadata.rb
===================================================================
--- trunk/ruby-oci8/test/test_metadata.rb	2008-04-08 02:51:31 UTC (rev 258)
+++ trunk/ruby-oci8/test/test_metadata.rb	2008-04-08 06:49:49 UTC (rev 259)
@@ -145,7 +145,7 @@
 
     drop_table('test_table')
     sql = <<-EOS
-CREATE TABLE test_table (#{i = 0; coldef.collect do |c| i += 1; "C#{i} " + c[1]; end.join(',')})
+CREATE TABLE test_table (#{idx = 0; coldef.collect do |c| idx += 1; "C#{idx} " + c[1]; end.join(',')})
 STORAGE (
    INITIAL 100k
    NEXT 100k




More information about the ruby-oci8-commit mailing list