Ex Money version 5.24.0
Bug Fixes
-
Fixes compile warnings on Elixir 1.20.
-
Fix examples in README.md to align with the current
inspect/2output. Thanks very much to @carlgleisner for the PR (and apologies for the long delayed merge). Closes #188.
Enhancements
-
Add
Money.spread/3to proptionally allocate (that is, spread) am money amount amongst a list of amounts or integers. Thanks to @jdewar for the PR and great patience. Closes #175. -
Add support for custom currency codes. A custom currency code is created with
Cldr.Currency.new/2and is distinguised from an ISO4217 code by being at least 4 characters long (ISO4217 codes are always 3 characters long). The first character must be a Latin alphabetic character. The additional characters must be Latin alphanumeric characters.