diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-21 05:13:48 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-21 05:13:48 +0000 |
| commit | 82875c077c6f242bb339386932da1b31f0355db8 (patch) | |
| tree | 2cdc2281e8476474f4b1678e308f3c9fb7f3a528 | |
| parent | 09f210ffb6af1ea3b0a2bd52497978cd7f2354f8 (diff) | |
| download | ruby-82875c077c6f242bb339386932da1b31f0355db8.tar.gz ruby-82875c077c6f242bb339386932da1b31f0355db8.tar.xz ruby-82875c077c6f242bb339386932da1b31f0355db8.zip | |
* parse.y (method_call): remove (fn)(args) style lambda
invocation, add fn.(args) instead.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 10 | ||||
| -rw-r--r-- | ext/extmk.rb | 2 | ||||
| -rw-r--r-- | lib/xmlrpc/create.rb | 7 | ||||
| -rw-r--r-- | parse.y | 34 |
4 files changed, 34 insertions, 19 deletions
@@ -1,3 +1,13 @@ +Wed Jun 21 14:06:47 2006 Yukihiro Matsumoto <matz@ruby-lang.org> + + * parse.y (method_call): remove (fn)(args) style lambda + invocation, add fn.(args) instead. + +Wed Jun 21 08:39:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org> + + * lib/xmlrpc/create.rb (XMLRPC::Create::conv2value): merge Date + and Time processing. [ruby-core:08033] + Wed Jun 21 03:01:10 2006 Yukihiro Matsumoto <matz@ruby-lang.org> * eval.c, file.c, etc.: code-cleanup patch from Stefan Huehner diff --git a/ext/extmk.rb b/ext/extmk.rb index c3412d4eb..a799544f0 100644 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -358,7 +358,7 @@ end unless $extstatic ext_prefix = "#{$top_srcdir}/ext" exts = $static_ext.sort_by {|t, i| i}.collect {|t, i| t} -if $extension +if $extension && $extension.size > 0 exts |= $extension.select {|d| File.directory?("#{ext_prefix}/#{d}")} else withes, withouts = %w[--with --without].collect {|w| diff --git a/lib/xmlrpc/create.rb b/lib/xmlrpc/create.rb index 0bfa4ab55..9150e2f56 100644 --- a/lib/xmlrpc/create.rb +++ b/lib/xmlrpc/create.rb @@ -241,12 +241,7 @@ module XMLRPC @writer.ele("data", *a) ) - when Date - t = param - @writer.tag("dateTime.iso8601", - format("%.4d%02d%02dT00:00:00", t.year, t.month, t.day)) - - when Time + when Time, Date @writer.tag("dateTime.iso8601", param.strftime("%Y%m%dT%H:%M:%S")) when XMLRPC::DateTime @@ -3264,6 +3264,28 @@ method_call : operation paren_args $$ = dispatch3(call, $1, ripper_intern("::"), $3); %*/ } + | primary_value '.' paren_args + { + /*%%%*/ + $$ = NEW_CALL($1, rb_intern("call"), $3); + fixpos($$, $1); + /*% + $$ = dispatch3(call, dispatch1(paren, $1), + ripper_id2sym('.'), rb_intern("call")); + $$ = method_optarg($$, $3); + %*/ + } + | primary_value tCOLON2 paren_args + { + /*%%%*/ + $$ = NEW_CALL($1, rb_intern("call"), $3); + fixpos($$, $1); + /*% + $$ = dispatch3(call, dispatch1(paren, $1), + ripper_id2sym('.'), rb_intern("call")); + $$ = method_optarg($$, $3); + %*/ + } | kSUPER paren_args { /*%%%*/ @@ -3280,18 +3302,6 @@ method_call : operation paren_args $$ = dispatch0(zsuper); %*/ } - | tLPAREN compstmt ')' paren_args - { - /*%%%*/ - if (!$2) $2 = NEW_NIL(); - $$ = NEW_CALL($2, rb_intern("call"), $4); - fixpos($$, $2); - /*% - $$ = dispatch3(call, dispatch1(paren, $2), - ripper_id2sym('.'), rb_intern("call")); - $$ = method_optarg($$, $4); - %*/ - } | primary_value '[' opt_call_args rbracket { /*%%%*/ |
