A unit handling library for ruby
Full Changelog: https://github.com/olbrich/ruby-units/compare/v4.0.2...v4.0.3
Full Changelog: https://github.com/olbrich/ruby-units/compare/v4.0.1...v4.0.2
Full Changelog: https://github.com/olbrich/ruby-units/compare/v4.0.0...v4.0.1
remainder
, quo
and divmod
are not strictly correct by @olbrich in https://github.com/olbrich/ruby-units/pull/281
Full Changelog: https://github.com/olbrich/ruby-units/compare/v3.0.0...v4.0.0
WARNING: The time format HH:mm:ss,nsec
has been replaced with HH:mm:ss.msec
to better line up with how people use this and to align better with the Time parsing in Ruby.
Full Changelog: https://github.com/olbrich/ruby-units/compare/v2.4.1...v3.0.0
round
, truncate
, ceil
and floor
by @olbrich in https://github.com/olbrich/ruby-units/pull/246
chunk_while
workaround for old jruby by @olbrich in https://github.com/olbrich/ruby-units/pull/247
Full Changelog: https://github.com/olbrich/ruby-units/compare/v2.3.2...v2.4.1
#178 Removes Jeweler #213 Fix specs related to differences in Complex comparisons in Ruby 2.7 #211 Add support for Ruby 3.0 and general maintenance. Readme also updated.
Support for Ruby 2.3 and 2.4 has been dropped. This means that I will not be fixing bugs related to those ruby versions, and I will not be avoiding using language features added in 2.5+. At this point there are no known incompatibilities with older versions.
Fixes #175 - Addition and subtraction of unitless values.
#167 significantly improves performance when summing arrays of Units, particularly when the scalar is a BigDecimal
, but represents a potentially breaking change.