Help with estimating when the stock will turn empty. More varpoware than actual functions but it could take lead-time of a product into account.. propose the quantity..
Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.
$ bundle $ bundle exec rake test_app $ bundle exec rspec spec
Copyright (c) 2013 sysmocom s.f.m.c. GmbH, released under AGPLv3 or later