ruby-changes:38409
From: hsbt <ko1@a...>
Date: Thu, 14 May 2015 15:54:46 +0900 (JST)
Subject: [ruby-changes:38409] hsbt:r50490 (trunk): * ext/pathname/lib/pathname.rb: Remove condition of RUBY_VERSION <= 1.9.
hsbt 2015-05-14 15:54:22 +0900 (Thu, 14 May 2015) New Revision: 50490 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50490 Log: * ext/pathname/lib/pathname.rb: Remove condition of RUBY_VERSION <= 1.9. [Feature #11082] Modified files: trunk/ChangeLog trunk/ext/pathname/lib/pathname.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 50489) +++ ChangeLog (revision 50490) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu May 14 15:54:13 2015 SHIBATA Hiroshi <hsbt@r...> + + * ext/pathname/lib/pathname.rb: Remove condition of RUBY_VERSION <= 1.9. + [Feature #11082] + Wed May 13 17:10:37 2015 Masaki Matsushita <glass.saga@g...> * enum.c (enum_to_a): revert r50457. Index: ext/pathname/lib/pathname.rb =================================================================== --- ext/pathname/lib/pathname.rb (revision 50489) +++ ext/pathname/lib/pathname.rb (revision 50490) @@ -13,13 +13,8 @@ require 'pathname.so' https://github.com/ruby/ruby/blob/trunk/ext/pathname/lib/pathname.rb#L13 class Pathname - # :stopdoc: - if RUBY_VERSION < "1.9" - TO_PATH = :to_str - else - # to_path is implemented so Pathname objects are usable with File.open, etc. - TO_PATH = :to_path - end + # to_path is implemented so Pathname objects are usable with File.open, etc. + TO_PATH = :to_path SAME_PATHS = if File::FNM_SYSCASE.nonzero? # Avoid #zero? here because #casecmp can return nil. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/