ruby-changes:2330
From: ko1@a...
Date: 5 Nov 2007 01:24:27 +0900
Subject: [ruby-changes:2330] matz - Ruby:r13821 (trunk): * parse.y (call_args): remove "parenthesize argument(s) for future
matz 2007-11-05 01:23:59 +0900 (Mon, 05 Nov 2007) New Revision: 13821 Modified files: trunk/ChangeLog trunk/lib/rss/atom.rb trunk/parse.y Log: * parse.y (call_args): remove "parenthesize argument(s) for future version" warning. when I added this warning, I had a plan to reimplement the parser that is simpler than the current one. since we abandoned the plan, warning no longer required. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/rss/atom.rb?r1=13821&r2=13820 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/parse.y?r1=13821&r2=13820 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13821&r2=13820 Index: ChangeLog =================================================================== --- ChangeLog (revision 13820) +++ ChangeLog (revision 13821) @@ -1,3 +1,10 @@ +Mon Nov 5 01:20:33 2007 Yukihiro Matsumoto <matz@r...> + + * parse.y (call_args): remove "parenthesize argument(s) for future + version" warning. when I added this warning, I had a plan to + reimplement the parser that is simpler than the current one. + since we abandoned the plan, warning no longer required. + Mon Nov 5 01:02:56 2007 Minero Aoki <aamine@l...> * lib/net/http.rb (HTTPHeader#initialize): provide default Index: lib/rss/atom.rb =================================================================== --- lib/rss/atom.rb (revision 13820) +++ lib/rss/atom.rb (revision 13821) @@ -58,7 +58,7 @@ end def setup_maker_element(target) - target.__send(setup_maker_element_writer, content) + target.__send__(setup_maker_element_writer, content) super end end @@ -131,7 +131,7 @@ private def maker_target(target) - target.__send(self.class.name.split(/::/).last.downcase) {|x| x} + target.__send__(self.class.name.split(/::/).last.downcase) {|x| x} end def setup_maker_attributes(target) @@ -156,7 +156,7 @@ end def maker_target(target) - target.__send("new_#{self.class.name.split(/::/).last.downcase}") + target.__send__("new_#{self.class.name.split(/::/).last.downcase}") end class Name < RSS::Element @@ -227,7 +227,7 @@ ["entry", "*", :children, "entries"], ].each do |tag, occurs, type, *args| type ||= :child - __send("install_have_#{type}_element", + __send__("install_have_#{type}_element", tag, URI, occurs, tag, *args) end @@ -405,7 +405,7 @@ ["updated", nil, :child, :content], ].each do |tag, occurs, type, *args| type ||= :attribute - __send("install_have_#{type}_element", + __send__("install_have_#{type}_element", tag, URI, occurs, tag, *args) end @@ -603,7 +603,7 @@ ["updated", "?", nil, :content], ].each do |tag, occurs, type, *args| type ||= :attribute - __send("install_have_#{type}_element", + __send__("install_have_#{type}_element", tag, URI, occurs, tag, *args) end @@ -655,7 +655,7 @@ ["updated", nil, nil, :content], ].each do |tag, occurs, type, *args| type ||= :attribute - __send("install_have_#{type}_element", + __send__("install_have_#{type}_element", tag, URI, occurs, tag, *args) end Index: parse.y =================================================================== --- parse.y (revision 13820) +++ parse.y (revision 13821) @@ -2287,7 +2287,6 @@ call_args : command { - rb_warn0("parenthesize argument(s) for future version"); /*%%%*/ $$ = NEW_LIST($1); /*% -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml