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

ruby-changes:26585

From: naruse <ko1@a...>
Date: Fri, 28 Dec 2012 07:11:41 +0900 (JST)
Subject: [ruby-changes:26585] naruse:r38636 (trunk): * def/id.def: use split(/^/) instead of String#lines to support

naruse	2012-12-28 07:08:41 +0900 (Fri, 28 Dec 2012)

  New Revision: 38636

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

  Log:
    * def/id.def: use split(/^/) instead of String#lines to support
      Ruby 1.8.5 as BASERUBY.

  Modified files:
    trunk/ChangeLog
    trunk/defs/id.def

Index: defs/id.def
===================================================================
--- defs/id.def	(revision 38635)
+++ defs/id.def	(revision 38636)
@@ -47,7 +47,7 @@ global_ids = [] https://github.com/ruby/ruby/blob/trunk/defs/id.def#L47
 const_ids = []
 class_ids = []
 names = {}
-predefined.lines.each_with_index do |line, num|
+predefined.split(/^/).each_with_index do |line, num|
   next if /^#/ =~ line or (name, token = line.split; !name)
   token ||= name
   if /#/ =~ token
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38635)
+++ ChangeLog	(revision 38636)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Dec 28 07:07:43 2012  NARUSE, Yui  <naruse@r...>
+
+	* def/id.def: use split(/^/) instead of String#lines to support
+	  Ruby 1.8.5 as BASERUBY.
+
 Thu Dec 27 21:56:56 2012  NARUSE, Yui  <naruse@r...>
 
 	* variable.c (rb_mod_remove_const): fix segv caused by r38558.

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

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