[ruby-oci8-commit] [567] trunk/ruby-oci8: Fix ruby version checking in binary gem.

nobody at rubyforge.org nobody at rubyforge.org
Tue Jun 11 02:36:35 UTC 2013


Revision: 567
Author:   kubo
Date:     2013-06-11 02:36:35 +0000 (Tue, 11 Jun 2013)
Log Message:
-----------
Fix ruby version checking in binary gem.
Gem::ruby_version of ruby 2.0.0p195 is 2.0.0.195, which doesn't match '= 2.0.0'.
close #36.

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

Modified: trunk/ruby-oci8/ChangeLog
===================================================================
--- trunk/ruby-oci8/ChangeLog	2013-03-30 09:45:14 UTC (rev 566)
+++ trunk/ruby-oci8/ChangeLog	2013-06-11 02:36:35 UTC (rev 567)
@@ -1,3 +1,9 @@
+2013-06-11  KUBO Takehiro  <kubo at jiubao.org>
+	* ruby-oci8.gemspec: fix ruby version checking in binary gem.
+	    Gem::ruby_version of ruby 2.0.0p195 is 2.0.0.195, which
+	    doesn't match '= 2.0.0'.
+	    (github issue #36 reported by sodonnel)
+
 2013-03-30  KUBO Takehiro  <kubo at jiubao.org>
 	* ext/oci8/oci8lib.c: fix potential SEGV when one connection
 	    is used by more than two threads and temporary lobs are

Modified: trunk/ruby-oci8/ruby-oci8.gemspec
===================================================================
--- trunk/ruby-oci8/ruby-oci8.gemspec	2013-03-30 09:45:14 UTC (rev 566)
+++ trunk/ruby-oci8/ruby-oci8.gemspec	2013-06-11 02:36:35 UTC (rev 567)
@@ -57,7 +57,7 @@
       if so_vers[0] < '2.0.0'
         s.required_ruby_version = "~> #{so_vermin}"
       else
-        s.required_ruby_version = "= #{so_vermin}"
+        s.required_ruby_version = "~> #{so_vermin}.0"
       end
     else
       puts "Binary gem for ruby #{so_vers.join(', ')}"



More information about the ruby-oci8-commit mailing list