recurly 0.4.1 → 0.4.2
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/lib/recurly/transparent.rb +1 -1
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/transparent_spec.rb +25 -0
- data/spec/vcr/transparent/post-url/1300475927.yml +41 -0
- data/spec/vcr/transparent/post-url/1300475952.yml +41 -0
- data/spec/vcr/transparent/post-url/1300476034.yml +125 -0
- data/spec/vcr/transparent/post-url/1300476053.yml +125 -0
- data/spec/vcr/transparent/post-url/1300476102.yml +125 -0
- data/spec/vcr/transparent/post-url/1300476126.yml +125 -0
- metadata +16 -2
data/lib/recurly/transparent.rb
CHANGED
@@ -74,7 +74,7 @@ module Recurly
|
|
74
74
|
# default action to create new subscription
|
75
75
|
action ||= Action::CreateSubscription
|
76
76
|
|
77
|
-
"#{Recurly::Base.site}/transparent/#{Recurly.subdomain}/#{action}"
|
77
|
+
URI.parse("#{Recurly::Base.site}/").merge("/transparent/#{Recurly.subdomain}/#{action}").to_s
|
78
78
|
end
|
79
79
|
|
80
80
|
def self.create_subscription_url
|
data/lib/recurly/version.rb
CHANGED
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Recurly
|
4
|
+
describe Transparent do
|
5
|
+
# version accounts based on this current files modification dates
|
6
|
+
timestamp = File.mtime(__FILE__).to_i
|
7
|
+
|
8
|
+
describe ".url" do
|
9
|
+
use_vcr_cassette "transparent/post-url/#{timestamp}"
|
10
|
+
|
11
|
+
it "should not change after calling account.find()" do
|
12
|
+
|
13
|
+
original_transparent_url = "#{Recurly::Base.site}/transparent/#{Recurly.subdomain}/subscription"
|
14
|
+
Transparent.url.should == original_transparent_url
|
15
|
+
|
16
|
+
account_code = "account-get-#{timestamp}"
|
17
|
+
Factory.create_account("account-get-#{timestamp}")
|
18
|
+
r = Account.find("account-get-#{timestamp}")
|
19
|
+
|
20
|
+
Transparent.url.should == original_transparent_url
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/does_not_matter.xml
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
authorization:
|
9
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
10
|
+
accept:
|
11
|
+
- application/xml
|
12
|
+
accept-encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
user-agent:
|
15
|
+
- Ruby
|
16
|
+
connection:
|
17
|
+
- close
|
18
|
+
response: !ruby/struct:VCR::Response
|
19
|
+
status: !ruby/struct:VCR::ResponseStatus
|
20
|
+
code: 404
|
21
|
+
message: Not Found
|
22
|
+
headers:
|
23
|
+
cache-control:
|
24
|
+
- no-cache
|
25
|
+
content-type:
|
26
|
+
- application/xml; charset=utf-8
|
27
|
+
content-length:
|
28
|
+
- "93"
|
29
|
+
set-cookie:
|
30
|
+
- _recurly_session=d58abd47a91900d4e20bfd45afcec51b; domain=.recurly.local; path=/; HttpOnly
|
31
|
+
connection:
|
32
|
+
- close
|
33
|
+
server:
|
34
|
+
- thin 1.2.7 codename No Hup
|
35
|
+
body: |
|
36
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
37
|
+
<errors>
|
38
|
+
<error>Account not found</error>
|
39
|
+
</errors>
|
40
|
+
|
41
|
+
http_version: "1.1"
|
@@ -0,0 +1,41 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/does_not_matter.xml
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
authorization:
|
9
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
10
|
+
accept:
|
11
|
+
- application/xml
|
12
|
+
accept-encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
user-agent:
|
15
|
+
- Ruby
|
16
|
+
connection:
|
17
|
+
- close
|
18
|
+
response: !ruby/struct:VCR::Response
|
19
|
+
status: !ruby/struct:VCR::ResponseStatus
|
20
|
+
code: 404
|
21
|
+
message: Not Found
|
22
|
+
headers:
|
23
|
+
cache-control:
|
24
|
+
- no-cache
|
25
|
+
content-type:
|
26
|
+
- application/xml; charset=utf-8
|
27
|
+
content-length:
|
28
|
+
- "93"
|
29
|
+
set-cookie:
|
30
|
+
- _recurly_session=a32b6e7eba33f88777d2738033206ebe; domain=.recurly.local; path=/; HttpOnly
|
31
|
+
connection:
|
32
|
+
- close
|
33
|
+
server:
|
34
|
+
- thin 1.2.7 codename No Hup
|
35
|
+
body: |
|
36
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
37
|
+
<errors>
|
38
|
+
<error>Account not found</error>
|
39
|
+
</errors>
|
40
|
+
|
41
|
+
http_version: "1.1"
|
@@ -0,0 +1,125 @@
|
|
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>account-get-1300476034</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/account-get-1300476034
|
41
|
+
x-runtime:
|
42
|
+
- "353"
|
43
|
+
content-type:
|
44
|
+
- application/xml; charset=utf-8
|
45
|
+
content-length:
|
46
|
+
- "577"
|
47
|
+
set-cookie:
|
48
|
+
- _recurly_session=0485e54e4b29343ce1ab3c33a7eed7dc; domain=.recurly.local; path=/; HttpOnly
|
49
|
+
connection:
|
50
|
+
- close
|
51
|
+
server:
|
52
|
+
- thin 1.2.7 codename No Hup
|
53
|
+
body: |
|
54
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
55
|
+
<account>
|
56
|
+
<id>account-get-1300476034</id>
|
57
|
+
<account_code>account-get-1300476034</account_code>
|
58
|
+
<username></username>
|
59
|
+
<email>verena@test.com</email>
|
60
|
+
<first_name>Verena</first_name>
|
61
|
+
<last_name>Test</last_name>
|
62
|
+
<company_name>Recurly Ruby Gem</company_name>
|
63
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
64
|
+
<closed type="boolean">false</closed>
|
65
|
+
<hosted_login_token>cc4cabf53d3947c1844d6cb79d1fbff8</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-03-18T19:20:39Z</created_at>
|
67
|
+
<state>active</state>
|
68
|
+
</account>
|
69
|
+
|
70
|
+
http_version: "1.1"
|
71
|
+
- !ruby/struct:VCR::HTTPInteraction
|
72
|
+
request: !ruby/struct:VCR::Request
|
73
|
+
method: :get
|
74
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-get-1300476034.xml
|
75
|
+
body:
|
76
|
+
headers:
|
77
|
+
authorization:
|
78
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
79
|
+
accept:
|
80
|
+
- application/xml
|
81
|
+
accept-encoding:
|
82
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
83
|
+
user-agent:
|
84
|
+
- Ruby
|
85
|
+
connection:
|
86
|
+
- close
|
87
|
+
response: !ruby/struct:VCR::Response
|
88
|
+
status: !ruby/struct:VCR::ResponseStatus
|
89
|
+
code: 200
|
90
|
+
message: OK
|
91
|
+
headers:
|
92
|
+
x-runtime:
|
93
|
+
- "337"
|
94
|
+
content-type:
|
95
|
+
- application/xml; charset=utf-8
|
96
|
+
etag:
|
97
|
+
- "\"a97886d594b55c3882fcf3097bb23ec0\""
|
98
|
+
cache-control:
|
99
|
+
- private, max-age=0, must-revalidate
|
100
|
+
content-length:
|
101
|
+
- "577"
|
102
|
+
set-cookie:
|
103
|
+
- _recurly_session=23b4569fe55068346259026c8e0c2998; domain=.recurly.local; path=/; HttpOnly
|
104
|
+
connection:
|
105
|
+
- close
|
106
|
+
server:
|
107
|
+
- thin 1.2.7 codename No Hup
|
108
|
+
body: |
|
109
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
110
|
+
<account>
|
111
|
+
<id>account-get-1300476034</id>
|
112
|
+
<account_code>account-get-1300476034</account_code>
|
113
|
+
<username></username>
|
114
|
+
<email>verena@test.com</email>
|
115
|
+
<first_name>Verena</first_name>
|
116
|
+
<last_name>Test</last_name>
|
117
|
+
<company_name>Recurly Ruby Gem</company_name>
|
118
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
119
|
+
<closed type="boolean">false</closed>
|
120
|
+
<hosted_login_token>cc4cabf53d3947c1844d6cb79d1fbff8</hosted_login_token>
|
121
|
+
<created_at type="datetime">2011-03-18T19:20:39Z</created_at>
|
122
|
+
<state>active</state>
|
123
|
+
</account>
|
124
|
+
|
125
|
+
http_version: "1.1"
|
@@ -0,0 +1,125 @@
|
|
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>account-get-1300476053</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/account-get-1300476053
|
41
|
+
x-runtime:
|
42
|
+
- "354"
|
43
|
+
content-type:
|
44
|
+
- application/xml; charset=utf-8
|
45
|
+
content-length:
|
46
|
+
- "577"
|
47
|
+
set-cookie:
|
48
|
+
- _recurly_session=82bc57a3c5f2a5d7a5a98402c21484cd; domain=.recurly.local; path=/; HttpOnly
|
49
|
+
connection:
|
50
|
+
- close
|
51
|
+
server:
|
52
|
+
- thin 1.2.7 codename No Hup
|
53
|
+
body: |
|
54
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
55
|
+
<account>
|
56
|
+
<id>account-get-1300476053</id>
|
57
|
+
<account_code>account-get-1300476053</account_code>
|
58
|
+
<username></username>
|
59
|
+
<email>verena@test.com</email>
|
60
|
+
<first_name>Verena</first_name>
|
61
|
+
<last_name>Test</last_name>
|
62
|
+
<company_name>Recurly Ruby Gem</company_name>
|
63
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
64
|
+
<closed type="boolean">false</closed>
|
65
|
+
<hosted_login_token>979d0f1b3c7240a68e2323ca21dd5712</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-03-18T19:20:58Z</created_at>
|
67
|
+
<state>active</state>
|
68
|
+
</account>
|
69
|
+
|
70
|
+
http_version: "1.1"
|
71
|
+
- !ruby/struct:VCR::HTTPInteraction
|
72
|
+
request: !ruby/struct:VCR::Request
|
73
|
+
method: :get
|
74
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-get-1300476053.xml
|
75
|
+
body:
|
76
|
+
headers:
|
77
|
+
authorization:
|
78
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
79
|
+
accept:
|
80
|
+
- application/xml
|
81
|
+
accept-encoding:
|
82
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
83
|
+
user-agent:
|
84
|
+
- Ruby
|
85
|
+
connection:
|
86
|
+
- close
|
87
|
+
response: !ruby/struct:VCR::Response
|
88
|
+
status: !ruby/struct:VCR::ResponseStatus
|
89
|
+
code: 200
|
90
|
+
message: OK
|
91
|
+
headers:
|
92
|
+
x-runtime:
|
93
|
+
- "98"
|
94
|
+
content-type:
|
95
|
+
- application/xml; charset=utf-8
|
96
|
+
etag:
|
97
|
+
- "\"8b5043e4863801d358363f49049b644e\""
|
98
|
+
cache-control:
|
99
|
+
- private, max-age=0, must-revalidate
|
100
|
+
content-length:
|
101
|
+
- "577"
|
102
|
+
set-cookie:
|
103
|
+
- _recurly_session=8513611cd7da61410dee8f703009b5b1; domain=.recurly.local; path=/; HttpOnly
|
104
|
+
connection:
|
105
|
+
- close
|
106
|
+
server:
|
107
|
+
- thin 1.2.7 codename No Hup
|
108
|
+
body: |
|
109
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
110
|
+
<account>
|
111
|
+
<id>account-get-1300476053</id>
|
112
|
+
<account_code>account-get-1300476053</account_code>
|
113
|
+
<username></username>
|
114
|
+
<email>verena@test.com</email>
|
115
|
+
<first_name>Verena</first_name>
|
116
|
+
<last_name>Test</last_name>
|
117
|
+
<company_name>Recurly Ruby Gem</company_name>
|
118
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
119
|
+
<closed type="boolean">false</closed>
|
120
|
+
<hosted_login_token>979d0f1b3c7240a68e2323ca21dd5712</hosted_login_token>
|
121
|
+
<created_at type="datetime">2011-03-18T19:20:58Z</created_at>
|
122
|
+
<state>active</state>
|
123
|
+
</account>
|
124
|
+
|
125
|
+
http_version: "1.1"
|
@@ -0,0 +1,125 @@
|
|
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>account-get-1300476102</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/account-get-1300476102
|
41
|
+
x-runtime:
|
42
|
+
- "362"
|
43
|
+
content-type:
|
44
|
+
- application/xml; charset=utf-8
|
45
|
+
content-length:
|
46
|
+
- "577"
|
47
|
+
set-cookie:
|
48
|
+
- _recurly_session=761f26093c3a4de74d0f844be6a22c8e; domain=.recurly.local; path=/; HttpOnly
|
49
|
+
connection:
|
50
|
+
- close
|
51
|
+
server:
|
52
|
+
- thin 1.2.7 codename No Hup
|
53
|
+
body: |
|
54
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
55
|
+
<account>
|
56
|
+
<id>account-get-1300476102</id>
|
57
|
+
<account_code>account-get-1300476102</account_code>
|
58
|
+
<username></username>
|
59
|
+
<email>verena@test.com</email>
|
60
|
+
<first_name>Verena</first_name>
|
61
|
+
<last_name>Test</last_name>
|
62
|
+
<company_name>Recurly Ruby Gem</company_name>
|
63
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
64
|
+
<closed type="boolean">false</closed>
|
65
|
+
<hosted_login_token>bb1557ebff444ecf85eebd58cb16a9c2</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-03-18T19:21:48Z</created_at>
|
67
|
+
<state>active</state>
|
68
|
+
</account>
|
69
|
+
|
70
|
+
http_version: "1.1"
|
71
|
+
- !ruby/struct:VCR::HTTPInteraction
|
72
|
+
request: !ruby/struct:VCR::Request
|
73
|
+
method: :get
|
74
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-get-1300476102.xml
|
75
|
+
body:
|
76
|
+
headers:
|
77
|
+
authorization:
|
78
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
79
|
+
accept:
|
80
|
+
- application/xml
|
81
|
+
accept-encoding:
|
82
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
83
|
+
user-agent:
|
84
|
+
- Ruby
|
85
|
+
connection:
|
86
|
+
- close
|
87
|
+
response: !ruby/struct:VCR::Response
|
88
|
+
status: !ruby/struct:VCR::ResponseStatus
|
89
|
+
code: 200
|
90
|
+
message: OK
|
91
|
+
headers:
|
92
|
+
x-runtime:
|
93
|
+
- "355"
|
94
|
+
content-type:
|
95
|
+
- application/xml; charset=utf-8
|
96
|
+
etag:
|
97
|
+
- "\"2bec698f9467c311f95eefcfbf8688bf\""
|
98
|
+
cache-control:
|
99
|
+
- private, max-age=0, must-revalidate
|
100
|
+
content-length:
|
101
|
+
- "577"
|
102
|
+
set-cookie:
|
103
|
+
- _recurly_session=88af5d6a159da4a7bbaf7f38e3489402; domain=.recurly.local; path=/; HttpOnly
|
104
|
+
connection:
|
105
|
+
- close
|
106
|
+
server:
|
107
|
+
- thin 1.2.7 codename No Hup
|
108
|
+
body: |
|
109
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
110
|
+
<account>
|
111
|
+
<id>account-get-1300476102</id>
|
112
|
+
<account_code>account-get-1300476102</account_code>
|
113
|
+
<username></username>
|
114
|
+
<email>verena@test.com</email>
|
115
|
+
<first_name>Verena</first_name>
|
116
|
+
<last_name>Test</last_name>
|
117
|
+
<company_name>Recurly Ruby Gem</company_name>
|
118
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
119
|
+
<closed type="boolean">false</closed>
|
120
|
+
<hosted_login_token>bb1557ebff444ecf85eebd58cb16a9c2</hosted_login_token>
|
121
|
+
<created_at type="datetime">2011-03-18T19:21:48Z</created_at>
|
122
|
+
<state>active</state>
|
123
|
+
</account>
|
124
|
+
|
125
|
+
http_version: "1.1"
|
@@ -0,0 +1,125 @@
|
|
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>account-get-1300476126</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/account-get-1300476126
|
41
|
+
x-runtime:
|
42
|
+
- "359"
|
43
|
+
content-type:
|
44
|
+
- application/xml; charset=utf-8
|
45
|
+
content-length:
|
46
|
+
- "577"
|
47
|
+
set-cookie:
|
48
|
+
- _recurly_session=c7557d52a2c2a726e0ed9175f5d68c92; domain=.recurly.local; path=/; HttpOnly
|
49
|
+
connection:
|
50
|
+
- close
|
51
|
+
server:
|
52
|
+
- thin 1.2.7 codename No Hup
|
53
|
+
body: |
|
54
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
55
|
+
<account>
|
56
|
+
<id>account-get-1300476126</id>
|
57
|
+
<account_code>account-get-1300476126</account_code>
|
58
|
+
<username></username>
|
59
|
+
<email>verena@test.com</email>
|
60
|
+
<first_name>Verena</first_name>
|
61
|
+
<last_name>Test</last_name>
|
62
|
+
<company_name>Recurly Ruby Gem</company_name>
|
63
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
64
|
+
<closed type="boolean">false</closed>
|
65
|
+
<hosted_login_token>2dc346a9e4b8494ca581429748814af2</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-03-18T19:34:32Z</created_at>
|
67
|
+
<state>active</state>
|
68
|
+
</account>
|
69
|
+
|
70
|
+
http_version: "1.1"
|
71
|
+
- !ruby/struct:VCR::HTTPInteraction
|
72
|
+
request: !ruby/struct:VCR::Request
|
73
|
+
method: :get
|
74
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-get-1300476126.xml
|
75
|
+
body:
|
76
|
+
headers:
|
77
|
+
authorization:
|
78
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
79
|
+
accept:
|
80
|
+
- application/xml
|
81
|
+
accept-encoding:
|
82
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
83
|
+
user-agent:
|
84
|
+
- Ruby
|
85
|
+
connection:
|
86
|
+
- close
|
87
|
+
response: !ruby/struct:VCR::Response
|
88
|
+
status: !ruby/struct:VCR::ResponseStatus
|
89
|
+
code: 200
|
90
|
+
message: OK
|
91
|
+
headers:
|
92
|
+
x-runtime:
|
93
|
+
- "339"
|
94
|
+
content-type:
|
95
|
+
- application/xml; charset=utf-8
|
96
|
+
etag:
|
97
|
+
- "\"419407323353e568bb7a2f74b4d98825\""
|
98
|
+
cache-control:
|
99
|
+
- private, max-age=0, must-revalidate
|
100
|
+
content-length:
|
101
|
+
- "577"
|
102
|
+
set-cookie:
|
103
|
+
- _recurly_session=d882e12bc23cf2b43dcd3ca1b0961017; domain=.recurly.local; path=/; HttpOnly
|
104
|
+
connection:
|
105
|
+
- close
|
106
|
+
server:
|
107
|
+
- thin 1.2.7 codename No Hup
|
108
|
+
body: |
|
109
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
110
|
+
<account>
|
111
|
+
<id>account-get-1300476126</id>
|
112
|
+
<account_code>account-get-1300476126</account_code>
|
113
|
+
<username></username>
|
114
|
+
<email>verena@test.com</email>
|
115
|
+
<first_name>Verena</first_name>
|
116
|
+
<last_name>Test</last_name>
|
117
|
+
<company_name>Recurly Ruby Gem</company_name>
|
118
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
119
|
+
<closed type="boolean">false</closed>
|
120
|
+
<hosted_login_token>2dc346a9e4b8494ca581429748814af2</hosted_login_token>
|
121
|
+
<created_at type="datetime">2011-03-18T19:34:32Z</created_at>
|
122
|
+
<state>active</state>
|
123
|
+
</account>
|
124
|
+
|
125
|
+
http_version: "1.1"
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: recurly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.4.
|
5
|
+
version: 0.4.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Isaac Hall
|
@@ -128,6 +128,7 @@ files:
|
|
128
128
|
- spec/integration/plan_spec.rb
|
129
129
|
- spec/integration/subscription_spec.rb
|
130
130
|
- spec/integration/transaction_spec.rb
|
131
|
+
- spec/integration/transparent_spec.rb
|
131
132
|
- spec/spec_helper.rb
|
132
133
|
- spec/support/factory.rb
|
133
134
|
- spec/support/vcr.rb
|
@@ -194,6 +195,12 @@ files:
|
|
194
195
|
- spec/vcr/transaction/lookup/1300473500.yml
|
195
196
|
- spec/vcr/transaction/refund/1300473500.yml
|
196
197
|
- spec/vcr/transaction/void/1300473500.yml
|
198
|
+
- spec/vcr/transparent/post-url/1300475927.yml
|
199
|
+
- spec/vcr/transparent/post-url/1300475952.yml
|
200
|
+
- spec/vcr/transparent/post-url/1300476034.yml
|
201
|
+
- spec/vcr/transparent/post-url/1300476053.yml
|
202
|
+
- spec/vcr/transparent/post-url/1300476102.yml
|
203
|
+
- spec/vcr/transparent/post-url/1300476126.yml
|
197
204
|
has_rdoc: true
|
198
205
|
homepage: http://github.com/recurly/recurly-client-ruby
|
199
206
|
licenses: []
|
@@ -208,7 +215,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
208
215
|
requirements:
|
209
216
|
- - ">="
|
210
217
|
- !ruby/object:Gem::Version
|
211
|
-
hash:
|
218
|
+
hash: 2851027536393714576
|
212
219
|
segments:
|
213
220
|
- 0
|
214
221
|
version: "0"
|
@@ -239,6 +246,7 @@ test_files:
|
|
239
246
|
- spec/integration/plan_spec.rb
|
240
247
|
- spec/integration/subscription_spec.rb
|
241
248
|
- spec/integration/transaction_spec.rb
|
249
|
+
- spec/integration/transparent_spec.rb
|
242
250
|
- spec/spec_helper.rb
|
243
251
|
- spec/support/factory.rb
|
244
252
|
- spec/support/vcr.rb
|
@@ -305,3 +313,9 @@ test_files:
|
|
305
313
|
- spec/vcr/transaction/lookup/1300473500.yml
|
306
314
|
- spec/vcr/transaction/refund/1300473500.yml
|
307
315
|
- spec/vcr/transaction/void/1300473500.yml
|
316
|
+
- spec/vcr/transparent/post-url/1300475927.yml
|
317
|
+
- spec/vcr/transparent/post-url/1300475952.yml
|
318
|
+
- spec/vcr/transparent/post-url/1300476034.yml
|
319
|
+
- spec/vcr/transparent/post-url/1300476053.yml
|
320
|
+
- spec/vcr/transparent/post-url/1300476102.yml
|
321
|
+
- spec/vcr/transparent/post-url/1300476126.yml
|