spreedly 1.4.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. data/.gitignore +8 -0
  2. data/Gemfile +4 -0
  3. data/HISTORY.md +5 -0
  4. data/README.md +362 -29
  5. data/Rakefile +32 -0
  6. data/lib/certs/cacert.pem +7815 -0
  7. data/lib/spreedly.rb +24 -282
  8. data/lib/spreedly/common/errors_parser.rb +15 -0
  9. data/lib/spreedly/common/fields.rb +90 -0
  10. data/lib/spreedly/connection.rb +40 -0
  11. data/lib/spreedly/environment.rb +176 -0
  12. data/lib/spreedly/error.rb +50 -0
  13. data/lib/spreedly/gateway.rb +10 -0
  14. data/lib/spreedly/model.rb +17 -0
  15. data/lib/spreedly/payment_methods/credit_card.rb +9 -0
  16. data/lib/spreedly/payment_methods/payment_method.rb +34 -0
  17. data/lib/spreedly/payment_methods/paypal.rb +7 -0
  18. data/lib/spreedly/payment_methods/sprel.rb +7 -0
  19. data/lib/spreedly/ssl_requester.rb +65 -0
  20. data/lib/spreedly/transactions/add_payment_method.rb +16 -0
  21. data/lib/spreedly/transactions/auth_purchase.rb +17 -0
  22. data/lib/spreedly/transactions/authorization.rb +7 -0
  23. data/lib/spreedly/transactions/capture.rb +14 -0
  24. data/lib/spreedly/transactions/gateway_transaction.rb +31 -0
  25. data/lib/spreedly/transactions/purchase.rb +7 -0
  26. data/lib/spreedly/transactions/redact_payment_method.rb +14 -0
  27. data/lib/spreedly/transactions/refund.rb +14 -0
  28. data/lib/spreedly/transactions/retain_payment_method.rb +14 -0
  29. data/lib/spreedly/transactions/transaction.rb +41 -0
  30. data/lib/spreedly/transactions/void.rb +9 -0
  31. data/lib/spreedly/urls.rb +64 -0
  32. data/lib/spreedly/version.rb +1 -1
  33. data/spreedly.gemspec +29 -0
  34. data/test/credentials/credentials.yml +9 -0
  35. data/test/credentials/test_credentials.rb +43 -0
  36. data/test/helpers/assertions.rb +29 -0
  37. data/test/helpers/communication_helper.rb +31 -0
  38. data/test/helpers/creation_helper.rb +26 -0
  39. data/test/helpers/stub_response.rb +18 -0
  40. data/test/remote/remote_add_credit_card_test.rb +62 -0
  41. data/test/remote/remote_add_gateway_test.rb +30 -0
  42. data/test/remote/remote_authorize_test.rb +48 -0
  43. data/test/remote/remote_capture_test.rb +71 -0
  44. data/test/remote/remote_find_gateway_test.rb +31 -0
  45. data/test/remote/remote_find_payment_method_test.rb +29 -0
  46. data/test/remote/remote_find_transaction_test.rb +33 -0
  47. data/test/remote/remote_list_transactions_test.rb +36 -0
  48. data/test/remote/remote_purchase_test.rb +69 -0
  49. data/test/remote/remote_redact_test.rb +38 -0
  50. data/test/remote/remote_refund_test.rb +65 -0
  51. data/test/remote/remote_retain_test.rb +39 -0
  52. data/test/remote/remote_void_test.rb +64 -0
  53. data/test/test_helper.rb +23 -0
  54. data/test/unit/add_credit_card_test.rb +74 -0
  55. data/test/unit/add_gateway_test.rb +26 -0
  56. data/test/unit/authorize_test.rb +87 -0
  57. data/test/unit/capture_test.rb +91 -0
  58. data/test/unit/environment_test.rb +18 -0
  59. data/test/unit/fields_test.rb +75 -0
  60. data/test/unit/find_gateway_test.rb +28 -0
  61. data/test/unit/find_payment_method_test.rb +90 -0
  62. data/test/unit/find_transaction_test.rb +31 -0
  63. data/test/unit/list_transactions_test.rb +46 -0
  64. data/test/unit/purchase_test.rb +95 -0
  65. data/test/unit/redact_payment_method_test.rb +51 -0
  66. data/test/unit/refund_test.rb +91 -0
  67. data/test/unit/response_stubs/add_credit_card_stubs.rb +43 -0
  68. data/test/unit/response_stubs/add_gateway_stubs.rb +39 -0
  69. data/test/unit/response_stubs/authorization_stubs.rb +139 -0
  70. data/test/unit/response_stubs/capture_stubs.rb +87 -0
  71. data/test/unit/response_stubs/find_gateway_stubs.rb +38 -0
  72. data/test/unit/response_stubs/find_payment_method_stubs.rb +108 -0
  73. data/test/unit/response_stubs/find_transaction_stubs.rb +43 -0
  74. data/test/unit/response_stubs/list_transactions_stubs.rb +110 -0
  75. data/test/unit/response_stubs/purchase_stubs.rb +139 -0
  76. data/test/unit/response_stubs/redact_payment_method_stubs.rb +54 -0
  77. data/test/unit/response_stubs/refund_stubs.rb +87 -0
  78. data/test/unit/response_stubs/retain_payment_method_stubs.rb +85 -0
  79. data/test/unit/response_stubs/void_stubs.rb +79 -0
  80. data/test/unit/retain_payment_method_test.rb +44 -0
  81. data/test/unit/timeout_test.rb +20 -0
  82. data/test/unit/void_test.rb +96 -0
  83. metadata +215 -29
  84. checksums.yaml +0 -15
  85. data/lib/spreedly/common.rb +0 -44
  86. data/lib/spreedly/mock.rb +0 -221
  87. data/lib/spreedly/test_hacks.rb +0 -27
@@ -0,0 +1,79 @@
1
+ module VoidStubs
2
+
3
+ def successful_void_response
4
+ StubResponse.succeeded <<-XML
5
+ <transaction>
6
+ <on_test_gateway type="boolean">true</on_test_gateway>
7
+ <created_at type="datetime">2013-08-01T19:05:53Z</created_at>
8
+ <updated_at type="datetime">2013-08-01T19:05:53Z</updated_at>
9
+ <succeeded type="boolean">true</succeeded>
10
+ <token>YutwWIoICGiFvSWUQbb9LTyjfnF</token>
11
+ <state>succeeded</state>
12
+ <gateway_specific_fields nil="true"/>
13
+ <gateway_specific_response_fields nil="true"/>
14
+ <transaction_type>Void</transaction_type>
15
+ <order_id>49J</order_id>
16
+ <ip>102.122.012.111</ip>
17
+ <description>Wonderful Description</description>
18
+ <merchant_name_descriptor>DopeCorp</merchant_name_descriptor>
19
+ <merchant_location_descriptor>Somewhere</merchant_location_descriptor>
20
+ <message key="messages.transaction_succeeded">Succeeded!</message>
21
+ <gateway_token>EuXlDMZEMZfrHSvE9tkRzaW8j0z</gateway_token>
22
+ <reference_token>CjedAratpuiT3CMmln4t3oZFvOS</reference_token>
23
+ <response>
24
+ <success type="boolean">true</success>
25
+ <message>Successful void</message>
26
+ <avs_code nil="true"/>
27
+ <avs_message nil="true"/>
28
+ <cvv_code nil="true"/>
29
+ <cvv_message nil="true"/>
30
+ <pending type="boolean">false</pending>
31
+ <error_code></error_code>
32
+ <error_detail nil="true"/>
33
+ <cancelled type="boolean">false</cancelled>
34
+ <created_at type="datetime">2013-08-01T19:05:53Z</created_at>
35
+ <updated_at type="datetime">2013-08-01T19:05:53Z</updated_at>
36
+ </response>
37
+ </transaction>
38
+ XML
39
+ end
40
+
41
+ def failed_void_response
42
+ StubResponse.failed <<-XML
43
+ <transaction>
44
+ <on_test_gateway type="boolean">false</on_test_gateway>
45
+ <created_at type="datetime">2013-08-01T19:48:41Z</created_at>
46
+ <updated_at type="datetime">2013-08-01T19:48:42Z</updated_at>
47
+ <succeeded type="boolean">false</succeeded>
48
+ <token>39gMhrti9KGiuLXa9suYL3kn3st</token>
49
+ <state>gateway_processing_failed</state>
50
+ <gateway_specific_fields nil="true"/>
51
+ <gateway_specific_response_fields nil="true"/>
52
+ <transaction_type>Void</transaction_type>
53
+ <order_id nil="true"/>
54
+ <ip nil="true"/>
55
+ <description nil="true"/>
56
+ <merchant_name_descriptor nil="true"/>
57
+ <merchant_location_descriptor nil="true"/>
58
+ <message>Transaction id is invalid.</message>
59
+ <gateway_token>2AocQ8IUvnrr6J0xPGW7QbrMX6E</gateway_token>
60
+ <reference_token>KNFrnpBYd9kFohOBZVL6GEmSGJB</reference_token>
61
+ <response>
62
+ <success type="boolean">false</success>
63
+ <message>Transaction id is invalid.</message>
64
+ <avs_code nil="true"/>
65
+ <avs_message nil="true"/>
66
+ <cvv_code nil="true"/>
67
+ <cvv_message nil="true"/>
68
+ <pending type="boolean">false</pending>
69
+ <error_code>10609</error_code>
70
+ <error_detail nil="true"/>
71
+ <cancelled type="boolean">false</cancelled>
72
+ <created_at type="datetime">2013-08-01T19:48:42Z</created_at>
73
+ <updated_at type="datetime">2013-08-01T19:48:42Z</updated_at>
74
+ </response>
75
+ </transaction>
76
+ XML
77
+ end
78
+
79
+ end
@@ -0,0 +1,44 @@
1
+ require 'test_helper'
2
+ require 'unit/response_stubs/retain_payment_method_stubs'
3
+
4
+ class RetainPaymentMethodTest < Test::Unit::TestCase
5
+
6
+ include RetainPaymentMethodStubs
7
+
8
+ def setup
9
+ @environment = Spreedly::Environment.new("key", "secret")
10
+ end
11
+
12
+ def test_successful_retain
13
+ t = retain_using(successful_retain_response)
14
+
15
+ assert_kind_of(Spreedly::RetainPaymentMethod, t)
16
+ assert_equal 'DsmkqsjRvqcMGSCBUUuUiRw8tso', t.token
17
+ assert_equal Time.parse('2013-08-05 18:31:51 UTC'), t.created_at
18
+ assert_equal Time.parse('2013-08-05 18:31:51 UTC'), t.updated_at
19
+ assert t.succeeded?
20
+ assert_equal 'Succeeded!', t.message
21
+ assert_equal 'succeeded', t.state
22
+ assert_equal 'retained', t.payment_method.storage_state
23
+ assert_equal 'RXZDzDGxpqPV7v5ZNVO89n1qtTl', t.payment_method.token
24
+ end
25
+
26
+ def test_failed_retain
27
+ t = retain_using(failed_retain_response)
28
+
29
+ assert_kind_of(Spreedly::RetainPaymentMethod, t)
30
+ assert_equal '2OLUmdUE7EFIdkb9tTnWyLPkxsF', t.token
31
+ assert !t.succeeded?
32
+ assert_equal 'failed', t.state
33
+
34
+ assert_equal 'CpurR3zCfGcRC0tqwq9zp4zzIgf', t.payment_method.token
35
+ end
36
+
37
+ private
38
+ def retain_using(response)
39
+ @environment.stubs(:raw_ssl_request).returns(response)
40
+ @environment.retain_payment_method("IgnoredTokenSinceResponseIsStubbed")
41
+ end
42
+
43
+ end
44
+
@@ -0,0 +1,20 @@
1
+ require 'test_helper'
2
+ require 'unit/response_stubs/void_stubs'
3
+
4
+ class TimeoutTest < Test::Unit::TestCase
5
+
6
+ include VoidStubs
7
+
8
+ def setup
9
+ @environment = Spreedly::Environment.new("key", "secret")
10
+ end
11
+
12
+ def test_timeout
13
+ @environment.stubs(:raw_ssl_request).raises(Timeout::Error)
14
+
15
+ assert_raise_with_message(Spreedly::TimeoutError, "The payment system is not responding.") do
16
+ @environment.void_transaction('NotImportantSinceStubbed')
17
+ end
18
+ end
19
+
20
+ end
@@ -0,0 +1,96 @@
1
+ require 'test_helper'
2
+ require 'unit/response_stubs/void_stubs'
3
+
4
+ class VoidTest < Test::Unit::TestCase
5
+
6
+ include VoidStubs
7
+
8
+ def setup
9
+ @environment = Spreedly::Environment.new("key", "secret")
10
+ end
11
+
12
+ def test_successful_void
13
+ t = void_using(successful_void_response)
14
+
15
+ assert_kind_of(Spreedly::Void, t)
16
+ assert_equal 'YutwWIoICGiFvSWUQbb9LTyjfnF', t.token
17
+ assert_equal Time.parse('2013-08-01T19:05:53Z'), t.created_at
18
+ assert_equal Time.parse('2013-08-01T19:05:53Z'), t.updated_at
19
+ assert t.on_test_gateway?
20
+ assert t.succeeded?
21
+ assert_equal 'Succeeded!', t.message
22
+ assert_equal 'succeeded', t.state
23
+ assert_equal '49J', t.order_id
24
+ assert_equal '102.122.012.111', t.ip
25
+ assert_equal 'Wonderful Description', t.description
26
+ assert_equal 'DopeCorp', t.merchant_name_descriptor
27
+ assert_equal 'Somewhere', t.merchant_location_descriptor
28
+ assert_equal 'EuXlDMZEMZfrHSvE9tkRzaW8j0z', t.gateway_token
29
+ assert_equal 'CjedAratpuiT3CMmln4t3oZFvOS', t.reference_token
30
+
31
+ assert t.response.success?
32
+ assert_equal 'Successful void', t.response.message
33
+ assert_equal '', t.response.avs_code
34
+ assert_equal '', t.response.avs_message
35
+ assert_equal '', t.response.cvv_code
36
+ assert_equal '', t.response.cvv_message
37
+ assert !t.response.pending?
38
+ assert_equal '', t.response.error_code
39
+ assert_equal '', t.response.error_detail
40
+ assert !t.response.cancelled?
41
+ assert_equal Time.parse('2013-08-01T19:05:53Z'), t.response.created_at
42
+ assert_equal Time.parse('2013-08-01T19:05:53Z'), t.response.updated_at
43
+ end
44
+
45
+ def test_failed_void
46
+ t = void_using(failed_void_response)
47
+
48
+ assert_kind_of(Spreedly::Void, t)
49
+ assert_equal '39gMhrti9KGiuLXa9suYL3kn3st', t.token
50
+ assert !t.succeeded?
51
+ assert_equal 'gateway_processing_failed', t.state
52
+ assert_equal 'Transaction id is invalid.', t.message
53
+ assert_equal '10609', t.response.error_code
54
+ assert !t.on_test_gateway?
55
+ end
56
+
57
+ def test_empty_request_body_params
58
+ body = get_request_body(successful_void_response) do
59
+ @environment.void_transaction("TransactionToken")
60
+ end
61
+
62
+ assert_nil body.root
63
+ end
64
+
65
+ def test_request_body_params
66
+ body = get_request_body(successful_void_response) do
67
+ @environment.void_transaction("TransactionToken", all_possible_options)
68
+ end
69
+
70
+ transaction = body.xpath('./transaction')
71
+ assert_xpaths_in transaction,
72
+ [ './order_id', '8675' ],
73
+ [ './description', 'Change of heart' ],
74
+ [ './ip', '183.128.100.103' ],
75
+ [ './merchant_name_descriptor', 'Zombie, Inc.' ],
76
+ [ './merchant_location_descriptor', 'Durham, NC' ]
77
+ end
78
+
79
+ private
80
+ def void_using(response)
81
+ @environment.stubs(:raw_ssl_request).returns(response)
82
+ @environment.void_transaction("IgnoredTransactionTokenSinceResponseIsStubbed")
83
+ end
84
+
85
+ def all_possible_options
86
+ {
87
+ order_id: "8675",
88
+ description: "Change of heart",
89
+ ip: "183.128.100.103",
90
+ merchant_name_descriptor: "Zombie, Inc.",
91
+ merchant_location_descriptor: "Durham, NC"
92
+ }
93
+ end
94
+
95
+ end
96
+
metadata CHANGED
@@ -1,77 +1,206 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spreedly
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ prerelease:
5
+ version: 2.0.0
5
6
  platform: ruby
6
7
  authors:
7
8
  - Spreedly
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-03-14 00:00:00.000000000 Z
12
+ date: 2013-08-07 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  prerelease: false
15
- name: httparty
16
- requirement: !ruby/object:Gem::Requirement
16
+ name: nokogiri
17
+ type: :runtime
18
+ version_requirements: !ruby/object:Gem::Requirement
17
19
  requirements:
18
20
  - - ! '>='
19
21
  - !ruby/object:Gem::Version
20
22
  version: '0'
21
- version_requirements: !ruby/object:Gem::Requirement
23
+ none: false
24
+ requirement: !ruby/object:Gem::Requirement
22
25
  requirements:
23
26
  - - ! '>='
24
27
  - !ruby/object:Gem::Version
25
28
  version: '0'
26
- type: :runtime
29
+ none: false
27
30
  - !ruby/object:Gem::Dependency
28
31
  prerelease: false
29
- name: shoulda
32
+ name: bundler
33
+ type: :development
34
+ version_requirements: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ~>
37
+ - !ruby/object:Gem::Version
38
+ version: '1.3'
39
+ none: false
30
40
  requirement: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ version: '1.3'
45
+ none: false
46
+ - !ruby/object:Gem::Dependency
47
+ prerelease: false
48
+ name: rake
49
+ type: :development
50
+ version_requirements: !ruby/object:Gem::Requirement
31
51
  requirements:
32
52
  - - ! '>='
33
53
  - !ruby/object:Gem::Version
34
54
  version: '0'
35
- version_requirements: !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirement: !ruby/object:Gem::Requirement
36
57
  requirements:
37
58
  - - ! '>='
38
59
  - !ruby/object:Gem::Version
39
60
  version: '0'
40
- type: :development
61
+ none: false
41
62
  - !ruby/object:Gem::Dependency
42
63
  prerelease: false
43
- name: mechanize
64
+ name: mocha
65
+ type: :development
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ! '>='
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
71
+ none: false
44
72
  requirement: !ruby/object:Gem::Requirement
45
73
  requirements:
46
- - - ~>
74
+ - - ! '>='
47
75
  - !ruby/object:Gem::Version
48
- version: 2.5.1
76
+ version: '0'
77
+ none: false
78
+ - !ruby/object:Gem::Dependency
79
+ prerelease: false
80
+ name: log_buddy
81
+ type: :development
49
82
  version_requirements: !ruby/object:Gem::Requirement
50
83
  requirements:
51
- - - ~>
84
+ - - ! '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ none: false
88
+ requirement: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ! '>='
52
91
  - !ruby/object:Gem::Version
53
- version: 2.5.1
92
+ version: '0'
93
+ none: false
94
+ - !ruby/object:Gem::Dependency
95
+ prerelease: false
96
+ name: awesome_print
54
97
  type: :development
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ! '>='
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ none: false
104
+ requirement: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ! '>='
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ none: false
55
110
  description: The Spreedly gem provides a convenient Ruby wrapper for the Spreedly
56
- Subscriptions API.
111
+ API.
57
112
  email:
58
- - nathaniel@spreedly.com
113
+ - duff@spreedly.com
59
114
  executables: []
60
115
  extensions: []
61
116
  extra_rdoc_files: []
62
117
  files:
63
- - lib/spreedly/common.rb
64
- - lib/spreedly/mock.rb
65
- - lib/spreedly/test_hacks.rb
66
- - lib/spreedly/version.rb
67
- - lib/spreedly.rb
68
- - README.md
69
- - LICENSE.txt
118
+ - .gitignore
119
+ - Gemfile
70
120
  - HISTORY.md
121
+ - LICENSE.txt
122
+ - README.md
123
+ - Rakefile
124
+ - lib/certs/cacert.pem
125
+ - lib/spreedly.rb
126
+ - lib/spreedly/common/errors_parser.rb
127
+ - lib/spreedly/common/fields.rb
128
+ - lib/spreedly/connection.rb
129
+ - lib/spreedly/environment.rb
130
+ - lib/spreedly/error.rb
131
+ - lib/spreedly/gateway.rb
132
+ - lib/spreedly/model.rb
133
+ - lib/spreedly/payment_methods/credit_card.rb
134
+ - lib/spreedly/payment_methods/payment_method.rb
135
+ - lib/spreedly/payment_methods/paypal.rb
136
+ - lib/spreedly/payment_methods/sprel.rb
137
+ - lib/spreedly/ssl_requester.rb
138
+ - lib/spreedly/transactions/add_payment_method.rb
139
+ - lib/spreedly/transactions/auth_purchase.rb
140
+ - lib/spreedly/transactions/authorization.rb
141
+ - lib/spreedly/transactions/capture.rb
142
+ - lib/spreedly/transactions/gateway_transaction.rb
143
+ - lib/spreedly/transactions/purchase.rb
144
+ - lib/spreedly/transactions/redact_payment_method.rb
145
+ - lib/spreedly/transactions/refund.rb
146
+ - lib/spreedly/transactions/retain_payment_method.rb
147
+ - lib/spreedly/transactions/transaction.rb
148
+ - lib/spreedly/transactions/void.rb
149
+ - lib/spreedly/urls.rb
150
+ - lib/spreedly/version.rb
151
+ - spreedly.gemspec
152
+ - test/credentials/credentials.yml
153
+ - test/credentials/test_credentials.rb
154
+ - test/helpers/assertions.rb
155
+ - test/helpers/communication_helper.rb
156
+ - test/helpers/creation_helper.rb
157
+ - test/helpers/stub_response.rb
158
+ - test/remote/remote_add_credit_card_test.rb
159
+ - test/remote/remote_add_gateway_test.rb
160
+ - test/remote/remote_authorize_test.rb
161
+ - test/remote/remote_capture_test.rb
162
+ - test/remote/remote_find_gateway_test.rb
163
+ - test/remote/remote_find_payment_method_test.rb
164
+ - test/remote/remote_find_transaction_test.rb
165
+ - test/remote/remote_list_transactions_test.rb
166
+ - test/remote/remote_purchase_test.rb
167
+ - test/remote/remote_redact_test.rb
168
+ - test/remote/remote_refund_test.rb
169
+ - test/remote/remote_retain_test.rb
170
+ - test/remote/remote_void_test.rb
171
+ - test/test_helper.rb
172
+ - test/unit/add_credit_card_test.rb
173
+ - test/unit/add_gateway_test.rb
174
+ - test/unit/authorize_test.rb
175
+ - test/unit/capture_test.rb
176
+ - test/unit/environment_test.rb
177
+ - test/unit/fields_test.rb
178
+ - test/unit/find_gateway_test.rb
179
+ - test/unit/find_payment_method_test.rb
180
+ - test/unit/find_transaction_test.rb
181
+ - test/unit/list_transactions_test.rb
182
+ - test/unit/purchase_test.rb
183
+ - test/unit/redact_payment_method_test.rb
184
+ - test/unit/refund_test.rb
185
+ - test/unit/response_stubs/add_credit_card_stubs.rb
186
+ - test/unit/response_stubs/add_gateway_stubs.rb
187
+ - test/unit/response_stubs/authorization_stubs.rb
188
+ - test/unit/response_stubs/capture_stubs.rb
189
+ - test/unit/response_stubs/find_gateway_stubs.rb
190
+ - test/unit/response_stubs/find_payment_method_stubs.rb
191
+ - test/unit/response_stubs/find_transaction_stubs.rb
192
+ - test/unit/response_stubs/list_transactions_stubs.rb
193
+ - test/unit/response_stubs/purchase_stubs.rb
194
+ - test/unit/response_stubs/redact_payment_method_stubs.rb
195
+ - test/unit/response_stubs/refund_stubs.rb
196
+ - test/unit/response_stubs/retain_payment_method_stubs.rb
197
+ - test/unit/response_stubs/void_stubs.rb
198
+ - test/unit/retain_payment_method_test.rb
199
+ - test/unit/timeout_test.rb
200
+ - test/unit/void_test.rb
71
201
  homepage: https://github.com/spreedly/spreedly-gem
72
202
  licenses:
73
203
  - MIT
74
- metadata: {}
75
204
  post_install_message:
76
205
  rdoc_options: []
77
206
  require_paths:
@@ -80,16 +209,73 @@ required_ruby_version: !ruby/object:Gem::Requirement
80
209
  requirements:
81
210
  - - ! '>='
82
211
  - !ruby/object:Gem::Version
212
+ segments:
213
+ - 0
214
+ hash: -2121263619143284647
83
215
  version: '0'
216
+ none: false
84
217
  required_rubygems_version: !ruby/object:Gem::Requirement
85
218
  requirements:
86
219
  - - ! '>='
87
220
  - !ruby/object:Gem::Version
88
- version: '1.8'
221
+ segments:
222
+ - 0
223
+ hash: -2121263619143284647
224
+ version: '0'
225
+ none: false
89
226
  requirements: []
90
227
  rubyforge_project:
91
- rubygems_version: 2.0.0
228
+ rubygems_version: 1.8.23
92
229
  signing_key:
93
- specification_version: 4
94
- summary: Provides a Ruby wrapper for the Spreedly Subscriptions API.
95
- test_files: []
230
+ specification_version: 3
231
+ summary: Provides a Ruby wrapper for the Spreedly API.
232
+ test_files:
233
+ - test/credentials/credentials.yml
234
+ - test/credentials/test_credentials.rb
235
+ - test/helpers/assertions.rb
236
+ - test/helpers/communication_helper.rb
237
+ - test/helpers/creation_helper.rb
238
+ - test/helpers/stub_response.rb
239
+ - test/remote/remote_add_credit_card_test.rb
240
+ - test/remote/remote_add_gateway_test.rb
241
+ - test/remote/remote_authorize_test.rb
242
+ - test/remote/remote_capture_test.rb
243
+ - test/remote/remote_find_gateway_test.rb
244
+ - test/remote/remote_find_payment_method_test.rb
245
+ - test/remote/remote_find_transaction_test.rb
246
+ - test/remote/remote_list_transactions_test.rb
247
+ - test/remote/remote_purchase_test.rb
248
+ - test/remote/remote_redact_test.rb
249
+ - test/remote/remote_refund_test.rb
250
+ - test/remote/remote_retain_test.rb
251
+ - test/remote/remote_void_test.rb
252
+ - test/test_helper.rb
253
+ - test/unit/add_credit_card_test.rb
254
+ - test/unit/add_gateway_test.rb
255
+ - test/unit/authorize_test.rb
256
+ - test/unit/capture_test.rb
257
+ - test/unit/environment_test.rb
258
+ - test/unit/fields_test.rb
259
+ - test/unit/find_gateway_test.rb
260
+ - test/unit/find_payment_method_test.rb
261
+ - test/unit/find_transaction_test.rb
262
+ - test/unit/list_transactions_test.rb
263
+ - test/unit/purchase_test.rb
264
+ - test/unit/redact_payment_method_test.rb
265
+ - test/unit/refund_test.rb
266
+ - test/unit/response_stubs/add_credit_card_stubs.rb
267
+ - test/unit/response_stubs/add_gateway_stubs.rb
268
+ - test/unit/response_stubs/authorization_stubs.rb
269
+ - test/unit/response_stubs/capture_stubs.rb
270
+ - test/unit/response_stubs/find_gateway_stubs.rb
271
+ - test/unit/response_stubs/find_payment_method_stubs.rb
272
+ - test/unit/response_stubs/find_transaction_stubs.rb
273
+ - test/unit/response_stubs/list_transactions_stubs.rb
274
+ - test/unit/response_stubs/purchase_stubs.rb
275
+ - test/unit/response_stubs/redact_payment_method_stubs.rb
276
+ - test/unit/response_stubs/refund_stubs.rb
277
+ - test/unit/response_stubs/retain_payment_method_stubs.rb
278
+ - test/unit/response_stubs/void_stubs.rb
279
+ - test/unit/retain_payment_method_test.rb
280
+ - test/unit/timeout_test.rb
281
+ - test/unit/void_test.rb