From: Run Paint Run Run Date: 2009-09-05T06:16:43+09:00 Subject: [ruby-core:25380] [Bug #2049] String#upto: Possible Regression Bug #2049: String#upto: Possible Regression http://redmine.ruby-lang.org/issues/show/2049 Author: Run Paint Run Run Status: Open, Priority: Low Category: core ruby -v: ruby 1.9.2dev (2009-09-03 trunk 24741) [i686-linux] Prior to r24562: a = [] "25".upto("5") { |s| a << s } a #=> ["25"] Now: a = [] "25".upto("5") { |s| a << s } a #=> [] IOW, previously when the argument was a stringified number that was less than self _and_ the argument was shorter than self, self was yielded to the block. Now the argument's numerical value is all that matters, so in this example nothing is yielded. Presumably this is intentional because the new behaviour makes more sense than the previous, but as it broke a RubySpec, I'd just like to confirm before I fix the failing example. ---------------------------------------- http://redmine.ruby-lang.org