Project

General

Profile

Actions

Bug #2555

closed

"case n when *VALID" Broken in Ruby 1.8.8; affects Ruby on Rails

Added by rubys (Sam Ruby) almost 15 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.8.8dev (2010-01-01 revision 26226) [x86_64-linux]
[ruby-core:27395]

Description

=begin
This affects uses of the "builder" gem.

Related commits:

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

Results when run against selected versions of 1.8.8:

ruby 1.8.8dev (2009-08-26 revision 24669) [x86_64-linux]
a
valid
valid

ruby 1.8.8dev (2009-08-26 revision 24695) [x86_64-linux]
*
INVALID
INVALID

ruby 1.8.8dev (2009-11-05 revision 25657) [x86_64-linux]
*
INVALID
INVALID

ruby 1.8.8dev (2009-11-05 revision 25658) [x86_64-linux]
*
valid
INVALID
=end


Files

valid.rb (562 Bytes) valid.rb rubys (Sam Ruby), 01/05/2010 03:01 AM

Related issues 2 (0 open2 closed)

Related to Ruby 1.8 - Bug #2468: Array expansion inside case/when gives unexpected resultsClosed12/10/2009Actions
Is duplicate of Ruby 1.8 - Bug #2551: case/when matches literal *[1,2,3] but not variable *aryClosed01/03/2010Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0