ruby-changes:36355
From: usa <ko1@a...>
Date: Sat, 15 Nov 2014 19:46:45 +0900 (JST)
Subject: [ruby-changes:36355] usa:r48436 (trunk): revert previous commit.
usa 2014-11-15 19:46:38 +0900 (Sat, 15 Nov 2014) New Revision: 48436 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48436 Log: revert previous commit. Modified files: trunk/ChangeLog trunk/lib/mkmf.rb trunk/lib/rubygems/core_ext/kernel_require.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 48435) +++ ChangeLog (revision 48436) @@ -1,10 +1,3 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 -Sat Nov 15 19:40:34 2014 NAKAMURA Usaku <usa@r...> - - * lib/mkmf.rb (depend_rules): support comments during a line. - - * lib/mkmf.rb (depend_rules): apply RULE_SUBST even if the dependency - file contains path. - Sat Nov 15 19:25:46 2014 Tanaka Akira <akr@f...> * common.mk: Remove comments in Dependency lines. Index: lib/rubygems/core_ext/kernel_require.rb =================================================================== --- lib/rubygems/core_ext/kernel_require.rb (revision 48435) +++ lib/rubygems/core_ext/kernel_require.rb (revision 48436) @@ -66,7 +66,7 @@ module Kernel https://github.com/ruby/ruby/blob/trunk/lib/rubygems/core_ext/kernel_require.rb#L66 begin RUBYGEMS_ACTIVATION_MONITOR.exit - return gem_original_require(spec.to_fullpath(path) || path) + return gem_original_require(path) end if spec # Attempt to find +path+ in any unresolved gems... Index: lib/mkmf.rb =================================================================== --- lib/mkmf.rb (revision 48435) +++ lib/mkmf.rb (revision 48436) @@ -2050,11 +2050,8 @@ RULES https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L2050 suffixes << m[1] << m[2] implicit = [[m[1], m[2]], [m.post_match]] next - elsif RULE_SUBST and /\A(?!\s*\w+\s*=)[$\w][^#]*:/ =~ line - line.sub!(%r'(\s)*\#.*$', '') - comment = $& || '' - line.gsub!(%r"(\s)(?!\.)([^$(){}+=:\s\\,]+)(?=\s|\z)") {$1 + RULE_SUBST % $2} - line = line.chomp + comment + "\n" + elsif RULE_SUBST and /\A(?!\s*\w+\s*=)[$\w][^#]*:/ =~ line + line.gsub!(%r"(\s)(?!\.)([^$(){}+=:\s\/\\,]+)(?=\s|\z)") {$1 + RULE_SUBST % $2} end depout << line end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/