recurly 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of recurly might be problematic. Click here for more details.
- data/README.md +15 -11
- data/lib/patches/active_resource/connection.rb +10 -0
- data/lib/recurly.rb +35 -9
- data/lib/recurly/account.rb +22 -1
- data/lib/recurly/account_base.rb +35 -0
- data/lib/recurly/base.rb +26 -39
- data/lib/recurly/billing_info.rb +40 -1
- data/lib/recurly/charge.rb +12 -1
- data/lib/recurly/coupon.rb +8 -0
- data/lib/recurly/credit.rb +12 -1
- data/lib/recurly/exceptions.rb +19 -0
- data/lib/recurly/invoice.rb +1 -1
- data/lib/recurly/plan.rb +13 -1
- data/lib/recurly/rails3/recurly.rake +5 -3
- data/lib/recurly/subscription.rb +21 -3
- data/lib/recurly/transaction.rb +29 -1
- data/lib/recurly/transparent.rb +140 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +12 -0
- data/spec/config/test1.yml +3 -1
- data/spec/config/test2.yml +4 -2
- data/spec/integration/credit_spec.rb +6 -6
- data/spec/integration/plan_spec.rb +2 -2
- data/spec/support/factory.rb +5 -3
- data/spec/unit/account_spec.rb +19 -0
- data/spec/unit/billing_info_spec.rb +38 -0
- data/spec/unit/charge_spec.rb +18 -0
- data/spec/unit/config_spec.rb +10 -6
- data/spec/unit/coupon_spec.rb +13 -0
- data/spec/unit/credit_spec.rb +18 -0
- data/spec/unit/plan_spec.rb +18 -0
- data/spec/unit/subscription_spec.rb +25 -0
- data/spec/unit/transaction_spec.rb +32 -0
- data/spec/unit/transparent_spec.rb +114 -0
- data/spec/vcr/account/accept-language-account/{1296674173.yml → 1297746103.yml} +16 -13
- data/spec/vcr/account/close/{1296674173.yml → 1297746103.yml} +31 -28
- data/spec/vcr/account/create-blank/{1296674173.yml → 1297746103.yml} +9 -5
- data/spec/vcr/account/create-duplicate/{1296674173.yml → 1297746103.yml} +22 -15
- data/spec/vcr/account/create-min/{1296674173.yml → 1297746103.yml} +16 -13
- data/spec/vcr/account/create/{1296674173.yml → 1297746103.yml} +16 -13
- data/spec/vcr/account/find/{1296674173.yml → 1297746103.yml} +29 -26
- data/spec/vcr/account/list/1297746103.yml +1579 -0
- data/spec/vcr/account/update/{1296674173.yml → 1297746103.yml} +54 -47
- data/spec/vcr/billing/create/{1296690812.yml → 1298594128.yml} +37 -34
- data/spec/vcr/billing/destroy/{1296690812.yml → 1298594128.yml} +46 -43
- data/spec/vcr/billing/find/{1296690812.yml → 1298594128.yml} +47 -44
- data/spec/vcr/billing/update/{1296690812.yml → 1298594128.yml} +50 -47
- data/spec/vcr/charge/create/{1296674173.yml → 1297746103.yml} +48 -45
- data/spec/vcr/charge/delete-uninvoiced/{1296674173.yml → 1297746103.yml} +49 -46
- data/spec/vcr/charge/list-all/{1296674173.yml → 1297746103.yml} +61 -58
- data/spec/vcr/charge/list-invoiced/{1296674173.yml → 1297746103.yml} +92 -89
- data/spec/vcr/charge/list-pending/{1296674173.yml → 1297746103.yml} +61 -58
- data/spec/vcr/charge/lookup/{1296674173.yml → 1297746103.yml} +34 -31
- data/spec/vcr/coupon/create/{1296774903.yml → 1299714521.yml} +35 -32
- data/spec/vcr/coupon/destroy/{1296688818.yml → 1299714521.yml} +34 -31
- data/spec/vcr/{coupon/create/1296688818.yml → credit/create/1299714599.yml} +53 -53
- data/spec/vcr/credit/delete/1299714599.yml +262 -0
- data/spec/vcr/credit/list/1299714599.yml +319 -0
- data/spec/vcr/credit/lookup/1299714599.yml +183 -0
- data/spec/vcr/invoice/create-no-charges/{1296674173.yml → 1297746103.yml} +34 -31
- data/spec/vcr/invoice/create/{1296674173.yml → 1297746103.yml} +63 -60
- data/spec/vcr/invoice/list/{1296674173.yml → 1297746103.yml} +87 -84
- data/spec/vcr/invoice/lookup/{1296674173.yml → 1297746103.yml} +64 -61
- data/spec/vcr/plan/all.yml +30 -30
- data/spec/vcr/plan/find.yml +25 -25
- data/spec/vcr/plan/update.yml +16 -15
- data/spec/vcr/subscription/addons/add/{1296674173.yml → 1297746103.yml} +44 -40
- data/spec/vcr/subscription/addons/create/{1296674173.yml → 1297746103.yml} +44 -40
- data/spec/vcr/subscription/addons/remove/{1296674173.yml → 1297746103.yml} +44 -40
- data/spec/vcr/subscription/cancel-with-code/{1296674173.yml → 1297746103.yml} +99 -95
- data/spec/vcr/subscription/cancel/{1296674173.yml → 1297746103.yml} +86 -82
- data/spec/vcr/subscription/change1/{1296674173.yml → 1297746103.yml} +82 -78
- data/spec/vcr/subscription/change2/{1296674173.yml → 1297746103.yml} +82 -78
- data/spec/vcr/subscription/create/{1296674173.yml → 1297746103.yml} +49 -45
- data/spec/vcr/subscription/find/{1296674173.yml → 1297746103.yml} +60 -56
- data/spec/vcr/subscription/reactivate/{1296674173.yml → 1297746103.yml} +93 -89
- data/spec/vcr/subscription/refund-full/{1296674173.yml → 1297746103.yml} +77 -73
- data/spec/vcr/subscription/refund-none/{1296674173.yml → 1297746103.yml} +77 -73
- data/spec/vcr/subscription/refund-partial/{1296674173.yml → 1297746103.yml} +77 -73
- data/spec/vcr/transaction/all/{1296674173.yml → 1297746103.yml} +107 -107
- data/spec/vcr/transaction/create-no-account/{1296674173.yml → 1297746103.yml} +14 -13
- data/spec/vcr/transaction/create-with-account/{1296674173.yml → 1297746103.yml} +46 -58
- data/spec/vcr/transaction/list-filled/1297746103.yml +213 -0
- data/spec/vcr/transaction/list-initial/{1296674173.yml → 1297746103.yml} +38 -35
- data/spec/vcr/transaction/lookup/1297746103.yml +213 -0
- data/spec/vcr/transaction/refund/1297746103.yml +213 -0
- data/spec/vcr/transaction/void/1297746103.yml +213 -0
- metadata +146 -139
- data/spec/vcr/account/list/1296674173.yml +0 -55
- data/spec/vcr/coupon/destroy/1296774903.yml +0 -207
- data/spec/vcr/credit/create/1296674173.yml +0 -121
- data/spec/vcr/credit/delete/1296674173.yml +0 -121
- data/spec/vcr/credit/list/1296674173.yml +0 -121
- data/spec/vcr/credit/lookup/1296674173.yml +0 -121
- data/spec/vcr/plan/delete/1296674173.yml +0 -225
- data/spec/vcr/transaction/list-filled/1296674173.yml +0 -487
- data/spec/vcr/transaction/lookup/1296674173.yml +0 -563
- data/spec/vcr/transaction/refund/1296674173.yml +0 -287
- data/spec/vcr/transaction/void/1296674173.yml +0 -352
@@ -0,0 +1,213 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<account-code>transaction-void-1297746103</account-code>
|
10
|
+
<first-name>Verena</first-name>
|
11
|
+
<last-name>Test</last-name>
|
12
|
+
<email>verena@test.com</email>
|
13
|
+
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
<billing-info>
|
15
|
+
<credit-card>
|
16
|
+
</credit-card>
|
17
|
+
</billing-info>
|
18
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
19
|
+
</account>
|
20
|
+
|
21
|
+
headers:
|
22
|
+
authorization:
|
23
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
24
|
+
content-type:
|
25
|
+
- application/xml
|
26
|
+
accept:
|
27
|
+
- "*/*"
|
28
|
+
user-agent:
|
29
|
+
- Ruby
|
30
|
+
connection:
|
31
|
+
- close
|
32
|
+
response: !ruby/struct:VCR::Response
|
33
|
+
status: !ruby/struct:VCR::ResponseStatus
|
34
|
+
code: 201
|
35
|
+
message: "Created "
|
36
|
+
headers:
|
37
|
+
cache-control:
|
38
|
+
- no-cache
|
39
|
+
location:
|
40
|
+
- http://app.recurly.local:3000/accounts/transaction-void-1297746103
|
41
|
+
x-runtime:
|
42
|
+
- "573"
|
43
|
+
content-type:
|
44
|
+
- application/xml; charset=utf-8
|
45
|
+
content-length:
|
46
|
+
- "587"
|
47
|
+
server:
|
48
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
49
|
+
date:
|
50
|
+
- Fri, 11 Mar 2011 18:56:34 GMT
|
51
|
+
connection:
|
52
|
+
- close
|
53
|
+
set-cookie:
|
54
|
+
- account_credentials=571f9cc70df450a5c79090e6882272f78dada6059d99f0f8ff61836f16194d139a9df6a6286ee781d1ffdaf8338d699403f3174d601db8c433fe628c0a038e73%3A%3A; domain=.recurly.local; path=/
|
55
|
+
- _recurly_session=bf1dd297cfa589bf7519e5046506ea19; domain=.recurly.local; path=/; HttpOnly
|
56
|
+
body: |
|
57
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
58
|
+
<account>
|
59
|
+
<id>transaction-void-1297746103</id>
|
60
|
+
<account_code>transaction-void-1297746103</account_code>
|
61
|
+
<username></username>
|
62
|
+
<email>verena@test.com</email>
|
63
|
+
<first_name>Verena</first_name>
|
64
|
+
<last_name>Test</last_name>
|
65
|
+
<company_name>Recurly Ruby Gem</company_name>
|
66
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
67
|
+
<closed type="boolean">false</closed>
|
68
|
+
<hosted_login_token>bda366d564e1464eb850b9f30f51d579</hosted_login_token>
|
69
|
+
<created_at type="datetime">2011-03-11T18:56:34Z</created_at>
|
70
|
+
<state>active</state>
|
71
|
+
</account>
|
72
|
+
|
73
|
+
http_version: "1.1"
|
74
|
+
- !ruby/struct:VCR::HTTPInteraction
|
75
|
+
request: !ruby/struct:VCR::Request
|
76
|
+
method: :put
|
77
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/transaction-void-1297746103/billing_info.xml
|
78
|
+
body: |
|
79
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
80
|
+
<billing-info>
|
81
|
+
<first-name>Verena</first-name>
|
82
|
+
<last-name>Test</last-name>
|
83
|
+
<address1>123 Test St</address1>
|
84
|
+
<city>San Francisco</city>
|
85
|
+
<state>CA</state>
|
86
|
+
<zip>94115</zip>
|
87
|
+
<country>US</country>
|
88
|
+
<credit-card>
|
89
|
+
<number>4111111111111111</number>
|
90
|
+
<year type="integer">2012</year>
|
91
|
+
<month type="integer">3</month>
|
92
|
+
<verification-value>123</verification-value>
|
93
|
+
</credit-card>
|
94
|
+
<account-code>transaction-void-1297746103</account-code>
|
95
|
+
</billing-info>
|
96
|
+
|
97
|
+
headers:
|
98
|
+
authorization:
|
99
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
100
|
+
content-type:
|
101
|
+
- application/xml
|
102
|
+
accept:
|
103
|
+
- "*/*"
|
104
|
+
user-agent:
|
105
|
+
- Ruby
|
106
|
+
connection:
|
107
|
+
- close
|
108
|
+
response: !ruby/struct:VCR::Response
|
109
|
+
status: !ruby/struct:VCR::ResponseStatus
|
110
|
+
code: 200
|
111
|
+
message: "OK "
|
112
|
+
headers:
|
113
|
+
x-runtime:
|
114
|
+
- "1970"
|
115
|
+
content-type:
|
116
|
+
- application/xml; charset=utf-8
|
117
|
+
etag:
|
118
|
+
- "\"077618f5614b4eaeec1ab2c093a44334\""
|
119
|
+
cache-control:
|
120
|
+
- private, max-age=0, must-revalidate
|
121
|
+
content-length:
|
122
|
+
- "642"
|
123
|
+
server:
|
124
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
125
|
+
date:
|
126
|
+
- Fri, 11 Mar 2011 18:56:39 GMT
|
127
|
+
connection:
|
128
|
+
- close
|
129
|
+
set-cookie:
|
130
|
+
- _recurly_session=e517492961ea9a03a25cfa76c3837540; domain=.recurly.local; path=/; HttpOnly
|
131
|
+
body: |
|
132
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
133
|
+
<billing_info>
|
134
|
+
<account_code>transaction-void-1297746103</account_code>
|
135
|
+
<first_name>Verena</first_name>
|
136
|
+
<last_name>Test</last_name>
|
137
|
+
<address1>123 Test St</address1>
|
138
|
+
<address2></address2>
|
139
|
+
<city>San Francisco</city>
|
140
|
+
<state>CA</state>
|
141
|
+
<country>US</country>
|
142
|
+
<zip>94115</zip>
|
143
|
+
<phone></phone>
|
144
|
+
<vat_number></vat_number>
|
145
|
+
<ip_address></ip_address>
|
146
|
+
<credit_card>
|
147
|
+
<type>visa</type>
|
148
|
+
<last_four>1111</last_four>
|
149
|
+
<month type="integer">3</month>
|
150
|
+
<year type="integer">2012</year>
|
151
|
+
</credit_card>
|
152
|
+
<updated_at type="datetime">2011-03-11T18:56:39Z</updated_at>
|
153
|
+
</billing_info>
|
154
|
+
|
155
|
+
http_version: "1.1"
|
156
|
+
- !ruby/struct:VCR::HTTPInteraction
|
157
|
+
request: !ruby/struct:VCR::Request
|
158
|
+
method: :post
|
159
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/transactions.xml
|
160
|
+
body: |
|
161
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
162
|
+
<transaction>
|
163
|
+
<account>
|
164
|
+
<account-code>transaction-void-1297746103</account-code>
|
165
|
+
<billing-info>
|
166
|
+
<credit-card>
|
167
|
+
</credit-card>
|
168
|
+
</billing-info>
|
169
|
+
</account>
|
170
|
+
<amount-in-cents type="integer">100</amount-in-cents>
|
171
|
+
<description>one</description>
|
172
|
+
</transaction>
|
173
|
+
|
174
|
+
headers:
|
175
|
+
authorization:
|
176
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
177
|
+
content-type:
|
178
|
+
- application/xml
|
179
|
+
accept:
|
180
|
+
- "*/*"
|
181
|
+
user-agent:
|
182
|
+
- Ruby
|
183
|
+
connection:
|
184
|
+
- close
|
185
|
+
response: !ruby/struct:VCR::Response
|
186
|
+
status: !ruby/struct:VCR::ResponseStatus
|
187
|
+
code: 422
|
188
|
+
message: ""
|
189
|
+
headers:
|
190
|
+
cache-control:
|
191
|
+
- no-cache
|
192
|
+
x-runtime:
|
193
|
+
- "810"
|
194
|
+
content-type:
|
195
|
+
- application/xml; charset=utf-8
|
196
|
+
content-length:
|
197
|
+
- "232"
|
198
|
+
server:
|
199
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
200
|
+
date:
|
201
|
+
- Fri, 11 Mar 2011 18:56:42 GMT
|
202
|
+
connection:
|
203
|
+
- close
|
204
|
+
set-cookie:
|
205
|
+
- _recurly_session=e0455609c519ce273a3f01e1778bb73c; domain=.recurly.local; path=/; HttpOnly
|
206
|
+
body: |
|
207
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
208
|
+
<errors>
|
209
|
+
<error field="billing_info.first_name">Billing info.first name can't be blank</error>
|
210
|
+
<error field="billing_info.last_name">Billing info.last name can't be blank</error>
|
211
|
+
</errors>
|
212
|
+
|
213
|
+
http_version: "1.1"
|
metadata
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recurly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 3
|
8
|
-
- 3
|
9
|
-
version: 0.3.3
|
4
|
+
prerelease:
|
5
|
+
version: 0.3.4
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- Isaac Hall
|
@@ -15,7 +11,7 @@ autorequire:
|
|
15
11
|
bindir: bin
|
16
12
|
cert_chain: []
|
17
13
|
|
18
|
-
date: 2011-
|
14
|
+
date: 2011-03-11 00:00:00 -08:00
|
19
15
|
default_executable:
|
20
16
|
dependencies:
|
21
17
|
- !ruby/object:Gem::Dependency
|
@@ -25,9 +21,6 @@ dependencies:
|
|
25
21
|
requirements:
|
26
22
|
- - ">="
|
27
23
|
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 2
|
30
|
-
- 3
|
31
24
|
version: "2.3"
|
32
25
|
type: :runtime
|
33
26
|
prerelease: false
|
@@ -39,56 +32,54 @@ dependencies:
|
|
39
32
|
requirements:
|
40
33
|
- - ">="
|
41
34
|
- !ruby/object:Gem::Version
|
42
|
-
segments:
|
43
|
-
- 2
|
44
|
-
- 3
|
45
35
|
version: "2.3"
|
46
36
|
type: :runtime
|
47
37
|
prerelease: false
|
48
38
|
version_requirements: *id002
|
49
39
|
- !ruby/object:Gem::Dependency
|
50
|
-
name:
|
40
|
+
name: addressable
|
51
41
|
requirement: &id003 !ruby/object:Gem::Requirement
|
52
42
|
none: false
|
53
43
|
requirements:
|
54
44
|
- - ">="
|
55
45
|
- !ruby/object:Gem::Version
|
56
|
-
|
57
|
-
|
58
|
-
- 0
|
59
|
-
- 0
|
60
|
-
- beta
|
61
|
-
- 22
|
62
|
-
version: 2.0.0.beta.22
|
63
|
-
type: :development
|
46
|
+
version: "2.2"
|
47
|
+
type: :runtime
|
64
48
|
prerelease: false
|
65
49
|
version_requirements: *id003
|
66
50
|
- !ruby/object:Gem::Dependency
|
67
|
-
name:
|
51
|
+
name: rspec
|
68
52
|
requirement: &id004 !ruby/object:Gem::Requirement
|
69
53
|
none: false
|
70
54
|
requirements:
|
71
55
|
- - ">="
|
72
56
|
- !ruby/object:Gem::Version
|
73
|
-
|
74
|
-
- 0
|
75
|
-
version: "0"
|
57
|
+
version: 2.0.0.beta.22
|
76
58
|
type: :development
|
77
59
|
prerelease: false
|
78
60
|
version_requirements: *id004
|
79
61
|
- !ruby/object:Gem::Dependency
|
80
|
-
name:
|
62
|
+
name: webmock
|
81
63
|
requirement: &id005 !ruby/object:Gem::Requirement
|
82
64
|
none: false
|
83
65
|
requirements:
|
84
66
|
- - ">="
|
85
67
|
- !ruby/object:Gem::Version
|
86
|
-
segments:
|
87
|
-
- 0
|
88
68
|
version: "0"
|
89
69
|
type: :development
|
90
70
|
prerelease: false
|
91
71
|
version_requirements: *id005
|
72
|
+
- !ruby/object:Gem::Dependency
|
73
|
+
name: vcr
|
74
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
75
|
+
none: false
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: "0"
|
80
|
+
type: :development
|
81
|
+
prerelease: false
|
82
|
+
version_requirements: *id006
|
92
83
|
description: A Ruby API wrapper for Recurly. Super Simple Subscription billing.
|
93
84
|
email:
|
94
85
|
- support@recurly.com
|
@@ -99,13 +90,16 @@ extensions: []
|
|
99
90
|
extra_rdoc_files: []
|
100
91
|
|
101
92
|
files:
|
93
|
+
- lib/patches/active_resource/connection.rb
|
102
94
|
- lib/recurly/account.rb
|
95
|
+
- lib/recurly/account_base.rb
|
103
96
|
- lib/recurly/base.rb
|
104
97
|
- lib/recurly/billing_info.rb
|
105
98
|
- lib/recurly/charge.rb
|
106
99
|
- lib/recurly/config_parser.rb
|
107
100
|
- lib/recurly/coupon.rb
|
108
101
|
- lib/recurly/credit.rb
|
102
|
+
- lib/recurly/exceptions.rb
|
109
103
|
- lib/recurly/formats/xml_with_pagination.rb
|
110
104
|
- lib/recurly/invoice.rb
|
111
105
|
- lib/recurly/plan.rb
|
@@ -114,11 +108,13 @@ files:
|
|
114
108
|
- lib/recurly/rails3/recurly.rake
|
115
109
|
- lib/recurly/subscription.rb
|
116
110
|
- lib/recurly/transaction.rb
|
111
|
+
- lib/recurly/transparent.rb
|
117
112
|
- lib/recurly/version.rb
|
118
113
|
- lib/recurly.rb
|
119
114
|
- init.rb
|
120
115
|
- LICENSE
|
121
116
|
- README.md
|
117
|
+
- spec/config/recurly.yml
|
122
118
|
- spec/config/test1.yml
|
123
119
|
- spec/config/test2.yml
|
124
120
|
- spec/integration/account_spec.rb
|
@@ -134,63 +130,69 @@ files:
|
|
134
130
|
- spec/spec_helper.rb
|
135
131
|
- spec/support/factory.rb
|
136
132
|
- spec/support/vcr.rb
|
133
|
+
- spec/unit/account_spec.rb
|
134
|
+
- spec/unit/billing_info_spec.rb
|
135
|
+
- spec/unit/charge_spec.rb
|
137
136
|
- spec/unit/config_spec.rb
|
138
|
-
- spec/
|
139
|
-
- spec/
|
140
|
-
- spec/
|
141
|
-
- spec/
|
142
|
-
- spec/
|
143
|
-
- spec/
|
144
|
-
- spec/vcr/account/
|
145
|
-
- spec/vcr/account/
|
146
|
-
- spec/vcr/account/
|
147
|
-
- spec/vcr/
|
148
|
-
- spec/vcr/
|
149
|
-
- spec/vcr/
|
150
|
-
- spec/vcr/
|
151
|
-
- spec/vcr/
|
152
|
-
- spec/vcr/
|
153
|
-
- spec/vcr/
|
154
|
-
- spec/vcr/
|
155
|
-
- spec/vcr/
|
156
|
-
- spec/vcr/
|
157
|
-
- spec/vcr/
|
158
|
-
- spec/vcr/
|
159
|
-
- spec/vcr/
|
160
|
-
- spec/vcr/
|
161
|
-
- spec/vcr/
|
162
|
-
- spec/vcr/
|
163
|
-
- spec/vcr/
|
164
|
-
- spec/vcr/
|
165
|
-
- spec/vcr/
|
166
|
-
- spec/vcr/
|
167
|
-
- spec/vcr/
|
168
|
-
- spec/vcr/
|
137
|
+
- spec/unit/coupon_spec.rb
|
138
|
+
- spec/unit/credit_spec.rb
|
139
|
+
- spec/unit/plan_spec.rb
|
140
|
+
- spec/unit/subscription_spec.rb
|
141
|
+
- spec/unit/transaction_spec.rb
|
142
|
+
- spec/unit/transparent_spec.rb
|
143
|
+
- spec/vcr/account/accept-language-account/1297746103.yml
|
144
|
+
- spec/vcr/account/close/1297746103.yml
|
145
|
+
- spec/vcr/account/create/1297746103.yml
|
146
|
+
- spec/vcr/account/create-blank/1297746103.yml
|
147
|
+
- spec/vcr/account/create-duplicate/1297746103.yml
|
148
|
+
- spec/vcr/account/create-min/1297746103.yml
|
149
|
+
- spec/vcr/account/find/1297746103.yml
|
150
|
+
- spec/vcr/account/list/1297746103.yml
|
151
|
+
- spec/vcr/account/update/1297746103.yml
|
152
|
+
- spec/vcr/billing/create/1298594128.yml
|
153
|
+
- spec/vcr/billing/destroy/1298594128.yml
|
154
|
+
- spec/vcr/billing/find/1298594128.yml
|
155
|
+
- spec/vcr/billing/update/1298594128.yml
|
156
|
+
- spec/vcr/charge/create/1297746103.yml
|
157
|
+
- spec/vcr/charge/delete-uninvoiced/1297746103.yml
|
158
|
+
- spec/vcr/charge/list-all/1297746103.yml
|
159
|
+
- spec/vcr/charge/list-invoiced/1297746103.yml
|
160
|
+
- spec/vcr/charge/list-pending/1297746103.yml
|
161
|
+
- spec/vcr/charge/lookup/1297746103.yml
|
162
|
+
- spec/vcr/coupon/create/1299714521.yml
|
163
|
+
- spec/vcr/coupon/destroy/1299714521.yml
|
164
|
+
- spec/vcr/credit/create/1299714599.yml
|
165
|
+
- spec/vcr/credit/delete/1299714599.yml
|
166
|
+
- spec/vcr/credit/list/1299714599.yml
|
167
|
+
- spec/vcr/credit/lookup/1299714599.yml
|
168
|
+
- spec/vcr/invoice/create/1297746103.yml
|
169
|
+
- spec/vcr/invoice/create-no-charges/1297746103.yml
|
170
|
+
- spec/vcr/invoice/list/1297746103.yml
|
171
|
+
- spec/vcr/invoice/lookup/1297746103.yml
|
169
172
|
- spec/vcr/plan/all.yml
|
170
|
-
- spec/vcr/plan/delete/1296674173.yml
|
171
173
|
- spec/vcr/plan/find.yml
|
172
174
|
- spec/vcr/plan/update.yml
|
173
|
-
- spec/vcr/subscription/addons/add/
|
174
|
-
- spec/vcr/subscription/addons/create/
|
175
|
-
- spec/vcr/subscription/addons/remove/
|
176
|
-
- spec/vcr/subscription/cancel/
|
177
|
-
- spec/vcr/subscription/cancel-with-code/
|
178
|
-
- spec/vcr/subscription/change1/
|
179
|
-
- spec/vcr/subscription/change2/
|
180
|
-
- spec/vcr/subscription/create/
|
181
|
-
- spec/vcr/subscription/find/
|
182
|
-
- spec/vcr/subscription/reactivate/
|
183
|
-
- spec/vcr/subscription/refund-full/
|
184
|
-
- spec/vcr/subscription/refund-none/
|
185
|
-
- spec/vcr/subscription/refund-partial/
|
186
|
-
- spec/vcr/transaction/all/
|
187
|
-
- spec/vcr/transaction/create-no-account/
|
188
|
-
- spec/vcr/transaction/create-with-account/
|
189
|
-
- spec/vcr/transaction/list-filled/
|
190
|
-
- spec/vcr/transaction/list-initial/
|
191
|
-
- spec/vcr/transaction/lookup/
|
192
|
-
- spec/vcr/transaction/refund/
|
193
|
-
- spec/vcr/transaction/void/
|
175
|
+
- spec/vcr/subscription/addons/add/1297746103.yml
|
176
|
+
- spec/vcr/subscription/addons/create/1297746103.yml
|
177
|
+
- spec/vcr/subscription/addons/remove/1297746103.yml
|
178
|
+
- spec/vcr/subscription/cancel/1297746103.yml
|
179
|
+
- spec/vcr/subscription/cancel-with-code/1297746103.yml
|
180
|
+
- spec/vcr/subscription/change1/1297746103.yml
|
181
|
+
- spec/vcr/subscription/change2/1297746103.yml
|
182
|
+
- spec/vcr/subscription/create/1297746103.yml
|
183
|
+
- spec/vcr/subscription/find/1297746103.yml
|
184
|
+
- spec/vcr/subscription/reactivate/1297746103.yml
|
185
|
+
- spec/vcr/subscription/refund-full/1297746103.yml
|
186
|
+
- spec/vcr/subscription/refund-none/1297746103.yml
|
187
|
+
- spec/vcr/subscription/refund-partial/1297746103.yml
|
188
|
+
- spec/vcr/transaction/all/1297746103.yml
|
189
|
+
- spec/vcr/transaction/create-no-account/1297746103.yml
|
190
|
+
- spec/vcr/transaction/create-with-account/1297746103.yml
|
191
|
+
- spec/vcr/transaction/list-filled/1297746103.yml
|
192
|
+
- spec/vcr/transaction/list-initial/1297746103.yml
|
193
|
+
- spec/vcr/transaction/lookup/1297746103.yml
|
194
|
+
- spec/vcr/transaction/refund/1297746103.yml
|
195
|
+
- spec/vcr/transaction/void/1297746103.yml
|
194
196
|
has_rdoc: true
|
195
197
|
homepage: http://github.com/recurly/recurly-client-ruby
|
196
198
|
licenses: []
|
@@ -205,7 +207,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
205
207
|
requirements:
|
206
208
|
- - ">="
|
207
209
|
- !ruby/object:Gem::Version
|
208
|
-
hash: -
|
210
|
+
hash: -3493194841915511732
|
209
211
|
segments:
|
210
212
|
- 0
|
211
213
|
version: "0"
|
@@ -214,17 +216,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
216
|
requirements:
|
215
217
|
- - ">="
|
216
218
|
- !ruby/object:Gem::Version
|
217
|
-
segments:
|
218
|
-
- 0
|
219
219
|
version: "0"
|
220
220
|
requirements: []
|
221
221
|
|
222
222
|
rubyforge_project: recurly
|
223
|
-
rubygems_version: 1.
|
223
|
+
rubygems_version: 1.5.0
|
224
224
|
signing_key:
|
225
225
|
specification_version: 3
|
226
226
|
summary: Ruby API wrapper for Recurly
|
227
227
|
test_files:
|
228
|
+
- spec/config/recurly.yml
|
228
229
|
- spec/config/test1.yml
|
229
230
|
- spec/config/test2.yml
|
230
231
|
- spec/integration/account_spec.rb
|
@@ -240,60 +241,66 @@ test_files:
|
|
240
241
|
- spec/spec_helper.rb
|
241
242
|
- spec/support/factory.rb
|
242
243
|
- spec/support/vcr.rb
|
244
|
+
- spec/unit/account_spec.rb
|
245
|
+
- spec/unit/billing_info_spec.rb
|
246
|
+
- spec/unit/charge_spec.rb
|
243
247
|
- spec/unit/config_spec.rb
|
244
|
-
- spec/
|
245
|
-
- spec/
|
246
|
-
- spec/
|
247
|
-
- spec/
|
248
|
-
- spec/
|
249
|
-
- spec/
|
250
|
-
- spec/vcr/account/
|
251
|
-
- spec/vcr/account/
|
252
|
-
- spec/vcr/account/
|
253
|
-
- spec/vcr/
|
254
|
-
- spec/vcr/
|
255
|
-
- spec/vcr/
|
256
|
-
- spec/vcr/
|
257
|
-
- spec/vcr/
|
258
|
-
- spec/vcr/
|
259
|
-
- spec/vcr/
|
260
|
-
- spec/vcr/
|
261
|
-
- spec/vcr/
|
262
|
-
- spec/vcr/
|
263
|
-
- spec/vcr/
|
264
|
-
- spec/vcr/
|
265
|
-
- spec/vcr/
|
266
|
-
- spec/vcr/
|
267
|
-
- spec/vcr/
|
268
|
-
- spec/vcr/
|
269
|
-
- spec/vcr/
|
270
|
-
- spec/vcr/
|
271
|
-
- spec/vcr/
|
272
|
-
- spec/vcr/
|
273
|
-
- spec/vcr/
|
274
|
-
- spec/vcr/
|
248
|
+
- spec/unit/coupon_spec.rb
|
249
|
+
- spec/unit/credit_spec.rb
|
250
|
+
- spec/unit/plan_spec.rb
|
251
|
+
- spec/unit/subscription_spec.rb
|
252
|
+
- spec/unit/transaction_spec.rb
|
253
|
+
- spec/unit/transparent_spec.rb
|
254
|
+
- spec/vcr/account/accept-language-account/1297746103.yml
|
255
|
+
- spec/vcr/account/close/1297746103.yml
|
256
|
+
- spec/vcr/account/create/1297746103.yml
|
257
|
+
- spec/vcr/account/create-blank/1297746103.yml
|
258
|
+
- spec/vcr/account/create-duplicate/1297746103.yml
|
259
|
+
- spec/vcr/account/create-min/1297746103.yml
|
260
|
+
- spec/vcr/account/find/1297746103.yml
|
261
|
+
- spec/vcr/account/list/1297746103.yml
|
262
|
+
- spec/vcr/account/update/1297746103.yml
|
263
|
+
- spec/vcr/billing/create/1298594128.yml
|
264
|
+
- spec/vcr/billing/destroy/1298594128.yml
|
265
|
+
- spec/vcr/billing/find/1298594128.yml
|
266
|
+
- spec/vcr/billing/update/1298594128.yml
|
267
|
+
- spec/vcr/charge/create/1297746103.yml
|
268
|
+
- spec/vcr/charge/delete-uninvoiced/1297746103.yml
|
269
|
+
- spec/vcr/charge/list-all/1297746103.yml
|
270
|
+
- spec/vcr/charge/list-invoiced/1297746103.yml
|
271
|
+
- spec/vcr/charge/list-pending/1297746103.yml
|
272
|
+
- spec/vcr/charge/lookup/1297746103.yml
|
273
|
+
- spec/vcr/coupon/create/1299714521.yml
|
274
|
+
- spec/vcr/coupon/destroy/1299714521.yml
|
275
|
+
- spec/vcr/credit/create/1299714599.yml
|
276
|
+
- spec/vcr/credit/delete/1299714599.yml
|
277
|
+
- spec/vcr/credit/list/1299714599.yml
|
278
|
+
- spec/vcr/credit/lookup/1299714599.yml
|
279
|
+
- spec/vcr/invoice/create/1297746103.yml
|
280
|
+
- spec/vcr/invoice/create-no-charges/1297746103.yml
|
281
|
+
- spec/vcr/invoice/list/1297746103.yml
|
282
|
+
- spec/vcr/invoice/lookup/1297746103.yml
|
275
283
|
- spec/vcr/plan/all.yml
|
276
|
-
- spec/vcr/plan/delete/1296674173.yml
|
277
284
|
- spec/vcr/plan/find.yml
|
278
285
|
- spec/vcr/plan/update.yml
|
279
|
-
- spec/vcr/subscription/addons/add/
|
280
|
-
- spec/vcr/subscription/addons/create/
|
281
|
-
- spec/vcr/subscription/addons/remove/
|
282
|
-
- spec/vcr/subscription/cancel/
|
283
|
-
- spec/vcr/subscription/cancel-with-code/
|
284
|
-
- spec/vcr/subscription/change1/
|
285
|
-
- spec/vcr/subscription/change2/
|
286
|
-
- spec/vcr/subscription/create/
|
287
|
-
- spec/vcr/subscription/find/
|
288
|
-
- spec/vcr/subscription/reactivate/
|
289
|
-
- spec/vcr/subscription/refund-full/
|
290
|
-
- spec/vcr/subscription/refund-none/
|
291
|
-
- spec/vcr/subscription/refund-partial/
|
292
|
-
- spec/vcr/transaction/all/
|
293
|
-
- spec/vcr/transaction/create-no-account/
|
294
|
-
- spec/vcr/transaction/create-with-account/
|
295
|
-
- spec/vcr/transaction/list-filled/
|
296
|
-
- spec/vcr/transaction/list-initial/
|
297
|
-
- spec/vcr/transaction/lookup/
|
298
|
-
- spec/vcr/transaction/refund/
|
299
|
-
- spec/vcr/transaction/void/
|
286
|
+
- spec/vcr/subscription/addons/add/1297746103.yml
|
287
|
+
- spec/vcr/subscription/addons/create/1297746103.yml
|
288
|
+
- spec/vcr/subscription/addons/remove/1297746103.yml
|
289
|
+
- spec/vcr/subscription/cancel/1297746103.yml
|
290
|
+
- spec/vcr/subscription/cancel-with-code/1297746103.yml
|
291
|
+
- spec/vcr/subscription/change1/1297746103.yml
|
292
|
+
- spec/vcr/subscription/change2/1297746103.yml
|
293
|
+
- spec/vcr/subscription/create/1297746103.yml
|
294
|
+
- spec/vcr/subscription/find/1297746103.yml
|
295
|
+
- spec/vcr/subscription/reactivate/1297746103.yml
|
296
|
+
- spec/vcr/subscription/refund-full/1297746103.yml
|
297
|
+
- spec/vcr/subscription/refund-none/1297746103.yml
|
298
|
+
- spec/vcr/subscription/refund-partial/1297746103.yml
|
299
|
+
- spec/vcr/transaction/all/1297746103.yml
|
300
|
+
- spec/vcr/transaction/create-no-account/1297746103.yml
|
301
|
+
- spec/vcr/transaction/create-with-account/1297746103.yml
|
302
|
+
- spec/vcr/transaction/list-filled/1297746103.yml
|
303
|
+
- spec/vcr/transaction/list-initial/1297746103.yml
|
304
|
+
- spec/vcr/transaction/lookup/1297746103.yml
|
305
|
+
- spec/vcr/transaction/refund/1297746103.yml
|
306
|
+
- spec/vcr/transaction/void/1297746103.yml
|