pay 3.0.14 → 3.0.15
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pay might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/pay/currency.rb +2 -2
- data/lib/pay/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9da2776b04254282c1261d0cc5d96ea2cfeb632875b29ea2121e0a38e6657f02
|
4
|
+
data.tar.gz: 360680271236c15fc26a307a0b9ff74bce4e380f2a23cf9909b3a8b4e7e4b0d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74dffc7becc6c899d770674576757967b20c1c0ece21e4525c97e7e491699cce8b066e4c9aca8cadf9f4bd3c9c9ec7cd719d177c8556fa9e73dbc75919c51e5c
|
7
|
+
data.tar.gz: 5b355770187eb928ae7b5c70a403ff5895c46ba0a0f3791ecc3e3c7b3680bb6879360dd5bdeb29e6add51ef8cb12dbad961227df975c0899d8273db70544d5cc
|
data/lib/pay/currency.rb
CHANGED
@@ -12,9 +12,9 @@ module Pay
|
|
12
12
|
end
|
13
13
|
|
14
14
|
# Takes an amount (in cents) and currency and returns the formatted version for the currency
|
15
|
-
def self.format(amount, currency
|
15
|
+
def self.format(amount, currency:, **options)
|
16
16
|
currency ||= :usd
|
17
|
-
new(currency).format_amount(amount)
|
17
|
+
new(currency).format_amount(amount, **options)
|
18
18
|
end
|
19
19
|
|
20
20
|
def initialize(iso_code)
|
data/lib/pay/version.rb
CHANGED