diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-15 02:27:56 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-15 02:27:56 +0000 |
commit | 87025fdd4345f48821236ff19090976bfc11a2bd (patch) | |
tree | 3f70b2c935c7b86d4111cd6c7e4310ea4a550eea /lib | |
parent | 0c25b62505c64973876e6281193ea6141d396564 (diff) | |
download | ruby-87025fdd4345f48821236ff19090976bfc11a2bd.tar.gz |
* marshal.c (w_object): dump extended modules as well.
* marshal.c (r_object0): TYPE_USRMARSHAL should restore extended
modules before invoking marshal_load. these two fixes are done
by Masatoshi Seki <m_seki@mva.biglobe.ne.jp>.
* parse.y (yylex): argument parentheses preceded by spaces should
be warned; not error. [ruby-talk:84103]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cgi.rb | 1 | ||||
-rw-r--r-- | lib/irb/context.rb | 2 | ||||
-rw-r--r-- | lib/mkmf.rb | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb index 27dd83da01..929ed3fac8 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -872,6 +872,7 @@ class CGI raw_cookie.split(/; /).each do |pairs| name, values = pairs.split('=',2) + next unless name and value name = CGI::unescape(name) values ||= "" values = values.split('&').collect{|v| CGI::unescape(v) } diff --git a/lib/irb/context.rb b/lib/irb/context.rb index f4d0d98289..9421608f85 100644 --- a/lib/irb/context.rb +++ b/lib/irb/context.rb @@ -58,7 +58,7 @@ module IRB case input_method when nil - if (defined? (ReadlineInputMethod) && + if (defined?(ReadlineInputMethod) && (use_readline? || IRB.conf[:PROMPT_MODE] != :INF_RUBY && STDIN.tty?)) @io = ReadlineInputMethod.new else diff --git a/lib/mkmf.rb b/lib/mkmf.rb index c002c8893e..ca661d6148 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -394,7 +394,7 @@ def install_files(mfile, ifiles, map = nil, srcprefix = nil) path = Hash.new {|h, i| h[i] = dirs.push([i])[-1]} ifiles.each do |files, dir, prefix| dir = map_dir(dir, map) - prefix = %r"\A#{Regexp.quote(prefix)}/?" if prefix + prefix = %r|\A#{Regexp.quote(prefix)}/?| if prefix if( files[0,2] == "./" ) # install files which are in current working directory. files = files[2..-1] |