recurly 0.2.6 → 0.2.7
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.
Potentially problematic release.
This version of recurly might be problematic. Click here for more details.
- data/lib/recurly.rb +14 -0
- data/lib/recurly/rails3/railtie.rb +8 -2
- data/lib/recurly/version.rb +1 -1
- data/spec/config/test.yml +4 -0
- data/spec/spec_helper.rb +16 -4
- data/spec/unit/config_spec.rb +38 -0
- data/spec/vcr/account/close/1288381765.yml +159 -0
- data/spec/vcr/account/create-blank/1288381765.yml +49 -0
- data/spec/vcr/account/create-duplicate/1288381765.yml +95 -0
- data/spec/vcr/account/create-min/1288381765.yml +63 -0
- data/spec/vcr/account/create/1288381765.yml +67 -0
- data/spec/vcr/account/find/1288381765.yml +160 -0
- data/spec/vcr/account/list/1288381765.yml +1835 -0
- data/spec/vcr/account/update/1288381765.yml +250 -0
- metadata +24 -4
@@ -0,0 +1,250 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<company-name>Recurly Ruby Gem</company-name>
|
10
|
+
<account-code>account-update-1288381765</account-code>
|
11
|
+
<last-name>Test</last-name>
|
12
|
+
<email>verena@test.com</email>
|
13
|
+
<first-name>Verena</first-name>
|
14
|
+
</account>
|
15
|
+
|
16
|
+
headers:
|
17
|
+
accept:
|
18
|
+
- "*/*"
|
19
|
+
connection:
|
20
|
+
- close
|
21
|
+
content-type:
|
22
|
+
- application/xml
|
23
|
+
authorization:
|
24
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
25
|
+
response: !ruby/struct:VCR::Response
|
26
|
+
status: !ruby/struct:VCR::ResponseStatus
|
27
|
+
code: 201
|
28
|
+
message: Created
|
29
|
+
headers:
|
30
|
+
location:
|
31
|
+
- https://recurlytest3-test.recurly.com/accounts/account-update-1288381765
|
32
|
+
connection:
|
33
|
+
- close
|
34
|
+
content-type:
|
35
|
+
- application/xml; charset=utf-8
|
36
|
+
x-runtime:
|
37
|
+
- "719"
|
38
|
+
date:
|
39
|
+
- Thu, 04 Nov 2010 23:28:25 GMT
|
40
|
+
server:
|
41
|
+
- nginx/0.7.65
|
42
|
+
content-length:
|
43
|
+
- "583"
|
44
|
+
set-cookie:
|
45
|
+
- account_credentials=c3cab20238d22c0e4ec41e87bd9dbeb8ccdae9768393b6850d4e9995aa3de5c37e1235a2cefb9d82086559b809d1f58939c77eb34e0eca607cc87e48927da340%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
46
|
+
- ""
|
47
|
+
- _recurly_session=fdccb54fc1620a08794cab11ce5ae1d7; domain=.recurly.com; path=/; Secure; HttpOnly
|
48
|
+
cache-control:
|
49
|
+
- no-cache
|
50
|
+
body: |
|
51
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
52
|
+
<account>
|
53
|
+
<id>account-update-1288381765</id>
|
54
|
+
<account_code>account-update-1288381765</account_code>
|
55
|
+
<username></username>
|
56
|
+
<email>verena@test.com</email>
|
57
|
+
<first_name>Verena</first_name>
|
58
|
+
<last_name>Test</last_name>
|
59
|
+
<company_name>Recurly Ruby Gem</company_name>
|
60
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
61
|
+
<closed type="boolean">false</closed>
|
62
|
+
<hosted_login_token>08eeed75afad47c38f87747f06a21160</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-11-04T23:28:25Z</created_at>
|
64
|
+
<state>active</state>
|
65
|
+
</account>
|
66
|
+
|
67
|
+
http_version: "1.1"
|
68
|
+
- !ruby/struct:VCR::HTTPInteraction
|
69
|
+
request: !ruby/struct:VCR::Request
|
70
|
+
method: :get
|
71
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/account-update-1288381765.xml
|
72
|
+
body:
|
73
|
+
headers:
|
74
|
+
accept:
|
75
|
+
- application/xml
|
76
|
+
connection:
|
77
|
+
- close
|
78
|
+
authorization:
|
79
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
80
|
+
response: !ruby/struct:VCR::Response
|
81
|
+
status: !ruby/struct:VCR::ResponseStatus
|
82
|
+
code: 200
|
83
|
+
message: OK
|
84
|
+
headers:
|
85
|
+
x-ua-compatible:
|
86
|
+
- IE=Edge
|
87
|
+
etag:
|
88
|
+
- "\"c46f22813d64f417f050939328acf162\""
|
89
|
+
connection:
|
90
|
+
- close
|
91
|
+
content-type:
|
92
|
+
- application/xml; charset=utf-8
|
93
|
+
x-runtime:
|
94
|
+
- "52"
|
95
|
+
date:
|
96
|
+
- Thu, 04 Nov 2010 23:28:26 GMT
|
97
|
+
server:
|
98
|
+
- nginx/0.7.65
|
99
|
+
content-length:
|
100
|
+
- "583"
|
101
|
+
set-cookie:
|
102
|
+
- _recurly_session=bb373f624e2afefc827d0f775c588564; domain=.recurly.com; path=/; Secure; HttpOnly
|
103
|
+
cache-control:
|
104
|
+
- private, max-age=0, must-revalidate
|
105
|
+
body: |
|
106
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
107
|
+
<account>
|
108
|
+
<id>account-update-1288381765</id>
|
109
|
+
<account_code>account-update-1288381765</account_code>
|
110
|
+
<username></username>
|
111
|
+
<email>verena@test.com</email>
|
112
|
+
<first_name>Verena</first_name>
|
113
|
+
<last_name>Test</last_name>
|
114
|
+
<company_name>Recurly Ruby Gem</company_name>
|
115
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
116
|
+
<closed type="boolean">false</closed>
|
117
|
+
<hosted_login_token>08eeed75afad47c38f87747f06a21160</hosted_login_token>
|
118
|
+
<created_at type="datetime">2010-11-04T23:28:25Z</created_at>
|
119
|
+
<state>active</state>
|
120
|
+
</account>
|
121
|
+
|
122
|
+
http_version: "1.1"
|
123
|
+
- !ruby/struct:VCR::HTTPInteraction
|
124
|
+
request: !ruby/struct:VCR::Request
|
125
|
+
method: :put
|
126
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/account-update-1288381765.xml
|
127
|
+
body: |
|
128
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
129
|
+
<account>
|
130
|
+
<created-at type="datetime">2010-11-04T23:28:25Z</created-at>
|
131
|
+
<hosted-login-token>08eeed75afad47c38f87747f06a21160</hosted-login-token>
|
132
|
+
<company-name>Recurly Ruby Gem -- Update</company-name>
|
133
|
+
<account-code>account-update-1288381765</account-code>
|
134
|
+
<closed type="boolean">false</closed>
|
135
|
+
<username type="yaml" nil="true"></username>
|
136
|
+
<id>account-update-1288381765</id>
|
137
|
+
<last-name>Update Test</last-name>
|
138
|
+
<balance-in-cents type="integer">0</balance-in-cents>
|
139
|
+
<email>verena@test.com</email>
|
140
|
+
<first-name>Verena</first-name>
|
141
|
+
<state>active</state>
|
142
|
+
</account>
|
143
|
+
|
144
|
+
headers:
|
145
|
+
accept:
|
146
|
+
- "*/*"
|
147
|
+
connection:
|
148
|
+
- close
|
149
|
+
content-type:
|
150
|
+
- application/xml
|
151
|
+
authorization:
|
152
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
153
|
+
response: !ruby/struct:VCR::Response
|
154
|
+
status: !ruby/struct:VCR::ResponseStatus
|
155
|
+
code: 200
|
156
|
+
message: OK
|
157
|
+
headers:
|
158
|
+
x-ua-compatible:
|
159
|
+
- IE=Edge
|
160
|
+
etag:
|
161
|
+
- "\"fa2470aab35fa820d0b2f6892f1b4b19\""
|
162
|
+
connection:
|
163
|
+
- close
|
164
|
+
content-type:
|
165
|
+
- application/xml; charset=utf-8
|
166
|
+
x-runtime:
|
167
|
+
- "28"
|
168
|
+
date:
|
169
|
+
- Thu, 04 Nov 2010 23:28:26 GMT
|
170
|
+
server:
|
171
|
+
- nginx/0.7.65
|
172
|
+
content-length:
|
173
|
+
- "600"
|
174
|
+
set-cookie:
|
175
|
+
- _recurly_session=f0f3379b2eb38fe485b40f71617c7878; domain=.recurly.com; path=/; Secure; HttpOnly
|
176
|
+
cache-control:
|
177
|
+
- private, max-age=0, must-revalidate
|
178
|
+
body: |
|
179
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
180
|
+
<account>
|
181
|
+
<id>account-update-1288381765</id>
|
182
|
+
<account_code>account-update-1288381765</account_code>
|
183
|
+
<username></username>
|
184
|
+
<email>verena@test.com</email>
|
185
|
+
<first_name>Verena</first_name>
|
186
|
+
<last_name>Update Test</last_name>
|
187
|
+
<company_name>Recurly Ruby Gem -- Update</company_name>
|
188
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
189
|
+
<closed type="boolean">false</closed>
|
190
|
+
<hosted_login_token>08eeed75afad47c38f87747f06a21160</hosted_login_token>
|
191
|
+
<created_at type="datetime">2010-11-04T23:28:25Z</created_at>
|
192
|
+
<state>active</state>
|
193
|
+
</account>
|
194
|
+
|
195
|
+
http_version: "1.1"
|
196
|
+
- !ruby/struct:VCR::HTTPInteraction
|
197
|
+
request: !ruby/struct:VCR::Request
|
198
|
+
method: :get
|
199
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/account-update-1288381765.xml
|
200
|
+
body:
|
201
|
+
headers:
|
202
|
+
accept:
|
203
|
+
- application/xml
|
204
|
+
connection:
|
205
|
+
- close
|
206
|
+
authorization:
|
207
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
208
|
+
response: !ruby/struct:VCR::Response
|
209
|
+
status: !ruby/struct:VCR::ResponseStatus
|
210
|
+
code: 200
|
211
|
+
message: OK
|
212
|
+
headers:
|
213
|
+
x-ua-compatible:
|
214
|
+
- IE=Edge
|
215
|
+
etag:
|
216
|
+
- "\"fa2470aab35fa820d0b2f6892f1b4b19\""
|
217
|
+
connection:
|
218
|
+
- close
|
219
|
+
content-type:
|
220
|
+
- application/xml; charset=utf-8
|
221
|
+
x-runtime:
|
222
|
+
- "31"
|
223
|
+
date:
|
224
|
+
- Thu, 04 Nov 2010 23:28:27 GMT
|
225
|
+
server:
|
226
|
+
- nginx/0.7.65
|
227
|
+
content-length:
|
228
|
+
- "600"
|
229
|
+
set-cookie:
|
230
|
+
- _recurly_session=a5e126e03d92acb4d26dcf11cc3051cb; domain=.recurly.com; path=/; Secure; HttpOnly
|
231
|
+
cache-control:
|
232
|
+
- private, max-age=0, must-revalidate
|
233
|
+
body: |
|
234
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
235
|
+
<account>
|
236
|
+
<id>account-update-1288381765</id>
|
237
|
+
<account_code>account-update-1288381765</account_code>
|
238
|
+
<username></username>
|
239
|
+
<email>verena@test.com</email>
|
240
|
+
<first_name>Verena</first_name>
|
241
|
+
<last_name>Update Test</last_name>
|
242
|
+
<company_name>Recurly Ruby Gem -- Update</company_name>
|
243
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
244
|
+
<closed type="boolean">false</closed>
|
245
|
+
<hosted_login_token>08eeed75afad47c38f87747f06a21160</hosted_login_token>
|
246
|
+
<created_at type="datetime">2010-11-04T23:28:25Z</created_at>
|
247
|
+
<state>active</state>
|
248
|
+
</account>
|
249
|
+
|
250
|
+
http_version: "1.1"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recurly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 7
|
10
|
+
version: 0.2.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Isaac Hall
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-11-05 00:00:00 -07:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -125,6 +125,7 @@ files:
|
|
125
125
|
- LICENSE
|
126
126
|
- README.md
|
127
127
|
- spec/config/recurly.yml
|
128
|
+
- spec/config/test.yml
|
128
129
|
- spec/integration/account_spec.rb
|
129
130
|
- spec/integration/billing_info_spec.rb
|
130
131
|
- spec/integration/charge_spec.rb
|
@@ -136,32 +137,41 @@ files:
|
|
136
137
|
- spec/spec_helper.rb
|
137
138
|
- spec/support/factory.rb
|
138
139
|
- spec/support/vcr.rb
|
140
|
+
- spec/unit/config_spec.rb
|
139
141
|
- spec/vcr/account/close/1287167046.yml
|
140
142
|
- spec/vcr/account/close/1288381369.yml
|
141
143
|
- spec/vcr/account/close/1288381447.yml
|
144
|
+
- spec/vcr/account/close/1288381765.yml
|
142
145
|
- spec/vcr/account/create/1287167046.yml
|
143
146
|
- spec/vcr/account/create/1288381369.yml
|
144
147
|
- spec/vcr/account/create/1288381447.yml
|
148
|
+
- spec/vcr/account/create/1288381765.yml
|
145
149
|
- spec/vcr/account/create-blank/1287167046.yml
|
146
150
|
- spec/vcr/account/create-blank/1288381369.yml
|
147
151
|
- spec/vcr/account/create-blank/1288381447.yml
|
152
|
+
- spec/vcr/account/create-blank/1288381765.yml
|
148
153
|
- spec/vcr/account/create-duplicate/1287167046.yml
|
149
154
|
- spec/vcr/account/create-duplicate/1288381369.yml
|
150
155
|
- spec/vcr/account/create-duplicate/1288381447.yml
|
156
|
+
- spec/vcr/account/create-duplicate/1288381765.yml
|
151
157
|
- spec/vcr/account/create-min/1287167046.yml
|
152
158
|
- spec/vcr/account/create-min/1288381369.yml
|
153
159
|
- spec/vcr/account/create-min/1288381447.yml
|
160
|
+
- spec/vcr/account/create-min/1288381765.yml
|
154
161
|
- spec/vcr/account/find/1287167046.yml
|
155
162
|
- spec/vcr/account/find/1288381369.yml
|
156
163
|
- spec/vcr/account/find/1288381447.yml
|
164
|
+
- spec/vcr/account/find/1288381765.yml
|
157
165
|
- spec/vcr/account/find-all/1288381369.yml
|
158
166
|
- spec/vcr/account/find-all/1288381447.yml
|
159
167
|
- spec/vcr/account/list/1287167046.yml
|
160
168
|
- spec/vcr/account/list/1288381369.yml
|
161
169
|
- spec/vcr/account/list/1288381447.yml
|
170
|
+
- spec/vcr/account/list/1288381765.yml
|
162
171
|
- spec/vcr/account/update/1287167046.yml
|
163
172
|
- spec/vcr/account/update/1288381369.yml
|
164
173
|
- spec/vcr/account/update/1288381447.yml
|
174
|
+
- spec/vcr/account/update/1288381765.yml
|
165
175
|
- spec/vcr/billing/create/1286682213.yml
|
166
176
|
- spec/vcr/billing/destroy/1286682213.yml
|
167
177
|
- spec/vcr/billing/find/1286682213.yml
|
@@ -238,6 +248,7 @@ specification_version: 3
|
|
238
248
|
summary: Ruby API wrapper for Recurly
|
239
249
|
test_files:
|
240
250
|
- spec/config/recurly.yml
|
251
|
+
- spec/config/test.yml
|
241
252
|
- spec/integration/account_spec.rb
|
242
253
|
- spec/integration/billing_info_spec.rb
|
243
254
|
- spec/integration/charge_spec.rb
|
@@ -249,32 +260,41 @@ test_files:
|
|
249
260
|
- spec/spec_helper.rb
|
250
261
|
- spec/support/factory.rb
|
251
262
|
- spec/support/vcr.rb
|
263
|
+
- spec/unit/config_spec.rb
|
252
264
|
- spec/vcr/account/close/1287167046.yml
|
253
265
|
- spec/vcr/account/close/1288381369.yml
|
254
266
|
- spec/vcr/account/close/1288381447.yml
|
267
|
+
- spec/vcr/account/close/1288381765.yml
|
255
268
|
- spec/vcr/account/create/1287167046.yml
|
256
269
|
- spec/vcr/account/create/1288381369.yml
|
257
270
|
- spec/vcr/account/create/1288381447.yml
|
271
|
+
- spec/vcr/account/create/1288381765.yml
|
258
272
|
- spec/vcr/account/create-blank/1287167046.yml
|
259
273
|
- spec/vcr/account/create-blank/1288381369.yml
|
260
274
|
- spec/vcr/account/create-blank/1288381447.yml
|
275
|
+
- spec/vcr/account/create-blank/1288381765.yml
|
261
276
|
- spec/vcr/account/create-duplicate/1287167046.yml
|
262
277
|
- spec/vcr/account/create-duplicate/1288381369.yml
|
263
278
|
- spec/vcr/account/create-duplicate/1288381447.yml
|
279
|
+
- spec/vcr/account/create-duplicate/1288381765.yml
|
264
280
|
- spec/vcr/account/create-min/1287167046.yml
|
265
281
|
- spec/vcr/account/create-min/1288381369.yml
|
266
282
|
- spec/vcr/account/create-min/1288381447.yml
|
283
|
+
- spec/vcr/account/create-min/1288381765.yml
|
267
284
|
- spec/vcr/account/find/1287167046.yml
|
268
285
|
- spec/vcr/account/find/1288381369.yml
|
269
286
|
- spec/vcr/account/find/1288381447.yml
|
287
|
+
- spec/vcr/account/find/1288381765.yml
|
270
288
|
- spec/vcr/account/find-all/1288381369.yml
|
271
289
|
- spec/vcr/account/find-all/1288381447.yml
|
272
290
|
- spec/vcr/account/list/1287167046.yml
|
273
291
|
- spec/vcr/account/list/1288381369.yml
|
274
292
|
- spec/vcr/account/list/1288381447.yml
|
293
|
+
- spec/vcr/account/list/1288381765.yml
|
275
294
|
- spec/vcr/account/update/1287167046.yml
|
276
295
|
- spec/vcr/account/update/1288381369.yml
|
277
296
|
- spec/vcr/account/update/1288381447.yml
|
297
|
+
- spec/vcr/account/update/1288381765.yml
|
278
298
|
- spec/vcr/billing/create/1286682213.yml
|
279
299
|
- spec/vcr/billing/destroy/1286682213.yml
|
280
300
|
- spec/vcr/billing/find/1286682213.yml
|