[前][次][番号順一覧][スレッド一覧]

ruby-changes:17047

From: nahi <ko1@a...>
Date: Thu, 19 Aug 2010 17:05:18 +0900 (JST)
Subject: [ruby-changes:17047] Ruby:r29045 (ruby_1_8): * ext/openssl/lib/openssl/config.rb, test/openssl/test_config.rb:

nahi	2010-08-19 17:00:13 +0900 (Thu, 19 Aug 2010)

  New Revision: 29045

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29045

  Log:
    * ext/openssl/lib/openssl/config.rb, test/openssl/test_config.rb:
              cosmetic changes for 1.9 compatibility; let it run on 1.9 as-is.

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/ext/openssl/lib/openssl/config.rb
    branches/ruby_1_8/test/openssl/test_config.rb

Index: ruby_1_8/ext/openssl/lib/openssl/config.rb
===================================================================
--- ruby_1_8/ext/openssl/lib/openssl/config.rb	(revision 29044)
+++ ruby_1_8/ext/openssl/lib/openssl/config.rb	(revision 29045)
@@ -284,7 +284,7 @@
     def each
       @data.each do |section, hash|
         hash.each do |key, value|
-          yield(section, key, value)
+          yield [section, key, value]
         end
       end
     end
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 29044)
+++ ruby_1_8/ChangeLog	(revision 29045)
@@ -1,3 +1,8 @@
+Thu Aug 19 16:47:51 2010  NAKAMURA, Hiroshi  <nahi@r...>
+
+	* ext/openssl/lib/openssl/config.rb, test/openssl/test_config.rb:
+	  cosmetic changes for 1.9 compatibility; let it run on 1.9 as-is.
+
 Sun Aug 15 19:59:58 2010  Yuki Sonoda (Yugui)  <yugui@y...>
 
 	* lib/webrick/httpresponse.rb (WEBrick::HTTPResponse#set_error):
Index: ruby_1_8/test/openssl/test_config.rb
===================================================================
--- ruby_1_8/test/openssl/test_config.rb	(revision 29044)
+++ ruby_1_8/test/openssl/test_config.rb	(revision 29045)
@@ -19,7 +19,7 @@
   end
 
   def test_constants
-    assert(OpenSSL::Config.constants.include?('DEFAULT_CONFIG_FILE'))
+    assert(defined?(OpenSSL::Config::DEFAULT_CONFIG_FILE))
     assert_nothing_raised do
       OpenSSL::Config.load(OpenSSL::Config::DEFAULT_CONFIG_FILE)
     end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]