redbooth-ruby 0.0.5 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +0 -1
- data/README.md +187 -115
- data/lib/redbooth-ruby/client.rb +6 -39
- data/lib/redbooth-ruby/client_operations/perform.rb +93 -0
- data/lib/redbooth-ruby/file.rb +8 -0
- data/lib/redbooth-ruby/helpers.rb +32 -0
- data/lib/redbooth-ruby/operations/base.rb +3 -2
- data/lib/redbooth-ruby/request/collection.rb +3 -2
- data/lib/redbooth-ruby/request/connection.rb +66 -30
- data/lib/redbooth-ruby/request/helpers.rb +2 -2
- data/lib/redbooth-ruby/request/info.rb +1 -1
- data/lib/redbooth-ruby/request/validator.rb +2 -2
- data/lib/redbooth-ruby/session.rb +34 -11
- data/lib/redbooth-ruby/task_list.rb +28 -0
- data/lib/redbooth-ruby/version.rb +2 -2
- data/lib/redbooth-ruby.rb +6 -3
- data/spec/cassettes/RedboothRuby_File/_download/downloads_a_file.yml +354 -0
- data/spec/cassettes/RedboothRuby_Organization/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_organization.yml +4 -4
- data/spec/cassettes/RedboothRuby_Project/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_project.yml +110 -110
- data/spec/cassettes/RedboothRuby_Session/_refresh_access_token_/.yml +55 -0
- data/spec/cassettes/RedboothRuby_Session/_refresh_access_token_/call_on_token_refresh_with_the_old_and_new_token.yml +55 -0
- data/spec/cassettes/RedboothRuby_Session/_refresh_access_token_/refreshes_the_access_token.yml +55 -0
- data/spec/redbooth-ruby/base_spec.rb +5 -5
- data/spec/redbooth-ruby/client_operations/metadata_spec.rb +4 -4
- data/spec/redbooth-ruby/client_operations/perform_spec.rb +135 -0
- data/spec/redbooth-ruby/client_operations/search_spec.rb +4 -4
- data/spec/redbooth-ruby/client_spec.rb +2 -43
- data/spec/redbooth-ruby/comment_spec.rb +17 -18
- data/spec/redbooth-ruby/conversation_spec.rb +16 -16
- data/spec/redbooth-ruby/file_spec.rb +29 -22
- data/spec/redbooth-ruby/me_spec.rb +2 -2
- data/spec/redbooth-ruby/membership_spec.rb +18 -18
- data/spec/redbooth-ruby/note_spec.rb +16 -16
- data/spec/redbooth-ruby/organization_spec.rb +16 -16
- data/spec/redbooth-ruby/person_spec.rb +18 -18
- data/spec/redbooth-ruby/project_spec.rb +18 -18
- data/spec/redbooth-ruby/request/base_spec.rb +5 -5
- data/spec/redbooth-ruby/request/collection_spec.rb +3 -3
- data/spec/redbooth-ruby/request/connection_spec.rb +8 -8
- data/spec/redbooth-ruby/request/info_spec.rb +13 -13
- data/spec/redbooth-ruby/request/response_spec.rb +4 -4
- data/spec/redbooth-ruby/request/validator_spec.rb +7 -7
- data/spec/redbooth-ruby/session_spec.rb +100 -0
- data/spec/redbooth-ruby/subtaks_spec.rb +16 -16
- data/spec/redbooth-ruby/task_spec.rb +22 -22
- data/spec/redbooth-ruby/user_spec.rb +4 -4
- data/spec/redbooth_spec.rb +13 -13
- data/spec/spec_helper.rb +2 -3
- data/temp/spec/files/test_download.txt +8 -0
- metadata +41 -24
@@ -0,0 +1,354 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/api/3/files
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "-------------RubyMultipartPost\r\nContent-Disposition: form-data; name=\"project_id\"\r\n\r\n2\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
9
|
+
form-data; name=\"backend\"\r\n\r\nredbooth\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
10
|
+
form-data; name=\"asset\"\r\n\r\n#<File:0x007fcab99c71e8>\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
11
|
+
form-data; name=\"asset_attrs\"\r\n\r\n{:name=>\"hola.txt\", :local_path=>\"/Users/andresbravog/Documents/ProyectosTeambox/teambox/SRC/redbooth-ruby/spec/redbooth-ruby/../fixtures/hola.txt\"}\r\n-------------RubyMultipartPost\r\nContent-Disposition:
|
12
|
+
form-data; name=\"asset\"; filename=\"hola.txt\"\r\nContent-Length: 905\r\nContent-Type:
|
13
|
+
application/octet-stream\r\nContent-Transfer-Encoding: binary\r\n\r\nloremp
|
14
|
+
ipsum dolor loremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum
|
15
|
+
dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp
|
16
|
+
ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum
|
17
|
+
dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp
|
18
|
+
ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum
|
19
|
+
dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp
|
20
|
+
ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum
|
21
|
+
dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp
|
22
|
+
ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum
|
23
|
+
dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp
|
24
|
+
ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum
|
25
|
+
dolor...\n\r\n-------------RubyMultipartPost--\r\n\r\n"
|
26
|
+
headers:
|
27
|
+
Accept-Encoding:
|
28
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
29
|
+
Accept:
|
30
|
+
- '*/*'
|
31
|
+
User-Agent:
|
32
|
+
- Ruby
|
33
|
+
Content-Type:
|
34
|
+
- multipart/form-data; boundary=-----------RubyMultipartPost
|
35
|
+
Content-Length:
|
36
|
+
- '1662'
|
37
|
+
Authorization:
|
38
|
+
- Bearer _frank_access_token_
|
39
|
+
response:
|
40
|
+
status:
|
41
|
+
code: 201
|
42
|
+
message: Created
|
43
|
+
headers:
|
44
|
+
Content-Type:
|
45
|
+
- text/plain; charset=utf-8
|
46
|
+
X-Ua-Compatible:
|
47
|
+
- IE=Edge,chrome=1
|
48
|
+
Etag:
|
49
|
+
- '"20eb73199895c0b6f5e40450be2af20c"'
|
50
|
+
Cache-Control:
|
51
|
+
- max-age=0, private, must-revalidate
|
52
|
+
X-Request-Id:
|
53
|
+
- 54efa9e031d6266478a3a2fd195beffe
|
54
|
+
X-Runtime:
|
55
|
+
- '20.086156'
|
56
|
+
Connection:
|
57
|
+
- close
|
58
|
+
Server:
|
59
|
+
- thin 1.6.1 codename Death Proof
|
60
|
+
body:
|
61
|
+
encoding: UTF-8
|
62
|
+
string: '{"created_at":1416911282,"updated_at":1416911300,"id":16,"name":"hola.txt","backend":"box","project_id":2,"parent_id":null,"backend_id":"23286166070","is_dir":false,"is_downloadable":true,"is_previewable":true,"is_private":false,"mime_type":"application/octet-stream","public_token":null,"pinned":false,"size":905,"user_id":1,"can_be_moved":false,"can_be_deleted":false,"type":"file"}'
|
63
|
+
http_version:
|
64
|
+
recorded_at: Tue, 25 Nov 2014 10:28:20 GMT
|
65
|
+
- request:
|
66
|
+
method: get
|
67
|
+
uri: http://localhost:3000/api/3/files/16/download
|
68
|
+
body:
|
69
|
+
encoding: US-ASCII
|
70
|
+
string: ''
|
71
|
+
headers:
|
72
|
+
User-Agent:
|
73
|
+
- Faraday v0.9.0
|
74
|
+
Authorization:
|
75
|
+
- Bearer _frank_access_token_
|
76
|
+
Accept-Encoding:
|
77
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
78
|
+
Accept:
|
79
|
+
- '*/*'
|
80
|
+
response:
|
81
|
+
status:
|
82
|
+
code: 404
|
83
|
+
message: Not Found
|
84
|
+
headers:
|
85
|
+
Content-Type:
|
86
|
+
- text/html; charset=utf-8
|
87
|
+
Content-Length:
|
88
|
+
- '783'
|
89
|
+
X-Request-Id:
|
90
|
+
- 17250f5166417e443b384121680bb405
|
91
|
+
X-Runtime:
|
92
|
+
- '0.217100'
|
93
|
+
Connection:
|
94
|
+
- keep-alive
|
95
|
+
Server:
|
96
|
+
- thin 1.6.1 codename Death Proof
|
97
|
+
body:
|
98
|
+
encoding: UTF-8
|
99
|
+
string: |
|
100
|
+
<!DOCTYPE html>
|
101
|
+
<html lang="en">
|
102
|
+
<head>
|
103
|
+
<meta charset="utf-8" />
|
104
|
+
<title>Action Controller: Exception caught</title>
|
105
|
+
<style>
|
106
|
+
body { background-color: #fff; color: #333; }
|
107
|
+
|
108
|
+
body, p, ol, ul, td {
|
109
|
+
font-family: helvetica, verdana, arial, sans-serif;
|
110
|
+
font-size: 13px;
|
111
|
+
line-height: 18px;
|
112
|
+
}
|
113
|
+
|
114
|
+
pre {
|
115
|
+
background-color: #eee;
|
116
|
+
padding: 10px;
|
117
|
+
font-size: 11px;
|
118
|
+
white-space: pre-wrap;
|
119
|
+
}
|
120
|
+
|
121
|
+
a { color: #000; }
|
122
|
+
a:visited { color: #666; }
|
123
|
+
a:hover { color: #fff; background-color:#000; }
|
124
|
+
</style>
|
125
|
+
</head>
|
126
|
+
<body>
|
127
|
+
|
128
|
+
<h1>Routing Error</h1>
|
129
|
+
<p><pre>No route matches [GET] "/api/3/files/16/download"</pre></p>
|
130
|
+
<p>
|
131
|
+
Try running <code>rake routes</code> for more information on available routes.
|
132
|
+
</p>
|
133
|
+
|
134
|
+
</body>
|
135
|
+
</html>
|
136
|
+
http_version:
|
137
|
+
recorded_at: Tue, 25 Nov 2014 10:41:57 GMT
|
138
|
+
- request:
|
139
|
+
method: get
|
140
|
+
uri: http://localhost:3000/api/3/files/16/download/original/hola.txt
|
141
|
+
body:
|
142
|
+
encoding: US-ASCII
|
143
|
+
string: ''
|
144
|
+
headers:
|
145
|
+
User-Agent:
|
146
|
+
- Faraday v0.9.0
|
147
|
+
Authorization:
|
148
|
+
- Bearer _frank_access_token_
|
149
|
+
Accept-Encoding:
|
150
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
151
|
+
Accept:
|
152
|
+
- '*/*'
|
153
|
+
response:
|
154
|
+
status:
|
155
|
+
code: 302
|
156
|
+
message: Moved Temporarily
|
157
|
+
headers:
|
158
|
+
Location:
|
159
|
+
- https://redbooth.box.com/shared/static/hdpm34gh418i4m7p7l38.txt
|
160
|
+
Content-Type:
|
161
|
+
- text/html; charset=utf-8
|
162
|
+
X-Ua-Compatible:
|
163
|
+
- IE=Edge,chrome=1
|
164
|
+
Cache-Control:
|
165
|
+
- no-cache
|
166
|
+
X-Request-Id:
|
167
|
+
- 3b51720fba9580b5413904a2b40fa75c
|
168
|
+
X-Runtime:
|
169
|
+
- '5.182095'
|
170
|
+
Connection:
|
171
|
+
- close
|
172
|
+
Server:
|
173
|
+
- thin 1.6.1 codename Death Proof
|
174
|
+
body:
|
175
|
+
encoding: UTF-8
|
176
|
+
string: <html><body>You are being <a href="https://redbooth.box.com/shared/static/hdpm34gh418i4m7p7l38.txt">redirected</a>.</body></html>
|
177
|
+
http_version:
|
178
|
+
recorded_at: Tue, 25 Nov 2014 10:44:49 GMT
|
179
|
+
- request:
|
180
|
+
method: get
|
181
|
+
uri: https://redbooth.box.com/shared/static/hdpm34gh418i4m7p7l38.txt
|
182
|
+
body:
|
183
|
+
encoding: US-ASCII
|
184
|
+
string: ''
|
185
|
+
headers:
|
186
|
+
User-Agent:
|
187
|
+
- Faraday v0.9.0
|
188
|
+
Authorization:
|
189
|
+
- Bearer _frank_access_token_
|
190
|
+
Accept-Encoding:
|
191
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
192
|
+
Accept:
|
193
|
+
- '*/*'
|
194
|
+
response:
|
195
|
+
status:
|
196
|
+
code: 302
|
197
|
+
message: Found
|
198
|
+
headers:
|
199
|
+
Server:
|
200
|
+
- nginx
|
201
|
+
Date:
|
202
|
+
- Tue, 25 Nov 2014 10:44:49 GMT
|
203
|
+
Content-Type:
|
204
|
+
- text/html; charset=UTF-8
|
205
|
+
Content-Length:
|
206
|
+
- '0'
|
207
|
+
Connection:
|
208
|
+
- keep-alive
|
209
|
+
Location:
|
210
|
+
- https://redbooth.app.box.com/shared/static/hdpm34gh418i4m7p7l38.txt
|
211
|
+
body:
|
212
|
+
encoding: UTF-8
|
213
|
+
string: ''
|
214
|
+
http_version:
|
215
|
+
recorded_at: Tue, 25 Nov 2014 10:44:50 GMT
|
216
|
+
- request:
|
217
|
+
method: get
|
218
|
+
uri: https://redbooth.app.box.com/shared/static/hdpm34gh418i4m7p7l38.txt
|
219
|
+
body:
|
220
|
+
encoding: US-ASCII
|
221
|
+
string: ''
|
222
|
+
headers:
|
223
|
+
User-Agent:
|
224
|
+
- Faraday v0.9.0
|
225
|
+
Authorization:
|
226
|
+
- Bearer _frank_access_token_
|
227
|
+
Accept-Encoding:
|
228
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
229
|
+
Accept:
|
230
|
+
- '*/*'
|
231
|
+
response:
|
232
|
+
status:
|
233
|
+
code: 302
|
234
|
+
message: Found
|
235
|
+
headers:
|
236
|
+
Server:
|
237
|
+
- nginx
|
238
|
+
Date:
|
239
|
+
- Tue, 25 Nov 2014 10:44:51 GMT
|
240
|
+
Content-Type:
|
241
|
+
- text/html; charset=utf-8
|
242
|
+
Content-Length:
|
243
|
+
- '3'
|
244
|
+
Connection:
|
245
|
+
- keep-alive
|
246
|
+
Cache-Control:
|
247
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
248
|
+
X-Robots-Tag:
|
249
|
+
- noindex, nofollow
|
250
|
+
Set-Cookie:
|
251
|
+
- box_visitor_id=54745da2ed8ae1.54343070; expires=Wed, 25-Nov-2015 10:44:50
|
252
|
+
GMT; path=/; domain=.box.com
|
253
|
+
- bv=OPS-38213; expires=Tue, 02-Dec-2014 10:44:50 GMT; path=/; domain=.box.com
|
254
|
+
- cn=98; expires=Tue, 02-Dec-2014 10:44:50 GMT; path=/; domain=.box.com
|
255
|
+
- presentation=desktop; path=/; domain=.box.com
|
256
|
+
- z=bjhisfqtatgu340cp1q3qd9u25; path=/; domain=.box.com; secure; HttpOnly
|
257
|
+
Expires:
|
258
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
259
|
+
Pragma:
|
260
|
+
- no-cache
|
261
|
+
Location:
|
262
|
+
- https://dl.boxcloud.com/bc/4/d6d3c577c09d0b0cb9935b4dbf3846e1/OFQg04bVEb41G6h_zPNUgFhVsHj5D61c4YNVqpi2Zoac1El7vGprLuW4P1FvK0cMYEJ0jgbvVZ8fNsvwfdLc3NySlFYPmvgOHyn_Mv_3qLqCCuE1jYti1kVrn77sXOXSbCV4IE3SUgXnU_RwCNMfhFOlRxdF38C3DSHkC9uhaPY6_XnUFUjt0RqQPY_Rx86dWFJXxZ96Qry4wVaHt531I3vCxPENgdpNbK9u4J_ZFNb5hWpKpcI0A0medR91pekCgJXAxFhGZUu3vLBUpSmlYNc9m2oxflB1Ctnsyy6KTUgN4EN3sVNicH30uZ0pZkuTs0VSG8gwWfjPzM-4x8JTVvt_8GYUyG4TzzXX9dDDU55uKWvFTpEKjsI8ZUxte8b-BapYTN1yFm7kCltqrdwYvEKUN6_LiANq8PO58mB_5dp6n0EueJVWlROhIDGAWzXCDVvS4Y8t-DiBZpW35jgDCCVFbLxynF6mhonnUEHXqjPHoi4NCw_bLzMKqKTgRs_HWohkmtB0ZIwEfreFJpzm-nQBPKcSq4WRMIRPQqTe3zVNnxzSLgl8B56EqLks9Xk4iAqqVpfo8dt-YZaMtvTzCckDhPOCLQ6OgrWhRgNnsxnmdu1S5dgJEFglgUgWeVFRHzEfJscvej0qtqpDPLEamtR_PGL1xHDEA_8I3f-QnAaxNdu8Bkm7Phl8cobIBVnDncUrFB4Ee5vCxmVeSBbRRqN6ibZcepGOJVpQMJu2PdgIbd6J9x_LMBfDkWBidTVWq7Q2e6whiMOu2l8NoWGsoU2y-_EoYRqFTT71BORtlym45z7UfVGWfPBfe6d0sqkMjDhv9tvO1duQg_HHkR_Eyb4WFDtS-Q7uoSEM0LrdneA7bpJ0rQ7rcnfH0jeXwzdhiLRFRzGfVw217cVm7xBa1yPFZ58SbGYNEaaBA6qaIqVz2ZcDOY_2Utap-RvcM4iiOXl6JvZxrAL4qdcPVXLKbauDmKP3kIEA3mvhl5gEAeO71HFZzWzmjvRbzibFE081XjODx9DzT_Aw4lAN4Nn9sI3BhJC1hDRkruNJceGNzYFzpErRLMygDiT7qwyS1sMdyduTpiIy3tI30aDg8ORrY_xz6uJ2Gs9vdcVnLQqlBck3LC-VpKGACpndobyopA3laX_XXToY3-LTp6upegXlSq0g28Yf/
|
263
|
+
body:
|
264
|
+
encoding: UTF-8
|
265
|
+
string: '905'
|
266
|
+
http_version:
|
267
|
+
recorded_at: Tue, 25 Nov 2014 10:44:52 GMT
|
268
|
+
- request:
|
269
|
+
method: get
|
270
|
+
uri: https://dl.boxcloud.com/bc/4/d6d3c577c09d0b0cb9935b4dbf3846e1/OFQg04bVEb41G6h_zPNUgFhVsHj5D61c4YNVqpi2Zoac1El7vGprLuW4P1FvK0cMYEJ0jgbvVZ8fNsvwfdLc3NySlFYPmvgOHyn_Mv_3qLqCCuE1jYti1kVrn77sXOXSbCV4IE3SUgXnU_RwCNMfhFOlRxdF38C3DSHkC9uhaPY6_XnUFUjt0RqQPY_Rx86dWFJXxZ96Qry4wVaHt531I3vCxPENgdpNbK9u4J_ZFNb5hWpKpcI0A0medR91pekCgJXAxFhGZUu3vLBUpSmlYNc9m2oxflB1Ctnsyy6KTUgN4EN3sVNicH30uZ0pZkuTs0VSG8gwWfjPzM-4x8JTVvt_8GYUyG4TzzXX9dDDU55uKWvFTpEKjsI8ZUxte8b-BapYTN1yFm7kCltqrdwYvEKUN6_LiANq8PO58mB_5dp6n0EueJVWlROhIDGAWzXCDVvS4Y8t-DiBZpW35jgDCCVFbLxynF6mhonnUEHXqjPHoi4NCw_bLzMKqKTgRs_HWohkmtB0ZIwEfreFJpzm-nQBPKcSq4WRMIRPQqTe3zVNnxzSLgl8B56EqLks9Xk4iAqqVpfo8dt-YZaMtvTzCckDhPOCLQ6OgrWhRgNnsxnmdu1S5dgJEFglgUgWeVFRHzEfJscvej0qtqpDPLEamtR_PGL1xHDEA_8I3f-QnAaxNdu8Bkm7Phl8cobIBVnDncUrFB4Ee5vCxmVeSBbRRqN6ibZcepGOJVpQMJu2PdgIbd6J9x_LMBfDkWBidTVWq7Q2e6whiMOu2l8NoWGsoU2y-_EoYRqFTT71BORtlym45z7UfVGWfPBfe6d0sqkMjDhv9tvO1duQg_HHkR_Eyb4WFDtS-Q7uoSEM0LrdneA7bpJ0rQ7rcnfH0jeXwzdhiLRFRzGfVw217cVm7xBa1yPFZ58SbGYNEaaBA6qaIqVz2ZcDOY_2Utap-RvcM4iiOXl6JvZxrAL4qdcPVXLKbauDmKP3kIEA3mvhl5gEAeO71HFZzWzmjvRbzibFE081XjODx9DzT_Aw4lAN4Nn9sI3BhJC1hDRkruNJceGNzYFzpErRLMygDiT7qwyS1sMdyduTpiIy3tI30aDg8ORrY_xz6uJ2Gs9vdcVnLQqlBck3LC-VpKGACpndobyopA3laX_XXToY3-LTp6upegXlSq0g28Yf/
|
271
|
+
body:
|
272
|
+
encoding: US-ASCII
|
273
|
+
string: ''
|
274
|
+
headers:
|
275
|
+
User-Agent:
|
276
|
+
- Faraday v0.9.0
|
277
|
+
Authorization:
|
278
|
+
- Bearer _frank_access_token_
|
279
|
+
Accept-Encoding:
|
280
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
281
|
+
Accept:
|
282
|
+
- '*/*'
|
283
|
+
response:
|
284
|
+
status:
|
285
|
+
code: 200
|
286
|
+
message: OK
|
287
|
+
headers:
|
288
|
+
Server:
|
289
|
+
- ATS
|
290
|
+
Date:
|
291
|
+
- Tue, 25 Nov 2014 10:44:52 GMT
|
292
|
+
Content-Type:
|
293
|
+
- text/plain; charset=UTF-8
|
294
|
+
Content-Length:
|
295
|
+
- '905'
|
296
|
+
Cache-Control:
|
297
|
+
- private
|
298
|
+
Accept-Ranges:
|
299
|
+
- bytes
|
300
|
+
- bytes
|
301
|
+
Content-Disposition:
|
302
|
+
- attachment;filename="hola.txt";filename*=UTF-8''hola.txt
|
303
|
+
X-Content-Type-Options:
|
304
|
+
- nosniff
|
305
|
+
X-Robots-Tag:
|
306
|
+
- noindex, nofollow
|
307
|
+
Age:
|
308
|
+
- '0'
|
309
|
+
Connection:
|
310
|
+
- keep-alive
|
311
|
+
body:
|
312
|
+
encoding: UTF-8
|
313
|
+
string: |
|
314
|
+
loremp ipsum dolor loremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolorloremp ipsum dolor...
|
315
|
+
http_version:
|
316
|
+
recorded_at: Tue, 25 Nov 2014 10:44:53 GMT
|
317
|
+
- request:
|
318
|
+
method: get
|
319
|
+
uri: http://redbooth.box.com:443/shared/static/hdpm34gh418i4m7p7l38.txt
|
320
|
+
body:
|
321
|
+
encoding: US-ASCII
|
322
|
+
string: ''
|
323
|
+
headers:
|
324
|
+
Accept-Encoding:
|
325
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
326
|
+
Accept:
|
327
|
+
- '*/*'
|
328
|
+
User-Agent:
|
329
|
+
- Ruby
|
330
|
+
Host:
|
331
|
+
- redbooth.box.com
|
332
|
+
response:
|
333
|
+
status:
|
334
|
+
code: 400
|
335
|
+
message: Bad Request
|
336
|
+
headers:
|
337
|
+
Server:
|
338
|
+
- nginx
|
339
|
+
Date:
|
340
|
+
- Thu, 27 Nov 2014 08:35:06 GMT
|
341
|
+
Content-Type:
|
342
|
+
- text/html
|
343
|
+
Content-Length:
|
344
|
+
- '264'
|
345
|
+
Connection:
|
346
|
+
- close
|
347
|
+
body:
|
348
|
+
encoding: UTF-8
|
349
|
+
string: "<html>\r\n<head><title>400 The plain HTTP request was sent to HTTPS
|
350
|
+
port</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>400 Bad Request</h1></center>\r\n<center>The
|
351
|
+
plain HTTP request was sent to HTTPS port</center>\r\n<hr><center>nginx</center>\r\n</body>\r\n</html>\r\n"
|
352
|
+
http_version:
|
353
|
+
recorded_at: Thu, 27 Nov 2014 08:35:06 GMT
|
354
|
+
recorded_with: VCR 2.9.3
|
@@ -42,7 +42,7 @@ http_interactions:
|
|
42
42
|
encoding: UTF-8
|
43
43
|
string: '{"type":"Organization","created_at":1415197273,"updated_at":1415197273,"id":12,"name":"new
|
44
44
|
Organization","permalink":"new-organization-fx0qk","domain":null,"settings":{"allow_comment_deletion":true},"omit_email_processing":false,"product":"50-seats-trial","product_name":"trial","feature_level":"freeu","subscription_id":12,"seats":50,"remaining_users":49,"available_users":50,"used_users":1,"remaining_projects":999998,"available_projects":999999,"used_projects":1,"metadata":{},"square_logo_url":"/images/logos/square/missing.png","top_logo_url":"/images/logos/top/missing.png","has_logo":false,"is_pro":true,"description":null}'
|
45
|
-
http_version:
|
45
|
+
http_version:
|
46
46
|
recorded_at: Wed, 05 Nov 2014 14:21:19 GMT
|
47
47
|
- request:
|
48
48
|
method: delete
|
@@ -80,8 +80,8 @@ http_interactions:
|
|
80
80
|
- thin 1.6.1 codename Death Proof
|
81
81
|
body:
|
82
82
|
encoding: UTF-8
|
83
|
-
string: '{"status":"Enqueued","process_token":"/api/3/organizations/12action=destroy\u0026controller=api_v3%2Forganizations\u0026id=12","retry_after":
|
84
|
-
http_version:
|
83
|
+
string: '{"status":"Enqueued","process_token":"/api/3/organizations/12action=destroy\u0026controller=api_v3%2Forganizations\u0026id=12","retry_after":0}'
|
84
|
+
http_version:
|
85
85
|
recorded_at: Wed, 05 Nov 2014 14:21:49 GMT
|
86
86
|
- request:
|
87
87
|
method: delete
|
@@ -118,6 +118,6 @@ http_interactions:
|
|
118
118
|
body:
|
119
119
|
encoding: UTF-8
|
120
120
|
string: ''
|
121
|
-
http_version:
|
121
|
+
http_version:
|
122
122
|
recorded_at: Wed, 05 Nov 2014 14:36:02 GMT
|
123
123
|
recorded_with: VCR 2.9.3
|