https://github.com/RubyMoney/money
A Ruby Library for dealing with money and currency conversion.
https://github.com/RubyMoney/money
Keywords
exchange-rate money ruby
Keywords from Contributors
activerecord activejob mvc rack rubygems rspec rubocop crash-reporting static-code-analysis code-formatter
Last synced: about 7 hours ago
JSON representation
Repository metadata
A Ruby Library for dealing with money and currency conversion.
- Host: GitHub
- URL: https://github.com/RubyMoney/money
- Owner: RubyMoney
- License: mit
- Created: 2008-10-31T15:05:03.000Z (over 17 years ago)
- Default Branch: main
- Last Pushed: 2026-01-20T13:40:52.000Z (about 1 month ago)
- Last Synced: 2026-02-12T22:48:17.129Z (18 days ago)
- Topics: exchange-rate, money, ruby
- Language: Ruby
- Homepage: http://rubymoney.github.io/money
- Size: 3.2 MB
- Stars: 2,842
- Watchers: 69
- Forks: 640
- Open Issues: 10
- Releases: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Authors: AUTHORS
README.md
RubyMoney - Money
⚠️ Please read the upgrade guides before upgrading to a new major version.
If you miss String parsing, check out the new monetize gem.
Contributing
See the Contribution Guidelines
Introduction
A Ruby Library for dealing with money and currency conversion.
Features
- Provides a
Moneyclass which encapsulates all information about a certain
amount of money, such as its value and its currency. - Provides a
Money::Currencyclass which encapsulates all information about
a monetary unit. - Represents monetary values as integers, in cents. This avoids floating point
rounding errors. - Represents currency as
Money::Currencyinstances providing a high level of
flexibility. - Provides APIs for exchanging money from one currency to another.
Resources
Notes
- Your app must use UTF-8 to function with this library. There are a
number of non-ASCII currency attributes.
Downloading
Install stable releases with the following command:
gem install money
The development version (hosted on Github) can be installed with:
git clone git://github.com/RubyMoney/money.git
cd money
rake install
Usage
require 'money'
# explicitly define locales
I18n.config.available_locales = :en
Money.locale_backend = :i18n
# 10.00 USD
money = Money.from_cents(1000, "USD")
money.cents #=> 1000
money.currency #=> Currency.new("USD")
# Comparisons
Money.from_cents(1000, "USD") == Money.from_cents(1000, "USD") #=> true
Money.from_cents(1000, "USD") == Money.from_cents(100, "USD") #=> false
Money.from_cents(1000, "USD") == Money.from_cents(1000, "EUR") #=> false
Money.from_cents(1000, "USD") != Money.from_cents(1000, "EUR") #=> true
# Arithmetic
Money.from_cents(1000, "USD") + Money.from_cents(500, "USD") == Money.from_cents(1500, "USD")
Money.from_cents(1000, "USD") - Money.from_cents(200, "USD") == Money.from_cents(800, "USD")
Money.from_cents(1000, "USD") / 5 == Money.from_cents(200, "USD")
Money.from_cents(1000, "USD") * 5 == Money.from_cents(5000, "USD")
# Unit to subunit conversions
Money.from_amount(5, "USD") == Money.from_cents(500, "USD") # 5 USD
Money.from_amount(5, "JPY") == Money.from_cents(5, "JPY") # 5 JPY
Money.from_amount(5, "TND") == Money.from_cents(5000, "TND") # 5 TND
# Currency conversions
some_code_to_setup_exchange_rates
Money.from_cents(1000, "USD").exchange_to("EUR") == Money.from_cents(some_value, "EUR")
# Swap currency
Money.from_cents(1000, "USD").with_currency("EUR") == Money.from_cents(1000, "EUR")
# Formatting (see Formatting section for more options)
Money.from_cents(100, "USD").format #=> "$1.00"
Money.from_cents(100, "GBP").format #=> "£1.00"
Money.from_cents(100, "EUR").format #=> "€1.00"
Currency
Currencies are consistently represented as instances of Money::Currency.
The most part of Money APIs allows you to supply either a String or a
Money::Currency.
Money.from_cents(1000, "USD") == Money.from_cents(1000, Money::Currency.new("USD"))
Money.from_cents(1000, "EUR").currency == Money::Currency.new("EUR")
A Money::Currency instance holds all the information about the currency,
including the currency symbol, name and much more.
currency = Money.from_cents(1000, "USD").currency
currency.iso_code #=> "USD"
currency.name #=> "United States Dollar"
currency.cents_based? #=> true
To define a new Money::Currency use Money::Currency.register as shown
below.
curr = {
priority: 1,
iso_code: "USD",
iso_numeric: "840",
name: "United States Dollar",
symbol: "$",
subunit: "Cent",
subunit_to_unit: 100,
decimal_mark: ".",
thousands_separator: ","
}
Money::Currency.register(curr)
The pre-defined set of attributes includes:
:prioritya numerical value you can use to sort/group the currency list:iso_codethe international 3-letter code as defined by the ISO 4217 standard:iso_numericthe international 3-digit code as defined by the ISO 4217 standard:namethe currency name:symbolthe currency symbol (UTF-8 encoded):subunitthe name of the fractional monetary unit:subunit_to_unitthe proportion between the unit and the subunit:decimal_markcharacter between the whole and fraction amounts:thousands_separatorcharacter between each thousands place
All attributes except :iso_code are optional. Some attributes, such as
:symbol, are used by the Money class to print out a representation of the
object. Other attributes, such as :name or :priority, exist to provide a
basic API you can take advantage of to build your application.
:priority
The priority attribute is an arbitrary numerical value you can assign to the
Money::Currency and use in sorting/grouping operation.
For instance, let's assume your Rails application needs to render a currency
selector like the one available
here. You can create a couple of
custom methods to return the list of major currencies and all currencies as
follows:
# Returns an array of currency id where
# priority < 10
def major_currencies(hash)
hash.inject([]) do |array, (id, attributes)|
priority = attributes[:priority]
if priority && priority < 10
array[priority] ||= []
array[priority] << id
end
array
end.compact.flatten
end
# Returns an array of all currency id
def all_currencies(hash)
hash.keys
end
major_currencies(Money::Currency.table)
# => [:usd, :eur, :gbp, :aud, :cad, :jpy]
all_currencies(Money::Currency.table)
# => [:aed, :afn, :all, ...]
Default Currency
A default currency is not set by default. If a default currency is not set, it will raise an error when you try to initialize a Money object without explicitly passing a currency or parse a string that does not contain a currency. You can set a default currency for your application by using:
Money.default_currency = Money::Currency.new("CAD")
If you use Rails, then config/initializers/money.rb is a very good place to put this.
Currency Exponent
The exponent of a money value is the number of digits after the decimal
separator (which separates the major unit from the minor unit). See e.g.
ISO 4217 for more
information. You can find the exponent (as an Integer) by
Money::Currency.new("USD").exponent # => 2
Money::Currency.new("JPY").exponent # => 0
Money::Currency.new("MGA").exponent # => 1
Currency Lookup
To find a given currency by ISO 4217 numeric code (three digits) you can do
Money::Currency.find_by_iso_numeric(978) #=> Money::Currency.new(:eur)
Currency Exchange
Exchanging money is performed through an exchange bank object. The default
exchange bank object requires one to manually specify the exchange rate. Here's
an example of how it works:
Money.add_rate("USD", "CAD", 1.24515)
Money.add_rate("CAD", "USD", 0.803115)
Money.us_dollar(100).exchange_to("CAD") # => Money.from_cents(124, "CAD")
Money.ca_dollar(100).exchange_to("USD") # => Money.from_cents(80, "USD")
Comparison and arithmetic operations work as expected:
Money.from_cents(1000, "USD") <=> Money.from_cents(900, "USD") # => 1; 9.00 USD is smaller
Money.from_cents(1000, "EUR") + Money.from_cents(10, "EUR") == Money.from_cents(1010, "EUR")
Money.add_rate("USD", "EUR", 0.5)
Money.from_cents(1000, "EUR") + Money.from_cents(1000, "USD") == Money.from_cents(1500, "EUR")
Exchange rate stores
The default bank is initialized with an in-memory store for exchange rates.
Money.default_bank = Money::Bank::VariableExchange.new(Money::RatesStore::Memory.new)
You can pass your own store implementation, i.e. for storing and retrieving rates off a database, file, cache, etc.
Money.default_bank = Money::Bank::VariableExchange.new(MyCustomStore.new)
Stores must implement the following interface:
# Add new exchange rate.
# @param [String] iso_from Currency ISO code. ex. 'USD'
# @param [String] iso_to Currency ISO code. ex. 'CAD'
# @param [Numeric] rate Exchange rate. ex. 0.0016
#
# @return [Numeric] rate.
def add_rate(iso_from, iso_to, rate); end
# Get rate. Must be idempotent. i.e. adding the same rate must not produce duplicates.
# @param [String] iso_from Currency ISO code. ex. 'USD'
# @param [String] iso_to Currency ISO code. ex. 'CAD'
#
# @return [Numeric] rate.
def get_rate(iso_from, iso_to); end
# Iterate over rate tuples (iso_from, iso_to, rate)
#
# @yieldparam iso_from [String] Currency ISO string.
# @yieldparam iso_to [String] Currency ISO string.
# @yieldparam rate [Numeric] Exchange rate.
#
# @return [Enumerator]
#
# @example
# store.each_rate do |iso_from, iso_to, rate|
# puts [iso_from, iso_to, rate].join
# end
def each_rate(&block); end
# Wrap store operations in a thread-safe transaction
# (or IO or Database transaction, depending on your implementation)
#
# @yield [n] Block that will be wrapped in transaction.
#
# @example
# store.transaction do
# store.add_rate('USD', 'CAD', 0.9)
# store.add_rate('USD', 'CLP', 0.0016)
# end
def transaction(&block); end
# Serialize store and its content to make Marshal.dump work.
#
# Returns an array with store class and any arguments needed to initialize the store in the current state.
# @return [Array] [class, arg1, arg2]
def marshal_dump; end
The following example implements an ActiveRecord store to save exchange rates to a database.
# rails g model exchange_rate from:string to:string rate:float
class ExchangeRate < ApplicationRecord
def self.get_rate(from_iso_code, to_iso_code)
rate = find_by(from: from_iso_code, to: to_iso_code)
rate&.rate
end
def self.add_rate(from_iso_code, to_iso_code, rate)
exrate = find_or_initialize_by(from: from_iso_code, to: to_iso_code)
exrate.rate = rate
exrate.save!
end
def self.each_rate
return find_each unless block_given?
find_each do |rate|
yield rate.from, rate.to, rate.rate
end
end
def self.marshal_dump
[self]
end
end
The following example implements a Redis store to save exchange rates to a redis database.
class RedisRateStore
INDEX_KEY_SEPARATOR = '_TO_'.freeze
# Using second db of the redis instance
# because sidekiq uses the first db
REDIS_DATABASE = 1
# Using Hash to store rates data
REDIS_STORE_KEY = 'rates'
def initialize
conn_url = "#{Rails.application.credentials.redis_server}/#{REDIS_DATABASE}"
@connection = Redis.new(url: conn_url)
end
def add_rate(iso_from, iso_to, rate)
@connection.hset(REDIS_STORE_KEY, rate_key_for(iso_from, iso_to), rate)
end
def get_rate(iso_from, iso_to)
@connection.hget(REDIS_STORE_KEY, rate_key_for(iso_from, iso_to))
end
def each_rate
rates = @connection.hgetall(REDIS_STORE_KEY)
return to_enum(:each_rate) unless block_given?
rates.each do |key, rate|
iso_from, iso_to = key.split(INDEX_KEY_SEPARATOR)
yield iso_from, iso_to, rate
end
end
def transaction
yield
end
private
def rate_key_for(iso_from, iso_to)
[iso_from, iso_to].join(INDEX_KEY_SEPARATOR).upcase
end
end
Now you can use it with the default bank.
# For Rails 6 pass model name as a string to make it compatible with zeitwerk
# Money.default_bank = Money::Bank::VariableExchange.new("ExchangeRate")
Money.default_bank = Money::Bank::VariableExchange.new(ExchangeRate)
# Add to the underlying store
Money.default_bank.add_rate('USD', 'CAD', 0.9)
# Retrieve from the underlying store
Money.default_bank.get_rate('USD', 'CAD') # => 0.9
# Exchanging amounts just works.
Money.from_cents(1000, 'USD').exchange_to('CAD') #=> #<Money fractional:900 currency:CAD>
There is nothing stopping you from creating store objects which scrapes
XE for the current rates or just returns rand(2):
Money.default_bank = Money::Bank::VariableExchange.new(StoreWhichScrapesXeDotCom.new)
You can also implement your own Bank to calculate exchanges differently.
Different banks can share Stores.
Money.default_bank = MyCustomBank.new(Money::RatesStore::Memory.new)
If you wish to disable automatic currency conversion to prevent arithmetic when
currencies don't match:
Money.disallow_currency_conversion!
Implementations
The following is a list of Money.gem compatible currency exchange rate
implementations.
- eu_central_bank
- google_currency
- currencylayer
- nordea
- nbrb_currency
- money-currencylayer-bank
- money-open-exchange-rates
- money-historical-bank
- russian_central_bank
- money-uphold-bank
Formatting
There are several formatting rules for when Money#format is called. For more information, check out the formatting module source, or read the latest release's rdoc version.
If you wish to format money according to the EU's Rules for expressing monetary units in either English, Irish, Latvian or Maltese:
m = Money.from_cents('123', :gbp) # => #<Money fractional:123 currency:GBP>
m.format(symbol: m.currency.to_s + ' ') # => "GBP 1.23"
If you would like to customize currency symbols to avoid ambiguity between currencies, you can:
Money::Currency.table[:hkd][:symbol] = 'HK$'
Rounding
By default, Money objects are rounded to the nearest cent and the additional precision is not preserved:
Money.from_amount(2.34567).format #=> "$2.35"
To retain the additional precision, you will also need to set infinite_precision to true.
Money.default_infinite_precision = true
Money.from_amount(2.34567).format #=> "$2.34567"
To round to the nearest cent (or anything more precise), you can use the round method. However, note that the round method on a Money object does not work the same way as a normal Ruby Float object. Money's round method accepts different arguments. The first argument to the round method is the rounding mode, while the second argument is the level of precision relative to the cent.
# Float
2.34567.round #=> 2
2.34567.round(2) #=> 2.35
# Money
Money.default_infinite_precision = true
Money.from_cents(2.34567).format #=> "$0.0234567"
Money.from_cents(2.34567).round.format #=> "$0.02"
Money.from_cents(2.34567).round(BigDecimal::ROUND_DOWN, 2).format #=> "$0.0234"
You can set the default rounding mode by passing one of the BigDecimal mode enumerables like so:
Money.rounding_mode = BigDecimal::ROUND_HALF_EVEN
See BigDecimal::ROUND_MODE for more information.
To round to the nearest cash value in currencies without small denominations:
Money.from_cents(11_11, "CHF").to_nearest_cash_value.format # => "CHF 11.10"
Ruby on Rails
To integrate money in a Rails application use money-rails.
For deprecated methods of integrating with Rails, check the wiki.
Localization
In order to localize formatting you can use I18n gem:
Money.locale_backend = :i18n
With this enabled a thousands separator and a decimal mark will get looked up in your I18n translation files. In a Rails application this may look like:
# config/locale/en.yml
en:
number:
currency:
format:
delimiter: ","
separator: "."
# falling back to
number:
format:
delimiter: ","
separator: "."
For this example Money.from_cents(123456789, "SEK").format will return 1,234,567.89 kr which otherwise would have returned 1 234 567,89 kr.
This will work seamlessly with rails-i18n gem that already has a lot of locales defined.
If you wish to disable this feature and use defaults instead:
Money.locale_backend = nil
Deprecation
The current default behaviour always checks the I18n locale first, falling back to "per currency"
localization. This is now deprecated and will be removed in favour of explicitly defined behaviour
in the next major release.
If you would like to use I18n localization (formatting depends on the locale):
Money.locale_backend = :i18n
# example (using default localization from rails-i18n):
I18n.locale = :en
Money.from_cents(10_000_00, 'USD').format # => $10,000.00
Money.from_cents(10_000_00, 'EUR').format # => €10,000.00
I18n.locale = :es
Money.from_cents(10_000_00, 'USD').format # => $10.000,00
Money.from_cents(10_000_00, 'EUR').format # => €10.000,00
If you need to localize the position of the currency symbol, you
have to pass it manually. Note: this will become the default formatting
behavior in the next version.
I18n.locale = :fr
format = I18n.t :format, scope: 'number.currency.format'
Money.from_cents(10_00, 'EUR').format(format: format) # => 10,00 €
For the legacy behaviour of "per currency" localization (formatting depends only on currency):
Money.locale_backend = :currency
# example:
Money.from_cents(10_000_00, 'USD').format # => $10,000.00
Money.from_cents(10_000_00, 'EUR').format # => €10.000,00
In case you don't need localization and would like to use default values (can be redefined using
Money.default_formatting_rules):
Money.locale_backend = nil
# example:
Money.from_cents(10_000_00, 'USD').format # => $10000.00
Money.from_cents(10_000_00, 'EUR').format # => €10000.00
Collection
In case you're working with collections of Money instances, have a look at money-collection
for improved performance and accuracy.
Troubleshooting
If you don't have some locale and don't want to get a runtime error such as:
I18n::InvalidLocale: :en is not a valid locale
Set the following:
I18n.enforce_available_locales = false
Heuristics
Prior to v6.9.0 heuristic analysis of string input was part of this gem. Since then it was extracted in to money-heuristics gem.
Upgrade Guides
When upgrading between major versions, please refer to the appropriate upgrade guide:
- Upgrading to 7.0 - Guide for migrating from 6.x to 7.0
- Upgrading to 6.0 - Guide for upgrading to version 6.0
These guides provide detailed information about breaking changes, new features, and step-by-step migration instructions.
Owner metadata
- Name: RubyMoney
- Login: RubyMoney
- Email:
- Kind: organization
- Description:
- Website:
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/351550?v=4
- Repositories: 7
- Last ynced at: 2024-03-25T20:47:10.970Z
- Profile URL: https://github.com/RubyMoney
GitHub Events
Total
- Delete event: 6
- Pull request event: 63
- Fork event: 19
- Issues event: 15
- Watch event: 88
- Issue comment event: 73
- Push event: 49
- Pull request review event: 73
- Pull request review comment event: 25
- Create event: 5
Last Year
- Delete event: 6
- Pull request event: 58
- Fork event: 13
- Issues event: 11
- Watch event: 43
- Issue comment event: 66
- Push event: 48
- Pull request review event: 73
- Pull request review comment event: 25
- Create event: 5
Committers metadata
Last synced: 13 days ago
Total Commits: 1,463
Total Committers: 325
Avg Commits per committer: 4.502
Development Distribution Score (DDS): 0.71
Commits in past year: 139
Committers in past year: 25
Avg Commits per committer in past year: 5.56
Development Distribution Score (DDS) in past year: 0.626
| Name | Commits | |
|---|---|---|
| Shane Emmons | s****9@g****m | 425 |
| Anthony Dmitriyev | a****m@g****m | 111 |
| Simone Carletti | w****s@w****t | 79 |
| Sunny Ripert | s****y@s****g | 52 |
| Hongli Lai (Phusion) | h****i@p****l | 38 |
| Julia López | j****z@g****m | 34 |
| Orien Madgwick | o****k@e****m | 25 |
| George Millo | g****o@g****m | 21 |
| Geremia Taglialatela | t****v@g****m | 19 |
| Andreas Loupasakis | a****p@a****g | 16 |
| takiy33 | t****3@g****m | 12 |
| Mikael Wikman | m****n@a****m | 11 |
| Casper Thomsen | ct@c****m | 10 |
| Ismael Celis | i****t@g****m | 10 |
| François KLINGLER | f****s@f****m | 9 |
| Max Melentiev | m****m@g****m | 9 |
| Tsyren Ochirov | n****m@g****m | 8 |
| Cade Truitt | c****t@g****m | 7 |
| Demian Ferreiro | e****n@g****m | 7 |
| Egon Zemmer | e****r@p****m | 7 |
| Paweł Madejski | p****i@s****k | 7 |
| Tom Hale | t****m@h****e | 7 |
| jozr | j****n@g****m | 7 |
| Joshua Clayton | j****n@f****m | 7 |
| Dalen Ward | d****d@m****m | 6 |
| Jean-Philippe Doyle | j****e@h****m | 6 |
| Laurent Arnoud | l****t@s****t | 6 |
| Neil Middleton | n****l@k****m | 6 |
| Thomas Weymuth | t****h@s****m | 6 |
| Peter Rhoades | c****e@g****m | 6 |
| and 295 more... | ||
Committer domains:
- squareup.com: 3
- mobalean.com: 2
- envato.com: 2
- moneybird.com: 2
- notonthehighstreet.com: 2
- jadedpixel.com: 2
- me.com: 2
- gmail.com”: 1
- keas.com: 1
- sema.in: 1
- gronom.de: 1
- v1x.info: 1
- sigswitch.com: 1
- bamaru.de: 1
- phlippers.net: 1
- ngriffith.com: 1
- skroutz.gr: 1
- livej.am: 1
- railslove.com: 1
- af83.com: 1
- wishpot.com: 1
- tjschuck.com: 1
- bitcetera.com: 1
- vacationlabs.com: 1
- friendsoftheweb.com: 1
- kasper.codes: 1
- pixeltrix.co.uk: 1
- calebthompson.io: 1
- kampers.net: 1
- listia.com: 1
- freerunningtechnologies.com: 1
- coinbase.com: 1
- icehouse.se: 1
- talk21.com: 1
- linuxhotel.de: 1
- rim.com: 1
- applauze.com: 1
- maindeck.io: 1
- sitrox.com: 1
- kyanmedia.com: 1
- spkdev.net: 1
- hooktstudios.com: 1
- m6securities.com: 1
- fusionary.com: 1
- hale.ee: 1
- simplybusiness.co.uk: 1
- phlegx.com: 1
- fklingler.com: 1
- clearhaus.com: 1
- artirix.com: 1
- aloop.org: 1
- phusion.nl: 1
- sunfox.org: 1
- weppos.net: 1
- tillgrosch.com: 1
- venombytes.com: 1
- masoo.jp: 1
- nilbus.com: 1
- douglas-miller.com: 1
- thomsonreuters.com: 1
- mceachen.us: 1
- fmins.com: 1
- stevemorris.com: 1
- stakeventures.com: 1
- nurey.com: 1
- papercavalier.com: 1
- mongey.net: 1
- bjeanes.com: 1
- betterplace.org: 1
- sequra.es: 1
- genuitytech.com: 1
- andrewhavens.com: 1
- skello.io: 1
- alexspeller.com: 1
- dunae.ca: 1
- dreamconception.com: 1
- talkgoal.com: 1
- room118solutions.com: 1
- warmlyyours.com: 1
- chsc.dk: 1
- onthebeach.co.uk: 1
- teksol.info: 1
- redbassett.com: 1
- spinlocksolutions.com: 1
- danielsherson.com: 1
- lunatic.cat: 1
- spbtv.com: 1
- kirillplatonov.com: 1
- ksol.fr: 1
- alienfast.com: 1
- justinrhinesmith.com: 1
- everydayhero.com.au: 1
- flowlens.com: 1
- devmask.net: 1
- joao-carlos.com: 1
- jc00ke.com: 1
- annesley.cc: 1
- aleksejleonov.com: 1
- roos.fi: 1
- kernel.org: 1
- thoughtbot.com: 1
- kiskolabs.com: 1
- booqable.com: 1
- stanczyk.sk: 1
- getsmarter.co.za: 1
- dominionenterprises.com: 1
- sime.net.au: 1
- railsnewbie.com: 1
- oriontransfer.co.nz: 1
- saizai.com: 1
- rolandasb.com: 1
- nemron.com: 1
- rramsden.ca: 1
- raphaelcosta.net: 1
- countrystone.com: 1
- voxxit.com: 1
- killingjoketf2.com: 1
- oozou.com: 1
- atomicflow.org: 1
- catawiki.nl: 1
- codemy.net: 1
- itoursmart.com: 1
- dataxu.com: 1
- thelevelup.com: 1
- bornpay.com: 1
- 3months.com: 1
- softwarecriollo.com: 1
- mail.csuchico.edu: 1
- mail.ru: 1
- widetail.com: 1
- rocketguys.com: 1
- shopnastygal.com: 1
- happyshop.cl: 1
- incremental.dk: 1
- googlegroups.com: 1
- gmx.net: 1
- c.mroach.com: 1
- goodlife.tw: 1
- anneschanz.de: 1
- gabrielgilder.com: 1
Issue and Pull Request metadata
Last synced: 14 days ago
Total issues: 100
Total pull requests: 156
Average time to close issues: 10 months
Average time to close pull requests: 3 months
Total issue authors: 78
Total pull request authors: 63
Average comments per issue: 2.42
Average comments per pull request: 1.4
Merged pull request: 99
Bot issues: 0
Bot pull requests: 1
Past year issues: 10
Past year pull requests: 53
Past year average time to close issues: about 1 month
Past year average time to close pull requests: 24 days
Past year issue authors: 8
Past year pull request authors: 16
Past year average comments per issue: 2.8
Past year average comments per pull request: 1.04
Past year merged pull request: 34
Past year bot issues: 0
Past year bot pull requests: 1
Top Issue Authors
- tagliala (12)
- stebo (2)
- matid (2)
- jaresty (2)
- semmons99 (2)
- cercxtrova (2)
- mwolman (2)
- artur-intech (2)
- leoplct (2)
- kalsan (2)
- fwolfst (2)
- pawlik (2)
- OLUMA-EMMANUEL (1)
- nflorentin (1)
- 23tux (1)
Top Pull Request Authors
- tagliala (30)
- yukideluxe (14)
- sunny (12)
- igor-alexandrov (6)
- semmons99 (6)
- pranavbabu (5)
- olleolleolle (4)
- masoo (4)
- tirosh (3)
- jozr (2)
- svoop (2)
- thejspr (2)
- MathijsK93 (2)
- allencch (2)
- s-mage (2)
Top Issue Labels
- type:feature (4)
- type:idea (2)
- support (1)
- type:bug (1)
- ver:7 (1)
- research (1)
Top Pull Request Labels
- ver:7 (2)
- currency update (1)
- dependencies (1)
- github_actions (1)
Package metadata
- Total packages: 15
-
Total downloads:
- rubygems: 237,458,893 total
- Total docker downloads: 15,114,110
- Total dependent packages: 310 (may contain duplicates)
- Total dependent repositories: 11,602 (may contain duplicates)
- Total versions: 355
- Total maintainers: 9
gem.coop: money
A Ruby Library for dealing with money and currency conversion.
- Homepage: https://rubymoney.github.io/money
- Documentation: http://www.rubydoc.info/gems/money/
- Licenses: MIT
- Latest release: 7.0.2 (published 3 months ago)
- Last Synced: 2026-02-18T21:03:35.015Z (12 days ago)
- Versions: 103
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 118,752,342 Total
- Docker Downloads: 7,557,055
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Downloads: 0.216%
- Average: 0.334%
- Docker downloads count: 1.12%
- Maintainers (6)
rubygems.org: money
A Ruby Library for dealing with money and currency conversion.
- Homepage: https://rubymoney.github.io/money
- Documentation: http://www.rubydoc.info/gems/money/
- Licenses: MIT
- Latest release: 7.0.2 (published 3 months ago)
- Last Synced: 2026-02-18T06:14:40.021Z (13 days ago)
- Versions: 103
- Dependent Packages: 310
- Dependent Repositories: 11,601
- Downloads: 118,696,369 Total
- Docker Downloads: 7,557,055
-
Rankings:
- Dependent packages count: 0.14%
- Downloads: 0.207%
- Dependent repos count: 0.318%
- Average: 0.697%
- Forks count: 0.899%
- Stargazers count: 0.982%
- Docker downloads count: 1.639%
- Maintainers (3)
proxy.golang.org: github.com/RubyMoney/money
- Homepage:
- Documentation: https://pkg.go.dev/github.com/RubyMoney/money#section-documentation
- Licenses: mit
- Latest release: v7.0.2+incompatible (published 3 months ago)
- Last Synced: 2026-01-27T03:22:05.610Z (about 1 month ago)
- Versions: 69
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 6.999%
- Average: 8.173%
- Dependent repos count: 9.346%
proxy.golang.org: github.com/rubymoney/money
- Homepage:
- Documentation: https://pkg.go.dev/github.com/rubymoney/money#section-documentation
- Licenses: mit
- Latest release: v7.0.2+incompatible (published 3 months ago)
- Last Synced: 2026-01-27T03:22:09.570Z (about 1 month ago)
- Versions: 69
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 6.999%
- Average: 8.173%
- Dependent repos count: 9.346%
rubygems.org: money-joshm1
This library aids one in handling money and different currencies.
- Homepage: http://rubymoney.github.com/money
- Documentation: http://www.rubydoc.info/gems/money-joshm1/
- Licenses: MIT
- Latest release: 5.1.2 (published almost 13 years ago)
- Last Synced: 2026-01-27T03:21:58.038Z (about 1 month ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 1
- Downloads: 5,091 Total
-
Rankings:
- Forks count: 0.881%
- Stargazers count: 0.97%
- Dependent packages count: 15.773%
- Average: 21.104%
- Dependent repos count: 21.729%
- Downloads: 66.166%
- Maintainers (1)
gem.coop: money-joshm1
This library aids one in handling money and different currencies.
- Homepage: http://rubymoney.github.com/money
- Documentation: http://www.rubydoc.info/gems/money-joshm1/
- Licenses: MIT
- Latest release: 5.1.2 (published almost 13 years ago)
- Last Synced: 2026-01-27T03:21:59.501Z (about 1 month ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 5,091 Total
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 25.681%
- Downloads: 77.044%
- Maintainers (1)
debian-11: ruby-money
- Homepage: https://rubymoney.github.io/money
- Documentation: https://packages.debian.org/bullseye/ruby-money
- Licenses:
- Latest release: 6.13.6-2 (published 20 days ago)
- Last Synced: 2026-02-13T08:22:42.688Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-12: ruby-money
- Homepage: https://rubymoney.github.io/money
- Documentation: https://packages.debian.org/bookworm/ruby-money
- Licenses:
- Latest release: 6.16.0-1 (published 18 days ago)
- Last Synced: 2026-02-12T23:35:22.857Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
debian-13: ruby-money
- Homepage: https://rubymoney.github.io/money
- Documentation: https://packages.debian.org/trixie/ruby-money
- Licenses:
- Latest release: 6.19.0-1 (published 19 days ago)
- Last Synced: 2026-02-13T13:17:36.770Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
Dependencies
- actions/checkout v3 composite
- ruby/setup-ruby v1 composite
- json ~> 1.8.3
- json >= 0
- pry >= 0
- term-ansicolor < 1.4
- tins ~> 1.6.0
- bundler >= 0 development
- kramdown ~> 2.3 development
- rake >= 0 development
- rspec ~> 3.4 development
- yard ~> 0.9.11 development
- i18n >= 0.6.4, <= 2
- actions/checkout v6 composite
- ruby/setup-ruby v1 composite
Score: 33.08685948216672