spreedly 2.0.7 → 2.0.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9538b6c1ed8e7ba11071b8dc757c7e7a1d4732d8
|
4
|
+
data.tar.gz: 63dd3d5646e29f2a58e49ed71a54218c1a3fb13c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e6ed1813c4f1b9e2e4e5c3d855a6562e1bb4dd8482f900d07073cd0b27af78f5551da9ecbd015bc57c80c4cbf8890d4a1415aacf8580c3eb38bc86457abecaa1
|
7
|
+
data.tar.gz: 63048ed38605a0d135614be7916f4a51f8e8a3672ac8dffbe05b57ab736be989224c687ef26209fd28e18223037fd8acaea79450c767dc63b85ada4dbbc3fe9f
|
@@ -3,17 +3,18 @@ module Spreedly
|
|
3
3
|
class GatewayClass
|
4
4
|
include Fields
|
5
5
|
|
6
|
-
field :gateway_type, :name, :
|
6
|
+
field :gateway_type, :name, :homepage, :company_name
|
7
7
|
field :supports_purchase, :supports_authorize, :supports_capture, :supports_credit,
|
8
8
|
:supports_void, :supports_reference_purchase, :supports_purchase_via_preauthorization,
|
9
9
|
:supports_offsite_purchase, :supports_offsite_authorize, :supports_3dsecure_purchase,
|
10
10
|
:supports_3dsecure_authorize, :supports_store, :supports_remove, type: :boolean
|
11
11
|
|
12
|
-
attr_reader :supported_countries, :payment_methods, :auth_modes
|
12
|
+
attr_reader :supported_countries, :payment_methods, :auth_modes, :regions
|
13
13
|
|
14
14
|
def initialize(xml_doc)
|
15
15
|
initialize_fields(xml_doc)
|
16
16
|
init_supported_countries(xml_doc)
|
17
|
+
init_regions(xml_doc)
|
17
18
|
init_payment_methods(xml_doc)
|
18
19
|
init_auth_modes(xml_doc)
|
19
20
|
end
|
@@ -32,6 +33,11 @@ module Spreedly
|
|
32
33
|
@supported_countries = list.split(/\s*,\s*/)
|
33
34
|
end
|
34
35
|
|
36
|
+
def init_regions(xml_doc)
|
37
|
+
list = xml_doc.at_xpath(".//regions").inner_html.strip
|
38
|
+
@regions = list.split(/\s*,\s*/)
|
39
|
+
end
|
40
|
+
|
35
41
|
def init_payment_methods(xml_doc)
|
36
42
|
@payment_methods = xml_doc.xpath('.//payment_methods/payment_method').map do |each|
|
37
43
|
each.text
|
data/lib/spreedly/version.rb
CHANGED
@@ -11,6 +11,7 @@ class RemoteGatewayOptionsTest < Test::Unit::TestCase
|
|
11
11
|
braintree = gateway_classes.select { |each| each.name == "Braintree" }.first
|
12
12
|
assert_equal "http://www.braintreepaymentsolutions.com/", braintree.homepage
|
13
13
|
assert_equal %w(credit_card third_party_token), braintree.payment_methods
|
14
|
+
assert_equal %w(asia_pacific europe north_america), braintree.regions
|
14
15
|
assert_equal %w(orange blue), braintree.auth_modes.map { |e| e.auth_mode_type }
|
15
16
|
assert_equal %w(login password), braintree.auth_modes.first.credentials.map { |e| e.name }
|
16
17
|
assert_equal [ true, false ], braintree.auth_modes.first.credentials.map { |e| e.safe }
|
@@ -85,6 +85,7 @@ module GatewayOptionsStubs
|
|
85
85
|
<gateway_specific_field>recurring</gateway_specific_field>
|
86
86
|
</gateway_specific_fields>
|
87
87
|
<supported_countries>US, GB, CA</supported_countries>
|
88
|
+
<regions>europe, north_america</regions>
|
88
89
|
<homepage>http://paypal.com/</homepage>
|
89
90
|
<company_name>Paypal Inc.</company_name>
|
90
91
|
</gateway>
|
@@ -129,6 +130,7 @@ module GatewayOptionsStubs
|
|
129
130
|
</payment_methods>
|
130
131
|
<gateway_specific_fields/>
|
131
132
|
<supported_countries>HK, US, GB, AU, AD, BE, CH, CY, CZ, DE, DK, ES, FI, FR, GI, GR, HU, IE, IL, IT, LI, LU, MC, MT, NL, NO, NZ, PL, PT, SE, SG, SI, SM, TR, UM, VA</supported_countries>
|
133
|
+
<regions>latin_america</regions>
|
132
134
|
<homepage>http://worldpay.com</homepage>
|
133
135
|
<company_name>Worldpay</company_name>
|
134
136
|
</gateway>
|
metadata
CHANGED
@@ -1,112 +1,99 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spreedly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 2.0.7
|
4
|
+
version: 2.0.8
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Spreedly
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-
|
11
|
+
date: 2014-03-12 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
prerelease: false
|
16
14
|
name: nokogiri
|
17
|
-
|
18
|
-
version_requirements: !ruby/object:Gem::Requirement
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
19
16
|
requirements:
|
20
|
-
- -
|
17
|
+
- - ">="
|
21
18
|
- !ruby/object:Gem::Version
|
22
19
|
version: '0'
|
23
|
-
|
24
|
-
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
23
|
requirements:
|
26
|
-
- -
|
24
|
+
- - ">="
|
27
25
|
- !ruby/object:Gem::Version
|
28
26
|
version: '0'
|
29
|
-
none: false
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
|
-
prerelease: false
|
32
28
|
name: bundler
|
33
|
-
|
34
|
-
version_requirements: !ruby/object:Gem::Requirement
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
35
30
|
requirements:
|
36
|
-
- - ~>
|
31
|
+
- - "~>"
|
37
32
|
- !ruby/object:Gem::Version
|
38
33
|
version: '1.3'
|
39
|
-
|
40
|
-
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
37
|
requirements:
|
42
|
-
- - ~>
|
38
|
+
- - "~>"
|
43
39
|
- !ruby/object:Gem::Version
|
44
40
|
version: '1.3'
|
45
|
-
none: false
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
|
-
prerelease: false
|
48
42
|
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
49
48
|
type: :development
|
49
|
+
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: mocha
|
56
57
|
requirement: !ruby/object:Gem::Requirement
|
57
58
|
requirements:
|
58
|
-
- -
|
59
|
+
- - ">="
|
59
60
|
- !ruby/object:Gem::Version
|
60
61
|
version: '0'
|
61
|
-
none: false
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
prerelease: false
|
64
|
-
name: mocha
|
65
62
|
type: :development
|
63
|
+
prerelease: false
|
66
64
|
version_requirements: !ruby/object:Gem::Requirement
|
67
65
|
requirements:
|
68
|
-
- -
|
66
|
+
- - ">="
|
69
67
|
- !ruby/object:Gem::Version
|
70
68
|
version: '0'
|
71
|
-
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: log_buddy
|
72
71
|
requirement: !ruby/object:Gem::Requirement
|
73
72
|
requirements:
|
74
|
-
- -
|
73
|
+
- - ">="
|
75
74
|
- !ruby/object:Gem::Version
|
76
75
|
version: '0'
|
77
|
-
none: false
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
prerelease: false
|
80
|
-
name: log_buddy
|
81
76
|
type: :development
|
77
|
+
prerelease: false
|
82
78
|
version_requirements: !ruby/object:Gem::Requirement
|
83
79
|
requirements:
|
84
|
-
- -
|
80
|
+
- - ">="
|
85
81
|
- !ruby/object:Gem::Version
|
86
82
|
version: '0'
|
87
|
-
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: awesome_print
|
88
85
|
requirement: !ruby/object:Gem::Requirement
|
89
86
|
requirements:
|
90
|
-
- -
|
87
|
+
- - ">="
|
91
88
|
- !ruby/object:Gem::Version
|
92
89
|
version: '0'
|
93
|
-
none: false
|
94
|
-
- !ruby/object:Gem::Dependency
|
95
|
-
prerelease: false
|
96
|
-
name: awesome_print
|
97
90
|
type: :development
|
91
|
+
prerelease: false
|
98
92
|
version_requirements: !ruby/object:Gem::Requirement
|
99
93
|
requirements:
|
100
|
-
- -
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: '0'
|
103
|
-
none: false
|
104
|
-
requirement: !ruby/object:Gem::Requirement
|
105
|
-
requirements:
|
106
|
-
- - ! '>='
|
94
|
+
- - ">="
|
107
95
|
- !ruby/object:Gem::Version
|
108
96
|
version: '0'
|
109
|
-
none: false
|
110
97
|
description: The Spreedly gem provides a convenient Ruby wrapper for the Spreedly
|
111
98
|
API.
|
112
99
|
email:
|
@@ -115,7 +102,7 @@ executables: []
|
|
115
102
|
extensions: []
|
116
103
|
extra_rdoc_files: []
|
117
104
|
files:
|
118
|
-
- .gitignore
|
105
|
+
- ".gitignore"
|
119
106
|
- Gemfile
|
120
107
|
- HISTORY.md
|
121
108
|
- LICENSE.txt
|
@@ -223,33 +210,26 @@ files:
|
|
223
210
|
homepage: https://github.com/spreedly/spreedly-gem
|
224
211
|
licenses:
|
225
212
|
- MIT
|
213
|
+
metadata: {}
|
226
214
|
post_install_message:
|
227
215
|
rdoc_options: []
|
228
216
|
require_paths:
|
229
217
|
- lib
|
230
218
|
required_ruby_version: !ruby/object:Gem::Requirement
|
231
219
|
requirements:
|
232
|
-
- -
|
220
|
+
- - ">="
|
233
221
|
- !ruby/object:Gem::Version
|
234
|
-
segments:
|
235
|
-
- 0
|
236
|
-
hash: 3183849061107919286
|
237
222
|
version: '0'
|
238
|
-
none: false
|
239
223
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
240
224
|
requirements:
|
241
|
-
- -
|
225
|
+
- - ">="
|
242
226
|
- !ruby/object:Gem::Version
|
243
|
-
segments:
|
244
|
-
- 0
|
245
|
-
hash: 3183849061107919286
|
246
227
|
version: '0'
|
247
|
-
none: false
|
248
228
|
requirements: []
|
249
229
|
rubyforge_project:
|
250
|
-
rubygems_version:
|
230
|
+
rubygems_version: 2.2.0
|
251
231
|
signing_key:
|
252
|
-
specification_version:
|
232
|
+
specification_version: 4
|
253
233
|
summary: Provides a Ruby wrapper for the Spreedly API.
|
254
234
|
test_files:
|
255
235
|
- test/credentials/credentials.yml
|