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

ruby-changes:29767

From: kou <ko1@a...>
Date: Sun, 7 Jul 2013 11:50:47 +0900 (JST)
Subject: [ruby-changes:29767] kou:r41819 (trunk): * lib/rexml/text.rb (REXML::Text#<<): Support appending in not

kou	2013-07-07 11:50:38 +0900 (Sun, 07 Jul 2013)

  New Revision: 41819

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

  Log:
    * lib/rexml/text.rb (REXML::Text#<<): Support appending in not
      "raw" mode. [Bug #8602] [ruby-dev:47482]
      Reported by Ippei Obayashi. Thanks!!!
    * test/rexml/test_text.rb (TextTester#test_shift_operator_cache):
      Add a test for the above case.

  Modified files:
    trunk/ChangeLog
    trunk/lib/rexml/text.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41818)
+++ ChangeLog	(revision 41819)
@@ -1,3 +1,11 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Jul  7 11:49:19 2013  Kouhei Sutou  <kou@c...>
+
+	* lib/rexml/text.rb (REXML::Text#<<): Support appending in not
+	  "raw" mode. [Bug #8602] [ruby-dev:47482]
+	  Reported by Ippei Obayashi. Thanks!!!
+	* test/rexml/test_text.rb (TextTester#test_shift_operator_cache):
+	  Add a test for the above case.
+
 Sun Jul  7 11:43:13 2013  Kouhei Sutou  <kou@c...>
 
 	* lib/rexml/text.rb (REXML::Text#<<): Support method chain use by "<<"
Index: lib/rexml/text.rb
===================================================================
--- lib/rexml/text.rb	(revision 41818)
+++ lib/rexml/text.rb	(revision 41819)
@@ -191,6 +191,7 @@ module REXML https://github.com/ruby/ruby/blob/trunk/lib/rexml/text.rb#L191
     # 'text << "XXX" << "YYY"'.
     def <<( to_append )
       @string << to_append.gsub( /\r\n?/, "\n" )
+      clear_cache
       self
     end
 

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

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