The gem graduates from 0.0.x
. The basic functionality is stable and not going to change. The other additions that go into this release are small incremental changes.
- Added a changelog.
- The method
#to_time
now also acceptsDateTime
objects as base values, in addition toTime
andDate
. - Added
#to_datetime
method, with semantics similar to#to_time
.
- Small internal improvements.
- Added method aliases for
hour
,min
andsec
, to make the interface more consistent with the defaultTime
class. - The method
#to_time
now also acceptsDate
objects as base values, in addition toTime
objects.
- Added support to initialize new
DatelessTime
objects with other existingDatelessTime
objects as sources. - Added support to initizlize new
DatelessTime
objects withDateTime
objects as sources. - Offical support for sorting in arrays (just added tests to make sure it works).
- The gem now explicitly requires
date
from the standard library.
- Inizializing
DatelessTime
objects with strings like"12:01 am"
or"12:01 pm"
was generating invalid data.
- Implemented support for the
Comparable
module.DatelessTime
objects now support comparison operators:==
,<
, etc.
- The return value of
#to_time
was memoized, this made it impossible to use it multiple times with different base values.
The initial release.