summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-04 16:23:59 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-04 16:23:59 +0000
commit950c618335a3e74fd5907e7af2b8812c67d3ad33 (patch)
treebe8a6e20f5588d0be0e1f2ce7ba8cb0974ed99e5
parentfc8bd6d109ffe798003c0cdddc51af5f0dd69391 (diff)
* 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog7
-rw-r--r--lib/rss/atom.rb14
-rw-r--r--parse.y1
3 files changed, 14 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 84d0e1023e..ce4857fc59 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Mon Nov 5 01:20:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * 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@loveruby.net>
* lib/net/http.rb (HTTPHeader#initialize): provide default
diff --git a/lib/rss/atom.rb b/lib/rss/atom.rb
index 5da75cee37..7cba934feb 100644
--- a/lib/rss/atom.rb
+++ b/lib/rss/atom.rb
@@ -58,7 +58,7 @@ module RSS
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 @@ module RSS
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 @@ module RSS
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 @@ module RSS
["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 @@ module RSS
["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 @@ module RSS
["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 @@ module RSS
["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
diff --git a/parse.y b/parse.y
index f7c2bb46a2..776fa03a0d 100644
--- a/parse.y
+++ b/parse.y
@@ -2287,7 +2287,6 @@ opt_call_args : none
call_args : command
{
- rb_warn0("parenthesize argument(s) for future version");
/*%%%*/
$$ = NEW_LIST($1);
/*%