[ruby-oci8-commit] [564] trunk/ruby-oci8: Revert the previous commit in ruby-oci8.gemspec.

nobody at rubyforge.org nobody at rubyforge.org
Sat Mar 9 11:35:12 UTC 2013


Revision: 564
Author:   kubo
Date:     2013-03-09 11:35:12 +0000 (Sat, 09 Mar 2013)
Log Message:
-----------
Revert the previous commit in ruby-oci8.gemspec.

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

Modified: trunk/ruby-oci8/ChangeLog
===================================================================
--- trunk/ruby-oci8/ChangeLog	2013-03-09 11:05:23 UTC (rev 563)
+++ trunk/ruby-oci8/ChangeLog	2013-03-09 11:35:12 UTC (rev 564)
@@ -1,4 +1,9 @@
 2013-03-09  KUBO Takehiro  <kubo at jiubao.org>
+	* ruby-oci8.gemspec: revert the previous commit because old
+	    rubygems doesn't support:
+	       required_ruby_version = ['>= 1.8.0', '<= 2.0.0']
+
+2013-03-09  KUBO Takehiro  <kubo at jiubao.org>
 	* NEWS: add changes between 2.1.5 and 2.1.4
 	* VERSION: change the version to 2.1.5.
 	* docs/platform-specific-issues.md: remove obsolete description.

Modified: trunk/ruby-oci8/ruby-oci8.gemspec
===================================================================
--- trunk/ruby-oci8/ruby-oci8.gemspec	2013-03-09 11:05:23 UTC (rev 563)
+++ trunk/ruby-oci8/ruby-oci8.gemspec	2013-03-09 11:35:12 UTC (rev 564)
@@ -45,9 +45,9 @@
     end
 
     # least version in so_vers
-    dotted_vers = so_vers.collect do |ver|
+    so_vermin = so_vers.collect do |ver|
       "#$1.#$2.#{$3||'0'}" if /^(?:rbx)?(\d)(\d)(\d)?/ =~ ver
-    end.sort
+    end.sort.first
 
     case so_vers.length
     when 0
@@ -55,18 +55,13 @@
     when 1
       puts "Binary gem for ruby #{so_vers.first}"
       if so_vers[0] < '2.0.0'
-        s.required_ruby_version = "~> #{dotted_vers.first}"
+        s.required_ruby_version = "~> #{so_vermin}"
       else
-        s.required_ruby_version = "= #{dotted_vers.first}"
+        s.required_ruby_version = "= #{so_vermin}"
       end
     else
       puts "Binary gem for ruby #{so_vers.join(', ')}"
-      s.required_ruby_version = [">= #{dotted_vers.first}",
-                                 case dotted_vers.last
-                                 when '1.9.0', '1.9.1' then '< 2.0.0'
-                                 else "<= #{dotted_vers.last}"
-                                 end
-                                ]
+      s.required_ruby_version = ">= #{so_vermin}"
     end
 
     FileUtils.copy so_files, 'lib', :preserve => true



More information about the ruby-oci8-commit mailing list