spreedly 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/HISTORY.md +11 -0
  2. data/README.md +2 -2
  3. data/lib/spreedly/common/fields.rb +0 -1
  4. data/lib/spreedly/connection.rb +2 -2
  5. data/lib/spreedly/environment.rb +34 -5
  6. data/lib/spreedly/gateway.rb +22 -0
  7. data/lib/spreedly/payment_methods/bank_account.rb +9 -0
  8. data/lib/spreedly/payment_methods/payment_method.rb +9 -0
  9. data/lib/spreedly/transactions/redact_gateway.rb +14 -0
  10. data/lib/spreedly/transactions/transaction.rb +2 -0
  11. data/lib/spreedly/urls.rb +22 -2
  12. data/lib/spreedly/version.rb +1 -1
  13. data/lib/spreedly.rb +2 -0
  14. data/test/remote/remote_add_gateway_test.rb +7 -1
  15. data/test/remote/remote_find_gateway_test.rb +4 -3
  16. data/test/remote/remote_list_gateways_test.rb +35 -0
  17. data/test/remote/remote_list_payment_methods_test.rb +34 -0
  18. data/test/remote/remote_list_transactions_test.rb +29 -1
  19. data/test/remote/remote_redact_gateway_test.rb +30 -0
  20. data/test/remote/{remote_redact_test.rb → remote_redact_payment_method_test.rb} +1 -1
  21. data/test/remote/remote_update_credit_card_test.rb +54 -0
  22. data/test/unit/add_gateway_test.rb +17 -7
  23. data/test/unit/find_gateway_test.rb +5 -4
  24. data/test/unit/find_payment_method_test.rb +23 -0
  25. data/test/unit/list_gateways_test.rb +47 -0
  26. data/test/unit/list_payment_methods_test.rb +47 -0
  27. data/test/unit/list_transactions_test.rb +17 -5
  28. data/test/unit/redact_gateway_test.rb +42 -0
  29. data/test/unit/redact_payment_method_test.rb +3 -3
  30. data/test/unit/response_stubs/find_gateway_stubs.rb +30 -20
  31. data/test/unit/response_stubs/find_payment_method_stubs.rb +26 -0
  32. data/test/unit/response_stubs/list_gateways_stubs.rb +75 -0
  33. data/test/unit/response_stubs/list_payment_methods_stubs.rb +63 -0
  34. data/test/unit/response_stubs/redact_gateway_stubs.rb +47 -0
  35. data/test/unit/response_stubs/redact_payment_method_stubs.rb +1 -6
  36. data/test/unit/response_stubs/update_credit_card_stubs.rb +34 -0
  37. data/test/unit/update_credit_card_test.rb +59 -0
  38. metadata +32 -6
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: spreedly
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.0.0
5
+ version: 2.0.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Spreedly
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-07 00:00:00.000000000 Z
12
+ date: 2013-08-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  prerelease: false
@@ -130,6 +130,7 @@ files:
130
130
  - lib/spreedly/error.rb
131
131
  - lib/spreedly/gateway.rb
132
132
  - lib/spreedly/model.rb
133
+ - lib/spreedly/payment_methods/bank_account.rb
133
134
  - lib/spreedly/payment_methods/credit_card.rb
134
135
  - lib/spreedly/payment_methods/payment_method.rb
135
136
  - lib/spreedly/payment_methods/paypal.rb
@@ -141,6 +142,7 @@ files:
141
142
  - lib/spreedly/transactions/capture.rb
142
143
  - lib/spreedly/transactions/gateway_transaction.rb
143
144
  - lib/spreedly/transactions/purchase.rb
145
+ - lib/spreedly/transactions/redact_gateway.rb
144
146
  - lib/spreedly/transactions/redact_payment_method.rb
145
147
  - lib/spreedly/transactions/refund.rb
146
148
  - lib/spreedly/transactions/retain_payment_method.rb
@@ -162,11 +164,15 @@ files:
162
164
  - test/remote/remote_find_gateway_test.rb
163
165
  - test/remote/remote_find_payment_method_test.rb
164
166
  - test/remote/remote_find_transaction_test.rb
167
+ - test/remote/remote_list_gateways_test.rb
168
+ - test/remote/remote_list_payment_methods_test.rb
165
169
  - test/remote/remote_list_transactions_test.rb
166
170
  - test/remote/remote_purchase_test.rb
167
- - test/remote/remote_redact_test.rb
171
+ - test/remote/remote_redact_gateway_test.rb
172
+ - test/remote/remote_redact_payment_method_test.rb
168
173
  - test/remote/remote_refund_test.rb
169
174
  - test/remote/remote_retain_test.rb
175
+ - test/remote/remote_update_credit_card_test.rb
170
176
  - test/remote/remote_void_test.rb
171
177
  - test/test_helper.rb
172
178
  - test/unit/add_credit_card_test.rb
@@ -178,8 +184,11 @@ files:
178
184
  - test/unit/find_gateway_test.rb
179
185
  - test/unit/find_payment_method_test.rb
180
186
  - test/unit/find_transaction_test.rb
187
+ - test/unit/list_gateways_test.rb
188
+ - test/unit/list_payment_methods_test.rb
181
189
  - test/unit/list_transactions_test.rb
182
190
  - test/unit/purchase_test.rb
191
+ - test/unit/redact_gateway_test.rb
183
192
  - test/unit/redact_payment_method_test.rb
184
193
  - test/unit/refund_test.rb
185
194
  - test/unit/response_stubs/add_credit_card_stubs.rb
@@ -189,14 +198,19 @@ files:
189
198
  - test/unit/response_stubs/find_gateway_stubs.rb
190
199
  - test/unit/response_stubs/find_payment_method_stubs.rb
191
200
  - test/unit/response_stubs/find_transaction_stubs.rb
201
+ - test/unit/response_stubs/list_gateways_stubs.rb
202
+ - test/unit/response_stubs/list_payment_methods_stubs.rb
192
203
  - test/unit/response_stubs/list_transactions_stubs.rb
193
204
  - test/unit/response_stubs/purchase_stubs.rb
205
+ - test/unit/response_stubs/redact_gateway_stubs.rb
194
206
  - test/unit/response_stubs/redact_payment_method_stubs.rb
195
207
  - test/unit/response_stubs/refund_stubs.rb
196
208
  - test/unit/response_stubs/retain_payment_method_stubs.rb
209
+ - test/unit/response_stubs/update_credit_card_stubs.rb
197
210
  - test/unit/response_stubs/void_stubs.rb
198
211
  - test/unit/retain_payment_method_test.rb
199
212
  - test/unit/timeout_test.rb
213
+ - test/unit/update_credit_card_test.rb
200
214
  - test/unit/void_test.rb
201
215
  homepage: https://github.com/spreedly/spreedly-gem
202
216
  licenses:
@@ -211,7 +225,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
211
225
  - !ruby/object:Gem::Version
212
226
  segments:
213
227
  - 0
214
- hash: -2121263619143284647
228
+ hash: 2278846472039598155
215
229
  version: '0'
216
230
  none: false
217
231
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -220,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
234
  - !ruby/object:Gem::Version
221
235
  segments:
222
236
  - 0
223
- hash: -2121263619143284647
237
+ hash: 2278846472039598155
224
238
  version: '0'
225
239
  none: false
226
240
  requirements: []
@@ -243,11 +257,15 @@ test_files:
243
257
  - test/remote/remote_find_gateway_test.rb
244
258
  - test/remote/remote_find_payment_method_test.rb
245
259
  - test/remote/remote_find_transaction_test.rb
260
+ - test/remote/remote_list_gateways_test.rb
261
+ - test/remote/remote_list_payment_methods_test.rb
246
262
  - test/remote/remote_list_transactions_test.rb
247
263
  - test/remote/remote_purchase_test.rb
248
- - test/remote/remote_redact_test.rb
264
+ - test/remote/remote_redact_gateway_test.rb
265
+ - test/remote/remote_redact_payment_method_test.rb
249
266
  - test/remote/remote_refund_test.rb
250
267
  - test/remote/remote_retain_test.rb
268
+ - test/remote/remote_update_credit_card_test.rb
251
269
  - test/remote/remote_void_test.rb
252
270
  - test/test_helper.rb
253
271
  - test/unit/add_credit_card_test.rb
@@ -259,8 +277,11 @@ test_files:
259
277
  - test/unit/find_gateway_test.rb
260
278
  - test/unit/find_payment_method_test.rb
261
279
  - test/unit/find_transaction_test.rb
280
+ - test/unit/list_gateways_test.rb
281
+ - test/unit/list_payment_methods_test.rb
262
282
  - test/unit/list_transactions_test.rb
263
283
  - test/unit/purchase_test.rb
284
+ - test/unit/redact_gateway_test.rb
264
285
  - test/unit/redact_payment_method_test.rb
265
286
  - test/unit/refund_test.rb
266
287
  - test/unit/response_stubs/add_credit_card_stubs.rb
@@ -270,12 +291,17 @@ test_files:
270
291
  - test/unit/response_stubs/find_gateway_stubs.rb
271
292
  - test/unit/response_stubs/find_payment_method_stubs.rb
272
293
  - test/unit/response_stubs/find_transaction_stubs.rb
294
+ - test/unit/response_stubs/list_gateways_stubs.rb
295
+ - test/unit/response_stubs/list_payment_methods_stubs.rb
273
296
  - test/unit/response_stubs/list_transactions_stubs.rb
274
297
  - test/unit/response_stubs/purchase_stubs.rb
298
+ - test/unit/response_stubs/redact_gateway_stubs.rb
275
299
  - test/unit/response_stubs/redact_payment_method_stubs.rb
276
300
  - test/unit/response_stubs/refund_stubs.rb
277
301
  - test/unit/response_stubs/retain_payment_method_stubs.rb
302
+ - test/unit/response_stubs/update_credit_card_stubs.rb
278
303
  - test/unit/response_stubs/void_stubs.rb
279
304
  - test/unit/retain_payment_method_test.rb
280
305
  - test/unit/timeout_test.rb
306
+ - test/unit/update_credit_card_test.rb
281
307
  - test/unit/void_test.rb