Money Extensions

Gem Version Build Status Coverage Status Code Climate

DESCRIPTION

Extends the money classes with helpful functions and currency functions

e.g. in model

money_fields :total, :discount

This will by default map a money object "total" to a database column total_in_cents and the same for discount.

Various numerical functions for money, e.g. round, split_between, sign, etc.

See spec directory for examples.

INSTALLATION

Add to your Gemfile: gem 'money_extensions'

RELEASE

To publish a new version of this gem the following steps must be taken.

  • Update the version in the following files CHANGELOG.md lib/quick_travel/version.rb
  • Create a tag using the format v0.1.0
  • Follow build progress in GitHub actions