- Added
Comparable
module toMeasurement
, supporting<
and>
operators. Edmund Lee
- Updated parsing to accept UTF-8 fractions (½, ⅓, etc.). Matt Huggins
- Fixed
Measurement::Unit#==
to properly compare units. Matt Huggins
- Added
Measurement.names
to list all available units. Daniele Palombo
- Added
String#to_measurement
,String#to_unit
,Symbol#to_unit
, andNumeric#to_measurement
. Matt Huggins
- Moved unit definition logic into
Unit
class. Matt Huggins - Added test suite. Matt Huggins
- Fixed parsing of
'
and"
for feet and inches. Matt Huggins - Added missing metric weights and U.S. customary capacities. Matt Huggins
- Fixed several conversions that were found to be miscalculating. Matt Huggins
- Fixed parsing of mixed fractions. Matt Huggins
- Updated parsing of quantity & unit to work when not separated by a space. Matt Huggins
- Updated
Measurement
initializer to accept quantity & unit instead of a single string for parsing. Matt Huggins
- Initial release. Matt Huggins