Peter Zhu
Peter Zhu
## Environment - Ruby 2.5.1 - Rails 5.2.2 - Devise 4.5.0 ## Current behavior In my `routes.rb`, I have a snippet that looks like this: ```ruby authenticate :user, ->(_u) {...
Liquid does not accept `{% endraw{% f %}` as a valid `endraw` tag but accepts `{% endfor{% f %}` for `endfor` tags. This is because the second capture group (i.e....
Adds commit ruby/ruby@6d8f396f37350b7aa9c85a097929f54a0939448b and ruby/ruby@c8b3bd45cc3cae93ae701333202416838ee6a00c.
Before this patch, Time.utc and Time.local produced inconsistent and unexpected behaviour when 8 arguments is passed in. For example, consider the following code Time.utc(2000, 1, 1, 2, 3, 4, 100)...
Fixes ruby/prism#2149.
We can avoid an allocation by using an ensure block rather than using a temporary object to free the memory when an exception is raised.
[Ticket #19993](https://bugs.ruby-lang.org/issues/19993) added the new feature RUBY_FREE_AT_EXIT, which frees memory in Ruby at shutdown. This allowed tools like Valgrind, ASAN, and macOS leaks to find memory leaks in Ruby without...
The FL_FINALIZE flag is set when there are finalizers for the object. We can improver performance by not looking up in the table if the flag is not set. Using...
Ranges with floats get converted to ranges of integers (e.g. `1.1..5.5` gets converted to range `1..5`) but this is not the case with ranges of variables (e.g. if `x ==...