Skip to content

Lavinia/Nemah

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nemah Build Status Code Climate Gem version

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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages