poundpay 0.2.9 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/README.rdoc +50 -3
- data/examples/simple_application/.rvmrc +1 -1
- data/examples/simple_application/application.rb +152 -48
- data/examples/simple_application/config.rb +14 -5
- data/examples/simple_application/config.ru +16 -2
- data/examples/simple_application/index.html.erb +125 -14
- data/examples/simple_application/static/css/simplemp.css +13 -0
- data/examples/simple_application/static/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/examples/simple_application/static/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/examples/simple_application/static/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/examples/simple_application/static/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/examples/simple_application/static/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/examples/simple_application/static/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/examples/simple_application/static/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/examples/simple_application/static/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/examples/simple_application/static/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/examples/simple_application/static/css/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- data/examples/simple_application/static/css/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/examples/simple_application/static/css/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- data/examples/simple_application/static/css/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- data/examples/simple_application/static/css/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- data/examples/simple_application/static/css/ui-lightness/jquery-ui-1.8.13.custom.css +578 -0
- data/examples/simple_application/static/favicon.ico +0 -0
- data/examples/simple_application/static/js/jquery-1.6.1.js +8936 -0
- data/examples/simple_application/static/js/jquery-ui-1.8.13.custom.min.js +784 -0
- data/examples/simple_application/static/js/simplemp.js +177 -0
- data/lib/poundpay.rb +2 -1
- data/lib/poundpay/elements.rb +38 -18
- data/lib/poundpay/exceptions.rb +10 -0
- data/lib/poundpay/version.rb +1 -1
- data/spec/fixtures/charge_permissions.rb +24 -0
- data/spec/fixtures/payments.rb +0 -6
- data/spec/poundpay/elements_spec.rb +34 -43
- data/spec/poundpay/exceptions_spec.rb +11 -0
- metadata +29 -21
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'poundpay'
|
2
|
+
|
3
|
+
describe ActiveResource::ConnectionError do
|
4
|
+
describe ".data" do
|
5
|
+
it "should return the parsed response body" do
|
6
|
+
response = double('response')
|
7
|
+
response.stub(:body).and_return('{"error_message":"You screwed up!"}')
|
8
|
+
ActiveResource::ConnectionError.new(response).data.should == {error_message: "You screwed up!"}
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
metadata
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poundpay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 2
|
8
|
-
- 9
|
9
|
-
version: 0.2.9
|
4
|
+
prerelease:
|
5
|
+
version: "0.3"
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- Matin Tamizi
|
@@ -14,7 +10,7 @@ autorequire:
|
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
12
|
|
17
|
-
date: 2011-
|
13
|
+
date: 2011-11-18 00:00:00 -08:00
|
18
14
|
default_executable:
|
19
15
|
dependencies:
|
20
16
|
- !ruby/object:Gem::Dependency
|
@@ -25,10 +21,6 @@ dependencies:
|
|
25
21
|
requirements:
|
26
22
|
- - ~>
|
27
23
|
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 3
|
30
|
-
- 0
|
31
|
-
- 0
|
32
24
|
version: 3.0.0
|
33
25
|
type: :runtime
|
34
26
|
version_requirements: *id001
|
@@ -40,9 +32,6 @@ dependencies:
|
|
40
32
|
requirements:
|
41
33
|
- - ">="
|
42
34
|
- !ruby/object:Gem::Version
|
43
|
-
segments:
|
44
|
-
- 2
|
45
|
-
- 0
|
46
35
|
version: "2.0"
|
47
36
|
type: :development
|
48
37
|
version_requirements: *id002
|
@@ -54,8 +43,6 @@ dependencies:
|
|
54
43
|
requirements:
|
55
44
|
- - ">="
|
56
45
|
- !ruby/object:Gem::Version
|
57
|
-
segments:
|
58
|
-
- 0
|
59
46
|
version: "0"
|
60
47
|
type: :development
|
61
48
|
version_requirements: *id003
|
@@ -82,20 +69,43 @@ files:
|
|
82
69
|
- examples/simple_application/config.rb
|
83
70
|
- examples/simple_application/config.ru
|
84
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
|
85
92
|
- lib/poundpay.rb
|
86
93
|
- lib/poundpay/callback.rb
|
87
94
|
- lib/poundpay/elements.rb
|
95
|
+
- lib/poundpay/exceptions.rb
|
88
96
|
- lib/poundpay/formats.rb
|
89
97
|
- lib/poundpay/rails.rb
|
90
98
|
- lib/poundpay/resource.rb
|
91
99
|
- lib/poundpay/version.rb
|
92
100
|
- poundpay.gemspec
|
93
101
|
- spec/fixtures/callback.rb
|
102
|
+
- spec/fixtures/charge_permissions.rb
|
94
103
|
- spec/fixtures/developers.rb
|
95
104
|
- spec/fixtures/payments.rb
|
96
105
|
- spec/fixtures/poundpay.yml
|
97
106
|
- spec/poundpay/callback_spec.rb
|
98
107
|
- spec/poundpay/elements_spec.rb
|
108
|
+
- spec/poundpay/exceptions_spec.rb
|
99
109
|
- spec/poundpay/formats_spec.rb
|
100
110
|
- spec/poundpay/rails_spec.rb
|
101
111
|
- spec/poundpay/resource_spec.rb
|
@@ -114,31 +124,29 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
114
124
|
requirements:
|
115
125
|
- - ">="
|
116
126
|
- !ruby/object:Gem::Version
|
117
|
-
segments:
|
118
|
-
- 0
|
119
127
|
version: "0"
|
120
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
129
|
none: false
|
122
130
|
requirements:
|
123
131
|
- - ">="
|
124
132
|
- !ruby/object:Gem::Version
|
125
|
-
segments:
|
126
|
-
- 0
|
127
133
|
version: "0"
|
128
134
|
requirements: []
|
129
135
|
|
130
136
|
rubyforge_project: poundpay
|
131
|
-
rubygems_version: 1.
|
137
|
+
rubygems_version: 1.5.2
|
132
138
|
signing_key:
|
133
139
|
specification_version: 3
|
134
140
|
summary: Poundpay Ruby library
|
135
141
|
test_files:
|
136
142
|
- spec/fixtures/callback.rb
|
143
|
+
- spec/fixtures/charge_permissions.rb
|
137
144
|
- spec/fixtures/developers.rb
|
138
145
|
- spec/fixtures/payments.rb
|
139
146
|
- spec/fixtures/poundpay.yml
|
140
147
|
- spec/poundpay/callback_spec.rb
|
141
148
|
- spec/poundpay/elements_spec.rb
|
149
|
+
- spec/poundpay/exceptions_spec.rb
|
142
150
|
- spec/poundpay/formats_spec.rb
|
143
151
|
- spec/poundpay/rails_spec.rb
|
144
152
|
- spec/poundpay/resource_spec.rb
|