poundpay 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. data/.gitmodules +3 -0
  2. data/README.rdoc +75 -0
  3. data/examples/{simple_application → marketplace}/.gems +0 -0
  4. data/examples/{simple_application → marketplace}/.rvmrc +0 -0
  5. data/examples/{simple_application → marketplace}/README +0 -0
  6. data/examples/{simple_application → marketplace}/application.rb +51 -36
  7. data/examples/{simple_application → marketplace}/config.rb +2 -2
  8. data/examples/{simple_application → marketplace}/config.ru +1 -1
  9. data/examples/{simple_application → marketplace}/index.html.erb +0 -0
  10. data/lib/poundpay/elements.rb +6 -0
  11. data/lib/poundpay/resource.rb +17 -5
  12. data/lib/poundpay/version.rb +1 -1
  13. data/spec/poundpay/resource_spec.rb +10 -0
  14. metadata +50 -90
  15. data/examples/simple_application/static/css/simplemp.css +0 -13
  16. data/examples/simple_application/static/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  17. data/examples/simple_application/static/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  18. data/examples/simple_application/static/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
  19. data/examples/simple_application/static/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  20. data/examples/simple_application/static/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  21. data/examples/simple_application/static/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  22. data/examples/simple_application/static/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  23. data/examples/simple_application/static/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  24. data/examples/simple_application/static/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  25. data/examples/simple_application/static/css/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  26. data/examples/simple_application/static/css/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
  27. data/examples/simple_application/static/css/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
  28. data/examples/simple_application/static/css/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
  29. data/examples/simple_application/static/css/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
  30. data/examples/simple_application/static/css/ui-lightness/jquery-ui-1.8.13.custom.css +0 -578
  31. data/examples/simple_application/static/favicon.ico +0 -0
  32. data/examples/simple_application/static/js/jquery-1.6.1.js +0 -8936
  33. data/examples/simple_application/static/js/jquery-ui-1.8.13.custom.min.js +0 -784
  34. data/examples/simple_application/static/js/simplemp.js +0 -177
@@ -0,0 +1,3 @@
1
+ [submodule "examples/marketplace/fe"]
2
+ path = examples/marketplace/fe
3
+ url = git@github.com:PoundPay/simplefe.git
@@ -89,6 +89,7 @@ Poundpay is a payments platform for marketplaces
89
89
  payment.escrow # AUTHORIZED -> ESCROWED. Credit card is charged
90
90
  payment.release # ESCROWED or PARTIALLY_RELEASED -> RELEASED. Recipient receives money
91
91
  payment.cancel # ESCROWED or PARTIALLY_RELEASED -> CANCELED. Payer receives refund
92
+ Poundpay::Payment.batch_update # Batch update a list of payments.
92
93
 
93
94
 
94
95
  == Creating a charge permission
@@ -130,3 +131,77 @@ Poundpay is a payments platform for marketplaces
130
131
 
131
132
  charge_permission = Poundpay::ChargePermission.find(charge_permission_sid)
132
133
  charge_permission.deactivate # CREATED or ACTIVE -> INACTIVE. Charge permission is deactivated and can no longer be used to authorize payments for the associated payer.
134
+
135
+
136
+ == Batching
137
+
138
+ In some cases you may wish to batch authorize and escrow a collection of
139
+ payments. By doing so there will be only *one* payer charge for that collection
140
+ of payments. Note that if you do batch authorize a collection of payments that
141
+ it must *also* be batch escrowed.
142
+
143
+ Batching is designed for shopping carts where you want a collection of payments
144
+ to appear to appear as a single charge.
145
+
146
+ In order to use batching you simply need to pass `sids` for *all* payments in
147
+ the collection you want to batch to the IFrame
148
+
149
+ <script src="https://www.poundpay.com/js/poundpay.js"></script>
150
+
151
+ <div id="pound-root"></div>
152
+
153
+ <script>
154
+ function handlePaymentSuccess() {
155
+ // do something
156
+ }
157
+
158
+ function handlePaymentError() {
159
+ // handle error
160
+ }
161
+
162
+ PoundPay.init({
163
+ payment_sid: [
164
+ "<%= @payment1.sid %>"
165
+ "<%= @payment2.sid %>",
166
+ "<%= @payment3.sid %>"
167
+ ],
168
+ success: handlePaymentSuccess,
169
+ error: handlePaymentError,
170
+ first_name: "Fred", // Optional
171
+ last_name: "Nietzsche", // Optional
172
+ address_street: "990 Guerrero St", // Optional
173
+ address_city: "San Francisco", // Optional
174
+ address_state: "California", // Optional
175
+ address_zip: "94110", // Optional
176
+ server: "https://www-sandbox.poundpay.com" // Exclude for production
177
+ });
178
+ </script>
179
+
180
+ Alternatively if you are directly authorizing the payments using a charge
181
+ permission
182
+
183
+ Poundpay::Payment.batch_update(
184
+ :sid => [payment1.sid, payment2.sid, payment3.sid],
185
+ :status => 'AUTHORIZED')
186
+
187
+ Finally you'll need to batch escrow the payments
188
+
189
+ Poundpay::Payment.batch_update(
190
+ :sid => [payment1.sid, payment2.sid, payment3.sid],
191
+ :status => 'ESCROWED')
192
+
193
+ Notice that if you did the following instead an error would be triggered since
194
+ batched payments *must* be authorized and escrowed collectively
195
+
196
+ payment = Poundpay::Payment.find(payment1_sid)
197
+ payment.escrow # fails
198
+
199
+ However if you cancel some of the payments prior to batch escrow you should
200
+ exclude them from the batch call
201
+
202
+ payment1 = Poundpay::Payment.find(payment1_sid)
203
+ payment1.cancel # ok
204
+
205
+ Poundpay::Payment.batch_update(
206
+ :sid => [payment2.sid, payment3.sid],
207
+ :status => 'ESCROWED')
@@ -3,6 +3,7 @@ require 'poundpay'
3
3
 
4
4
  require './config'
5
5
 
6
+
6
7
  class SimpleController
7
8
  attr_reader :poundpay_client
8
9
 
@@ -45,17 +46,17 @@ class Payment < SimpleController
45
46
 
46
47
  def call env
47
48
  request = Rack::Request.new(env)
48
- return_value = case request.path.gsub(/\/$/, '') # trim trailing /
49
- when '/payment' then request.post? ? create(request) : nil
50
- when '/payment/release' then request.post? ? release(request) : nil
51
- when '/payment/authorize' then request.post? ? authorize(request) : nil
52
- when '/payment/cancel' then request.post? ? cancel(request) : nil
53
- when '/payment/escrow' then request.post? ? escrow(request) : nil
49
+ return_value, mime_type = case request.path.gsub(/\/$/, '') # trim trailing /
50
+ when '/payment' then request.post? ? create(request) : [nil, nil]
51
+ when '/payment/release' then request.post? ? release(request) : [nil, nil]
52
+ when '/payment/authorize' then request.post? ? authorize(request) : [nil, nil]
53
+ when '/payment/cancel' then request.post? ? cancel(request) : [nil, nil]
54
+ when '/payment/escrow' then request.post? ? escrow(request) : [nil, nil]
54
55
  else nil
55
56
  end
56
57
 
57
58
  if return_value
58
- response = Rack::Response.new([return_value], 201, {"Content-Type" => "text/html"})
59
+ response = Rack::Response.new([return_value], 201, {"Content-Type" => mime_type})
59
60
  response.finish
60
61
  else
61
62
  return_404
@@ -64,35 +65,48 @@ class Payment < SimpleController
64
65
 
65
66
  def create request
66
67
  payment = Poundpay::Payment.create(request.POST)
67
- payment.sid
68
+ payment.include_root_in_json = false
69
+ return payment.to_json(), "application/json"
68
70
  end
69
71
 
70
72
  def authorize request
71
- payment = Poundpay::Payment.find(request.POST['sid'])
72
- payment.authorize
73
- payment.save
74
- PP.pp(payment.schema, '')
73
+ if request.POST['sid'].kind_of?(Array)
74
+ payments = Poundpay::Payment.batch_update(:sid => request.POST['sid'], :status => 'authorized')
75
+ payments = payments.collect! {|p| p.schema }
76
+ return PP.pp(payments, ''), "text/html"
77
+ else
78
+ payment = Poundpay::Payment.find(request.POST['sid'])
79
+ payment.authorize
80
+ payment.save
81
+ return PP.pp(payment.schema, ''), "text/html"
82
+ end
75
83
  end
76
84
 
77
85
  def release request
78
86
  payment = Poundpay::Payment.find(request.POST['sid'])
79
87
  payment.release
80
88
  payment.save
81
- PP.pp(payment.schema, '')
89
+ return PP.pp(payment.schema, ''), "text/html"
82
90
  end
83
91
 
84
92
  def cancel request
85
93
  payment = Poundpay::Payment.find(request.POST['sid'])
86
94
  payment.cancel
87
95
  payment.save
88
- PP.pp(payment.schema, '')
96
+ return PP.pp(payment.schema, ''), "text/html"
89
97
  end
90
98
 
91
99
  def escrow request
92
- payment = Poundpay::Payment.find(request.POST['sid'])
93
- payment.escrow
94
- payment.save
95
- PP.pp(payment.schema, '')
100
+ if request.POST['sid'].kind_of?(Array)
101
+ payments = Poundpay::Payment.batch_update(:sid => request.POST['sid'], :status => 'escrowed')
102
+ payments = payments.collect! {|p| p.schema }
103
+ return PP.pp(payments, ''), "text/html"
104
+ else
105
+ payment = Poundpay::Payment.find(request.POST['sid'])
106
+ payment.escrow
107
+ payment.save
108
+ return PP.pp(payment.schema, ''), "text/html"
109
+ end
96
110
  end
97
111
 
98
112
  end
@@ -102,13 +116,13 @@ class User < SimpleController
102
116
 
103
117
  def call env
104
118
  request = Rack::Request.new(env)
105
- return_value = case request.path.gsub(/\/$/, '') # trim trailing /
106
- when '/user' then request.post? ? create(request) : nil
107
- else nil
108
- end
119
+ return_value, mime_type = case request.path.gsub(/\/$/, '') # trim trailing /
120
+ when '/user' then request.post? ? create(request) : [nil, nil]
121
+ else [nil, nil]
122
+ end
109
123
 
110
124
  if return_value
111
- response = Rack::Response.new([return_value], 201, {"Content-Type" => "text/html"})
125
+ response = Rack::Response.new([return_value], 201, {"Content-Type" => mime_type})
112
126
  response.finish
113
127
  else
114
128
  return_404
@@ -121,7 +135,7 @@ class User < SimpleController
121
135
  :last_name => request.POST['user_last_name'],
122
136
  :email_address => request.POST['user_email_address']
123
137
  })
124
- PP.pp(user.schema, '')
138
+ return PP.pp(user.schema, ''), "text/html"
125
139
  end
126
140
 
127
141
  end
@@ -131,15 +145,15 @@ class ChargePermission < SimpleController
131
145
 
132
146
  def call env
133
147
  request = Rack::Request.new(env)
134
- return_value = case request.path.gsub(/\/$/, '') # trim trailing /
135
- when '/charge_permission' then request.post? ? create(request) : nil
136
- when '/charge_permission/find' then request.post? ? show(request) : nil
137
- when '/charge_permission/deactivate' then request.post? ? deactivate(request) : nil
138
- else nil
139
- end
148
+ return_value, mime_type = case request.path.gsub(/\/$/, '') # trim trailing /
149
+ when '/charge_permission' then request.post? ? create(request) : [nil, nil]
150
+ when '/charge_permission/find' then request.post? ? show(request) : [nil, nil]
151
+ when '/charge_permission/deactivate' then request.post? ? deactivate(request) : [nil, nil]
152
+ else [nil, nil]
153
+ end
140
154
 
141
155
  if return_value
142
- response = Rack::Response.new([return_value], 201, {"Content-Type" => "text/html"})
156
+ response = Rack::Response.new([return_value], 201, {"Content-Type" => mime_type})
143
157
  response.finish
144
158
  else
145
159
  return_404
@@ -148,22 +162,23 @@ class ChargePermission < SimpleController
148
162
 
149
163
  def create request
150
164
  charge_permission = Poundpay::ChargePermission.create(request.POST)
151
- PP.pp(charge_permission.schema, '')
165
+ charge_permission.include_root_in_json = false
166
+ return charge_permission.to_json(), "application/json"
152
167
  end
153
168
 
154
169
  def show request
155
- charge_permissions = Poundpay::ChargePermission.all(:email_address => request.POST['email_address'])
170
+ charge_permissions = Poundpay::ChargePermission.find(:all, :params => { :email_address => request.POST['email_address'] })
156
171
  if charge_permissions
157
- PP.pp(charge_permissions.map {|cp| cp.schema}, '')
172
+ return PP.pp(charge_permissions.map {|cp| cp.schema}, ''), 'text/plain'
158
173
  else
159
- nil
174
+ return [nil, nil]
160
175
  end
161
176
  end
162
177
 
163
178
  def deactivate request
164
179
  charge_permission = Poundpay::ChargePermission.find(request.POST['sid'])
165
180
  charge_permission.deactivate
166
- PP.pp(charge_permission.schema, '')
181
+ return PP.pp(charge_permission.schema, ''), 'text/plain'
167
182
  end
168
183
 
169
184
  end
@@ -4,8 +4,8 @@ class SimpleApplication
4
4
  "api_url" => "https://api-sandbox.poundpay.com",
5
5
  "www_url" => "https://www-sandbox.poundpay.com",
6
6
  "version" => "silver",
7
- "developer_sid" => "DV2f8a5168710c11e0aab3123140005921",
8
- "auth_token" => "f309a5f600a630f7293c64783eaebc8b67a34428cfcd96e82599657a12769924",
7
+ "developer_sid" => "DVxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
8
+ "auth_token" => "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
9
9
  "callback_url" => '',
10
10
  },
11
11
  default_payment: {
@@ -6,7 +6,7 @@ require 'rack/urlmap'
6
6
 
7
7
  use Rack::ShowExceptions
8
8
  use Rack::Lint
9
- use Rack::Static, :urls => ["/static"]
9
+ use Rack::Static, :urls => ["/static"], :root => "fe"
10
10
 
11
11
  require './application'
12
12
 
@@ -71,6 +71,12 @@ module Poundpay
71
71
 
72
72
  class Payment < Resource
73
73
 
74
+ def self.batch_update(params)
75
+ body = self.put('', {}, self.urlencode(params)).body
76
+ collection = self.format.decode(body)
77
+ return self.instantiate_collection(collection)
78
+ end
79
+
74
80
  def authorize
75
81
  unless status == 'STAGED'
76
82
  raise PaymentAuthorizeException.new "Payment status is #{status}. Only STAGED payments may be AUTHORIZED."
@@ -27,6 +27,12 @@ module Poundpay
27
27
  remove_extension(path)
28
28
  end
29
29
 
30
+ # Modified default to not use an extension
31
+ def custom_method_collection_url(method_name, options = {})
32
+ path = super(method_name, options)
33
+ remove_extension(path)
34
+ end
35
+
30
36
  # Handle paginated collections
31
37
  def instantiate_collection(collection, prefix_options = {})
32
38
  # TODO: Consume pages
@@ -36,14 +42,14 @@ module Poundpay
36
42
 
37
43
  protected
38
44
  def remove_extension(path)
39
- path.sub /(\.#{format.extension})$/, ""
45
+ path.sub /(\.#{format.extension})/, ""
40
46
  end
41
47
  end
42
48
 
43
49
  # Poundpay accepts urlencoded form parameters
44
50
  # Ideally we should override this functionality in the format, but it's not very straightforward to do so
45
51
  def encode
46
- urlencode(@attributes)
52
+ Resource.urlencode(@attributes)
47
53
  end
48
54
 
49
55
  def collection_name
@@ -51,8 +57,14 @@ module Poundpay
51
57
  end
52
58
 
53
59
  protected
54
- def urlencode(params)
55
- params.to_a.collect! { |k, v| "#{k}=#{CGI.escape(v.to_s)}" }.join("&")
56
- end
60
+ def self.urlencode(params)
61
+ params.to_a.collect! { |k, v|
62
+ if v.kind_of?(Array)
63
+ v.collect! { |x| "#{k}=#{CGI.escape(x.to_s)}"}.join("&")
64
+ else
65
+ "#{k}=#{CGI.escape(v.to_s)}"
66
+ end
67
+ }.join("&")
68
+ end
57
69
  end
58
70
  end
@@ -1,3 +1,3 @@
1
1
  module Poundpay
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
@@ -29,6 +29,12 @@ describe Resource do
29
29
  FakeElement.collection_path.should == "/version/fake_elements"
30
30
  end
31
31
  end
32
+
33
+ describe "#self.custom_method_collection_url" do
34
+ it "should not add a extension to the custom_method_collection_url" do
35
+ FakeElement.custom_method_collection_url("").should == "/version/fake_elements/"
36
+ end
37
+ end
32
38
 
33
39
  describe "#self.instantiate_collection" do
34
40
  it "should handle paginated responses" do
@@ -43,6 +49,10 @@ describe Resource do
43
49
  fake_element = FakeElement.new(:foo => "bar baz")
44
50
  fake_element.encode.should == "foo=bar+baz"
45
51
  end
52
+ it "should urlencode the attributes wuihtout brackets" do
53
+ fake_element = FakeElement.new(:foo => ["bar", "baz"])
54
+ fake_element.encode.should == "foo=bar&foo=baz"
55
+ end
46
56
  end
47
57
 
48
58
  describe "#collection_name" do
metadata CHANGED
@@ -1,94 +1,70 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: poundpay
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.2
4
5
  prerelease:
5
- version: 0.3.1
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Matin Tamizi
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-11-20 00:00:00 -08:00
14
- default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
12
+ date: 2011-12-14 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
17
15
  name: activeresource
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &24260120 !ruby/object:Gem::Requirement
20
17
  none: false
21
- requirements:
18
+ requirements:
22
19
  - - ~>
23
- - !ruby/object:Gem::Version
20
+ - !ruby/object:Gem::Version
24
21
  version: 3.0.0
25
22
  type: :runtime
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: rspec
29
23
  prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *24260120
25
+ - !ruby/object:Gem::Dependency
26
+ name: rspec
27
+ requirement: &24259460 !ruby/object:Gem::Requirement
31
28
  none: false
32
- requirements:
33
- - - ">="
34
- - !ruby/object:Gem::Version
35
- version: "2.0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '2.0'
36
33
  type: :development
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
39
- name: wirble
40
34
  prerelease: false
41
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *24259460
36
+ - !ruby/object:Gem::Dependency
37
+ name: wirble
38
+ requirement: &24259020 !ruby/object:Gem::Requirement
42
39
  none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
47
44
  type: :development
48
- version_requirements: *id003
45
+ prerelease: false
46
+ version_requirements: *24259020
49
47
  description: Payments platform for marketplaces
50
48
  email: devsupport@poundpay.com
51
49
  executables: []
52
-
53
50
  extensions: []
54
-
55
51
  extra_rdoc_files: []
56
-
57
- files:
52
+ files:
58
53
  - .autotest
59
54
  - .gitignore
55
+ - .gitmodules
60
56
  - .rspec
61
57
  - .rvmrc
62
58
  - Gemfile
63
59
  - README.rdoc
64
60
  - Rakefile
65
- - examples/simple_application/.gems
66
- - examples/simple_application/.rvmrc
67
- - examples/simple_application/README
68
- - examples/simple_application/application.rb
69
- - examples/simple_application/config.rb
70
- - examples/simple_application/config.ru
71
- - examples/simple_application/index.html.erb
72
- - examples/simple_application/static/css/simplemp.css
73
- - examples/simple_application/static/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png
74
- - examples/simple_application/static/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png
75
- - examples/simple_application/static/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png
76
- - examples/simple_application/static/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png
77
- - examples/simple_application/static/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png
78
- - examples/simple_application/static/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png
79
- - examples/simple_application/static/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png
80
- - examples/simple_application/static/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png
81
- - examples/simple_application/static/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png
82
- - examples/simple_application/static/css/ui-lightness/images/ui-icons_222222_256x240.png
83
- - examples/simple_application/static/css/ui-lightness/images/ui-icons_228ef1_256x240.png
84
- - examples/simple_application/static/css/ui-lightness/images/ui-icons_ef8c08_256x240.png
85
- - examples/simple_application/static/css/ui-lightness/images/ui-icons_ffd27a_256x240.png
86
- - examples/simple_application/static/css/ui-lightness/images/ui-icons_ffffff_256x240.png
87
- - examples/simple_application/static/css/ui-lightness/jquery-ui-1.8.13.custom.css
88
- - examples/simple_application/static/favicon.ico
89
- - examples/simple_application/static/js/jquery-1.6.1.js
90
- - examples/simple_application/static/js/jquery-ui-1.8.13.custom.min.js
91
- - examples/simple_application/static/js/simplemp.js
61
+ - examples/marketplace/.gems
62
+ - examples/marketplace/.rvmrc
63
+ - examples/marketplace/README
64
+ - examples/marketplace/application.rb
65
+ - examples/marketplace/config.rb
66
+ - examples/marketplace/config.ru
67
+ - examples/marketplace/index.html.erb
92
68
  - lib/poundpay.rb
93
69
  - lib/poundpay/callback.rb
94
70
  - lib/poundpay/elements.rb
@@ -110,44 +86,28 @@ files:
110
86
  - spec/poundpay/rails_spec.rb
111
87
  - spec/poundpay/resource_spec.rb
112
88
  - spec/poundpay_spec.rb
113
- has_rdoc: true
114
89
  homepage: http://github.com/poundpay/poundpay-ruby
115
90
  licenses: []
116
-
117
91
  post_install_message:
118
92
  rdoc_options: []
119
-
120
- require_paths:
93
+ require_paths:
121
94
  - lib
122
- required_ruby_version: !ruby/object:Gem::Requirement
95
+ required_ruby_version: !ruby/object:Gem::Requirement
123
96
  none: false
124
- requirements:
125
- - - ">="
126
- - !ruby/object:Gem::Version
127
- version: "0"
128
- required_rubygems_version: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ! '>='
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
101
+ required_rubygems_version: !ruby/object:Gem::Requirement
129
102
  none: false
130
- requirements:
131
- - - ">="
132
- - !ruby/object:Gem::Version
133
- version: "0"
103
+ requirements:
104
+ - - ! '>='
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
134
107
  requirements: []
135
-
136
108
  rubyforge_project: poundpay
137
- rubygems_version: 1.5.2
109
+ rubygems_version: 1.8.10
138
110
  signing_key:
139
111
  specification_version: 3
140
112
  summary: Poundpay Ruby library
141
- test_files:
142
- - spec/fixtures/callback.rb
143
- - spec/fixtures/charge_permissions.rb
144
- - spec/fixtures/developers.rb
145
- - spec/fixtures/payments.rb
146
- - spec/fixtures/poundpay.yml
147
- - spec/poundpay/callback_spec.rb
148
- - spec/poundpay/elements_spec.rb
149
- - spec/poundpay/exceptions_spec.rb
150
- - spec/poundpay/formats_spec.rb
151
- - spec/poundpay/rails_spec.rb
152
- - spec/poundpay/resource_spec.rb
153
- - spec/poundpay_spec.rb
113
+ test_files: []