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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 775a299c417f1325003083f1a919358c46169daa859454e987adbb7eeab1393e
4
- data.tar.gz: 7315d0e4ea8905ceb3f90b4edc3882f122934423f1a3d591e930a0c3f7c68195
3
+ metadata.gz: 9da2776b04254282c1261d0cc5d96ea2cfeb632875b29ea2121e0a38e6657f02
4
+ data.tar.gz: 360680271236c15fc26a307a0b9ff74bce4e380f2a23cf9909b3a8b4e7e4b0d4
5
5
  SHA512:
6
- metadata.gz: 336cba7171af162ec7f7bc3251bda72f94c4ae36bd5795cb7b0f0930da13de06a0d8f1cf0746d22199de513cbc59d753f70b704748dc2d531e581b5f5b697f00
7
- data.tar.gz: 5e21ad2c19091786ec6d8fb35a261b644dc6142d3452fdec2681543824e3f81fbe45c37f7f15463565036801a3f3253c4ce2e589920d11df05b596f32b12ad8e
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
@@ -1,3 +1,3 @@
1
1
  module Pay
2
- VERSION = "3.0.14"
2
+ VERSION = "3.0.15"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pay
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.14
4
+ version: 3.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Charnes