The behavior of Array#uniq without a block in Ruby 2.1.0 is inconsistent with the behavior of Array#uniq in Ruby 2.0.0, and with the behavior of Array#uniq with a block in Ruby 2.1.0. Array#uniq without a block in Ruby 2.1.0 returns t...agrimm (Andrew Grimm)
To be honest, it's not so much a "legacy app" issue as a "legacy programmer" issue. I started programming back in Ruby 1.8.6. I don't use any opinionated web development frameworks such as Rails (I don't do web development at all, act...agrimm (Andrew Grimm)
Test::Unit::Assertsions#assert_send has the code sample assert_send([[1, 2], :member?, 1]) # -> pass assert_send([[1, 2], :member?, 4]) # -> fail Having an array within an array is somewhat confusing. When I first read it,...agrimm (Andrew Grimm)
Yes, close the ticket. If someone else wants the functionality, or has implemented the functionality and wants to submit a patch, they can open another ticket.agrimm (Andrew Grimm)
A third party tool that I use, called Rubocop, has implemented such functionality. https://github.com/bbatsov/rubocop/issues/458 So I don't really require this functionality in MRI any more.agrimm (Andrew Grimm)
The following code def reassigned_unused a = 42 b = a.to_s a = 56 b end Does not currently generate an "assigned but unused variable" warning about the second assignment to "a". Is it feasible to create a warning fo...agrimm (Andrew Grimm)
Enumerable#chunk has the error message "symbol begins with an underscore is reserved". This is not grammatical. Assuming that error messages can be modified, possible fixes include "symbol begins with an underscore, which is reserv...agrimm (Andrew Grimm)
NEWS claims that RubyGems 2.0.0.preview2 is used, but according to ChangeLog, 2.0.0 (non-preview) is used. If there's any changes between 2.0.0.preview2, and 2.0.0 for RubyGems, additional changes to NEWS may be required. A patch i...agrimm (Andrew Grimm)
In the following code, variable a in the method gets a warning, but variable b in top level code doesn't get any warning def warning_method a = 2 end b = 2 warning_method $ ruby -w no_toplevel_warnin...agrimm (Andrew Grimm)