Ruby Issue Tracking System: Issueshttps://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112011-09-03T17:12:41ZRuby Issue Tracking System
Redmine Backport187 - Backport #5270 (Closed): Date#freeze causes memoized Date methods to failhttps://redmine.ruby-lang.org/issues/52702011-09-03T17:12:41Zddfreyne (Denis Defreyne)denis.defreyne@stoneship.org
<p>When freezing a Date object, memoized methods will fail because the memoized value cannot be stored on the frozen object. This is because memoized values are stored as instance variables on the object, and those are immutable for frozen objects.</p>
<p>Attached to this bug report is a test case, as well as a patch that fixes the issue (and also includes the test case).</p> Backport191 - Backport #2628 (Closed): 1.9 Hash documentation says hashes not orderedhttps://redmine.ruby-lang.org/issues/26282010-01-22T21:12:55Zddfreyne (Denis Defreyne)denis.defreyne@stoneship.org
<p>=begin<br>
The documentation for Hash says that hashes are not ordered, even though 1.9.x hashes are ordered. From the documentation (ri): “The order in which you traverse a hash by either key or value may seem arbitrary, and will generally not be in the insertion order.”</p>
<p>The documentation for Hash should be updated to reflect that they are ordered, and that iterating over keys or values or both will happen in order of insertion.<br>
=end</p>