adaptive_pay 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/README +1 -1
- data/VERSION +1 -1
- data/adaptive_pay.gemspec +87 -0
- data/lib/adaptive_pay/interface.rb +6 -3
- metadata +4 -2
data/.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pkg
|
data/README
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.1
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# Generated by jeweler
|
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
|
4
|
+
# -*- encoding: utf-8 -*-
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |s|
|
|
7
|
+
s.name = %q{adaptive_pay}
|
|
8
|
+
s.version = "0.1.1"
|
|
9
|
+
|
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
|
+
s.authors = ["Frederik Fix"]
|
|
12
|
+
s.date = %q{2009-11-23}
|
|
13
|
+
s.description = %q{Wrapper around the Paypal Adaptive Payments API}
|
|
14
|
+
s.email = %q{ich@derfred.com}
|
|
15
|
+
s.extra_rdoc_files = [
|
|
16
|
+
"README"
|
|
17
|
+
]
|
|
18
|
+
s.files = [
|
|
19
|
+
".gitignore",
|
|
20
|
+
"MIT-LICENSE",
|
|
21
|
+
"README",
|
|
22
|
+
"Rakefile",
|
|
23
|
+
"VERSION",
|
|
24
|
+
"adaptive_pay.gemspec",
|
|
25
|
+
"config/adaptive_pay.yml",
|
|
26
|
+
"init.rb",
|
|
27
|
+
"install.rb",
|
|
28
|
+
"lib/adaptive_pay.rb",
|
|
29
|
+
"lib/adaptive_pay/abstract_payment_request.rb",
|
|
30
|
+
"lib/adaptive_pay/callback.rb",
|
|
31
|
+
"lib/adaptive_pay/cancel_preapproval_request.rb",
|
|
32
|
+
"lib/adaptive_pay/interface.rb",
|
|
33
|
+
"lib/adaptive_pay/payment_request.rb",
|
|
34
|
+
"lib/adaptive_pay/preapproval_request.rb",
|
|
35
|
+
"lib/adaptive_pay/recipient.rb",
|
|
36
|
+
"lib/adaptive_pay/refund_request.rb",
|
|
37
|
+
"lib/adaptive_pay/request.rb",
|
|
38
|
+
"lib/adaptive_pay/response.rb",
|
|
39
|
+
"lib/adaptive_pay/sender.rb",
|
|
40
|
+
"spec/adaptive_pay/abstract_payment_request_spec.rb",
|
|
41
|
+
"spec/adaptive_pay/callback_spec.rb",
|
|
42
|
+
"spec/adaptive_pay/cancel_preapproval_request_spec.rb",
|
|
43
|
+
"spec/adaptive_pay/interface_spec.rb",
|
|
44
|
+
"spec/adaptive_pay/payment_request_spec.rb",
|
|
45
|
+
"spec/adaptive_pay/preapproval_request_spec.rb",
|
|
46
|
+
"spec/adaptive_pay/recipient_spec.rb",
|
|
47
|
+
"spec/adaptive_pay/refund_request_spec.rb",
|
|
48
|
+
"spec/adaptive_pay/request_spec.rb",
|
|
49
|
+
"spec/adaptive_pay/response_spec.rb",
|
|
50
|
+
"spec/adaptive_pay/sender_spec.rb",
|
|
51
|
+
"spec/fixtures/config/adaptive_pay.yml",
|
|
52
|
+
"spec/rails_mocks.rb",
|
|
53
|
+
"spec/spec_helper.rb",
|
|
54
|
+
"uninstall.rb"
|
|
55
|
+
]
|
|
56
|
+
s.homepage = %q{http://github.com/derfred/adaptive_pay}
|
|
57
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
|
58
|
+
s.require_paths = ["lib"]
|
|
59
|
+
s.rubygems_version = %q{1.3.5}
|
|
60
|
+
s.summary = %q{Wrapper around the Paypal Adaptive Payments API}
|
|
61
|
+
s.test_files = [
|
|
62
|
+
"spec/adaptive_pay/abstract_payment_request_spec.rb",
|
|
63
|
+
"spec/adaptive_pay/callback_spec.rb",
|
|
64
|
+
"spec/adaptive_pay/cancel_preapproval_request_spec.rb",
|
|
65
|
+
"spec/adaptive_pay/interface_spec.rb",
|
|
66
|
+
"spec/adaptive_pay/payment_request_spec.rb",
|
|
67
|
+
"spec/adaptive_pay/preapproval_request_spec.rb",
|
|
68
|
+
"spec/adaptive_pay/recipient_spec.rb",
|
|
69
|
+
"spec/adaptive_pay/refund_request_spec.rb",
|
|
70
|
+
"spec/adaptive_pay/request_spec.rb",
|
|
71
|
+
"spec/adaptive_pay/response_spec.rb",
|
|
72
|
+
"spec/adaptive_pay/sender_spec.rb",
|
|
73
|
+
"spec/rails_mocks.rb",
|
|
74
|
+
"spec/spec_helper.rb"
|
|
75
|
+
]
|
|
76
|
+
|
|
77
|
+
if s.respond_to? :specification_version then
|
|
78
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
79
|
+
s.specification_version = 3
|
|
80
|
+
|
|
81
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
|
82
|
+
else
|
|
83
|
+
end
|
|
84
|
+
else
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
@@ -63,17 +63,20 @@ module AdaptivePay
|
|
|
63
63
|
|
|
64
64
|
# send a preapproved payment request to paypal
|
|
65
65
|
def request_preapproval(&block)
|
|
66
|
-
request =
|
|
66
|
+
request = PreapprovalRequest.new
|
|
67
|
+
yield request
|
|
67
68
|
perform request
|
|
68
69
|
end
|
|
69
70
|
|
|
70
71
|
def request_payment(&block)
|
|
71
|
-
request =
|
|
72
|
+
request = PaymentRequest.new
|
|
73
|
+
yield request
|
|
72
74
|
perform request
|
|
73
75
|
end
|
|
74
76
|
|
|
75
77
|
def request_refund(&block)
|
|
76
|
-
request =
|
|
78
|
+
request = RefundRequest.new
|
|
79
|
+
yield request
|
|
77
80
|
perform request
|
|
78
81
|
end
|
|
79
82
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: adaptive_pay
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Frederik Fix
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-11-
|
|
12
|
+
date: 2009-11-23 00:00:00 +01:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|
|
@@ -22,10 +22,12 @@ extensions: []
|
|
|
22
22
|
extra_rdoc_files:
|
|
23
23
|
- README
|
|
24
24
|
files:
|
|
25
|
+
- .gitignore
|
|
25
26
|
- MIT-LICENSE
|
|
26
27
|
- README
|
|
27
28
|
- Rakefile
|
|
28
29
|
- VERSION
|
|
30
|
+
- adaptive_pay.gemspec
|
|
29
31
|
- config/adaptive_pay.yml
|
|
30
32
|
- init.rb
|
|
31
33
|
- install.rb
|