ruby-measurement icon indicating copy to clipboard operation
ruby-measurement copied to clipboard

Simple Ruby gem for calculating and converting measurements.

Results 6 ruby-measurement issues
Sort by recently updated
recently updated
newest added

Right now we can get a big list of every unit name with `Measurement::Unit.names`. Is there a way to do the same thing, but without all the aliases for each?...

I have logic in place to prevent my users from trying to convert between incompatible units. For example: pounds --> gallons. I currently throw an error message, which explains that...

Almost all conversion numbers was based on [metric-conversions.org](http://www.metric-conversions.org/length). The `fathom` conversion was based on [asknumbers.com](https://www.asknumbers.com/CentimetersToFathomConversion.aspx). The `thou` conversion was based on [convertunits.com](https://www.convertunits.com/from/thou/to/centimeters).

Decided to make an issue out PR https://github.com/mhuggins/ruby-measurement/pull/8#issuecomment-264359765. Summa, was I wanted to discuss how to go about extending the code. Anyone is free to write the code themselves, I...

Unit conversion numbers taken from [Wikipedia](https://en.wikipedia.org/wiki/Comparison_of_the_imperial_and_US_customary_measurement_systems). In addition to adding this new functionality (and specs), I also cleaned up a bunch of RSpec warnings about error expectations without a specified...

I'm working on a sideproject that needs a lot of custom conversions, which is why I like ruby-measurement over ruby-units; the latter's code takes quite a lot of staring to...