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 +4 -4
- data/lib/spook_and_pay/providers/spreedly.rb +12 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46ed8c4d7cbf61f27ef71681008b27989b1df658
|
4
|
+
data.tar.gz: e84f21e30c73572af7ad94297d82cbe0c8066aa3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
@
|
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.
|
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-
|
12
|
+
date: 2013-12-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: braintree
|