jeremyevans / home_run

Fast Date/DateTime classes for ruby :: Unmaintained, unnecessary on ruby 1.9.3+
Other
465 stars 10 forks source link

Date#step without block given #6

Closed remigijusj closed 14 years ago

remigijusj commented 14 years ago

One more difference from standard library, not listed: date.step(another_date) returns an instance of Enumerator in stdlib, but raises LocalJumpError in your version. The same for Date#upto and Date.downto. Ruby version 1.9.1.

jeremyevans commented 14 years ago

I'll see how much work it would be to do this, as it is something I'd like to support.

jeremyevans commented 14 years ago

Thankfully, it was fairly easy to support: http://github.com/jeremyevans/home_run/commit/f2337319073a04f03bca2f14b69c9413a9a3e3f6