Nemah is a library for calculating the proper amount of fodder for your horse. In real life, Nemah is an Arabian horse with an immense appetite.
Requirements
Given that Nemah is an Arabian princess, she wants as many rubies as possible, but no fewer than 2.0. Thus MRI and JRuby are supported, whereas Rubinius needs to add support for keyword arguments.
Installation.
Add this line to your application's Gemfile:
gem 'nemah'
And then execute:
$ bundle
Or install it yourself as:
$ gem install nemah
Usage
Currently implemented functionality
- Calculate a working horse's need of energy, protein, solids, macrominerals, and selenium.
- Calculations are made internally with at least three digits precision. Public methods will return values rounded to two decimals by default.
- Balances, e.g. calcium-phosphor, protein-energy etc.
- Rations, i.e. given a horse with a need, and a fodder list, does the horse get enough nutrients in proper balances?
Yet to be implemented
- Microminerals and their specific balances apart from selenium.
- Given a horse, its needs, and a list of fodder, calculate suitable rations.
- Support horses with very specific needs, e.g. mares with foals, young horses, race horses etc.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request