[ruby-oci8-commit] [495] trunk/ruby-oci8: fix warning: string literal in condition.

nobody at rubyforge.org nobody at rubyforge.org
Sun Mar 11 11:36:17 UTC 2012


Revision: 495
Author:   kubo
Date:     2012-03-11 11:36:17 +0000 (Sun, 11 Mar 2012)
Log Message:
-----------
fix warning: string literal in condition.
(pointed by andynu at github)

Modified Paths:
--------------
    trunk/ruby-oci8/ChangeLog
    trunk/ruby-oci8/ruby-oci8.gemspec

Modified: trunk/ruby-oci8/ChangeLog
===================================================================
--- trunk/ruby-oci8/ChangeLog	2012-01-22 14:34:17 UTC (rev 494)
+++ trunk/ruby-oci8/ChangeLog	2012-03-11 11:36:17 UTC (rev 495)
@@ -1,3 +1,7 @@
+2012-03-11  KUBO Takehiro  <kubo at jiubao.org>
+	* ruby-oci8.gemspec: fix warning: string literal in condition.
+	    (pointed by andynu at github)
+
 2012-01-22  KUBO Takehiro  <kubo at jiubao.org>
 	* ext/oci8/ocinumber.c: Use isnan() and isinf() instead of fpclassify()
 	    for platforms which don't have fpclassify().

Modified: trunk/ruby-oci8/ruby-oci8.gemspec
===================================================================
--- trunk/ruby-oci8/ruby-oci8.gemspec	2012-01-22 14:34:17 UTC (rev 494)
+++ trunk/ruby-oci8/ruby-oci8.gemspec	2012-03-11 11:36:17 UTC (rev 495)
@@ -55,8 +55,8 @@
       raise "No compiled binary are found. Run make in advance."
     end
     # add map files to analyze a core (minidump) file.
-    so_files << 'ext/oci8/oci8lib_18.map' if has_1_8 and 'ext/coi8/oci8lib_18.map'
-    so_files << 'ext/oci8/oci8lib_191.map' if has_1_9_1 and 'ext/coi8/oci8lib_191.map'
+    so_files << 'ext/oci8/oci8lib_18.map' if has_1_8 and File.exists? 'ext/oci8/oci8lib_18.map'
+    so_files << 'ext/oci8/oci8lib_191.map' if has_1_9_1 and File.exists? 'ext/oci8/oci8lib_191.map'
 
     FileUtils.copy so_files, 'lib', :preserve => true
     files.reject! do |fname|



More information about the ruby-oci8-commit mailing list