All notable changes to Unitwise will be documented in this file, starting at version 1.0.0.
Unitwise uses semantic versioning.
- Added Ruby 2.2 support.
- Empty strings are no longer valid units.
- Unitwise.valid? for checking validity of expressions
- Decomposer caching is now a little smarter. This resulted in a mild performance increase.
- Move conditional dependencies to Gemfile in order to allow proper installation issues on rbx and jruby.
- Uniwise() now accepts a Unitwise::Measurement as the first argument.
- Unitwise::Measurement now supports #round.
- Respect Rationals when inspecting/printing a Unitwise::Measurement.
- Dynamically created methods from unitwise/ext now work with #respond_to? and #methods appropriately.
- Unitwise() and Unitwise::Measurement.new() now requires two non-optional arguments (value and unit).
- Unitwise::Measurement no longer has an implicit Integer conversion.