spook_and_pay 0.2.3.alpha → 0.2.5.alpha

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36337e6bc05a6c51b5f0b89042c43e9953061eda
4
- data.tar.gz: 1f1debb4bcb3efd35d7ef032297ada9e2fd017eb
3
+ metadata.gz: 46ed8c4d7cbf61f27ef71681008b27989b1df658
4
+ data.tar.gz: e84f21e30c73572af7ad94297d82cbe0c8066aa3
5
5
  SHA512:
6
- metadata.gz: c2d55cb04f26b634d0d915fcbdd4a240f238488baa614975eb249aa0a953d6a18c63af4bc71e646e43b96d2c40ea1ff8ab11a87807176da34ecadb148e101888
7
- data.tar.gz: 10a674a7f2371a7e5dd0bc8758dd904a1640ed33b86d11c36bfdda68495cd3cd1baabd79dae89faddd561077c3eb9bc315b021f59d17d32c09a299dacb1228ce
6
+ metadata.gz: 85f6533caa49af68efd8337e9f3336f106d44b8d47988e9dbe5445ea3b205ee4a88af40c0c119acac968f9de17ec40fe5d3e59202f7ae65293278a238f9f7a12
7
+ data.tar.gz: b8747bfd8185267878d063b642bc9cc2e2ceebe810b2732261b189b70e062ae287838a68ba95f6329e9302af4965f19950bd3c61a6b61092f1d6e6c7081af168
@@ -21,15 +21,26 @@ module SpookAndPay
21
21
  # @attr_reader Spreedly::Environment
22
22
  attr_reader :spreedly
23
23
 
24
+ # Currency code. Spreedly defaults to USD, but we default to AUD.
25
+ #
26
+ # @attr_reader String
27
+ attr_reader :currency_code
28
+
24
29
  # Generate a new instance of the Spreedly provider.
25
30
  #
26
31
  # @param Hash config
27
32
  # @option config String :environment_key
28
33
  # @option config String :access_secret
29
34
  # @option config String :gateway_token
35
+ # @option config String :currency_code
30
36
  def initialize(env, config)
31
37
  @gateway_token = config[:gateway_token]
32
- @spreedly = ::Spreedly::Environment.new(config[:environment_key], config[:access_secret])
38
+ @currency_code = config[:currency_code] || 'AUD'
39
+ @spreedly = ::Spreedly::Environment.new(
40
+ config[:environment_key],
41
+ config[:access_secret],
42
+ :currency_code => currency_code
43
+ )
33
44
 
34
45
  super(env, config)
35
46
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spook_and_pay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3.alpha
4
+ version: 0.2.5.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke Sutton
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-22 00:00:00.000000000 Z
12
+ date: 2013-12-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: braintree