cloudapp 2.0.0.beta.4 → 2.0.0.beta.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. data/Gemfile.lock +12 -19
  2. data/README.md +60 -6
  3. data/Rakefile +1 -19
  4. data/bin/cloudapp +48 -0
  5. data/cloudapp.gemspec +11 -42
  6. data/lib/cloudapp/authorized.rb +14 -0
  7. data/lib/cloudapp/collection_json.rb +86 -3
  8. data/lib/cloudapp/credentials.rb +115 -0
  9. data/lib/cloudapp/service.rb +43 -146
  10. data/lib/cloudapp.rb +1 -3
  11. data/man/cloudapp.1 +100 -0
  12. data/man/cloudapp.1.html +157 -0
  13. data/man/cloudapp.1.ronn +56 -0
  14. metadata +24 -69
  15. data/CHANGELOG.md +0 -34
  16. data/lib/cloudapp/authorized_representation.rb +0 -17
  17. data/lib/cloudapp/collection_json/item.rb +0 -20
  18. data/lib/cloudapp/collection_json/representation.rb +0 -74
  19. data/lib/cloudapp/collection_json/template.rb +0 -17
  20. data/lib/cloudapp/collection_json/tint.rb +0 -11
  21. data/lib/cloudapp/drop.rb +0 -37
  22. data/lib/cloudapp/drop_collection.rb +0 -37
  23. data/spec/cassettes/account_token.yml +0 -88
  24. data/spec/cassettes/create_bookmark.yml +0 -132
  25. data/spec/cassettes/create_bookmark_with_name.yml +0 -133
  26. data/spec/cassettes/create_bookmark_with_privacy.yml +0 -133
  27. data/spec/cassettes/list_drops.yml +0 -87
  28. data/spec/cassettes/list_drops_with_bad_token.yml +0 -45
  29. data/spec/cassettes/list_drops_with_filter.yml +0 -129
  30. data/spec/cassettes/list_drops_with_limit.yml +0 -129
  31. data/spec/cassettes/purge_drops.yml +0 -466
  32. data/spec/cassettes/setup_drops.yml +0 -620
  33. data/spec/cassettes/token_for_account.yml +0 -88
  34. data/spec/cassettes/token_for_account_with_bad_credentials.yml +0 -86
  35. data/spec/cassettes/upload_file.yml +0 -276
  36. data/spec/cassettes/upload_file_with_name.yml +0 -278
  37. data/spec/cassettes/upload_file_with_privacy.yml +0 -277
  38. data/spec/cassettes/view_drop.yml +0 -45
  39. data/spec/cloudapp/authorized_representation_spec.rb +0 -32
  40. data/spec/cloudapp/collection_json/item_spec.rb +0 -45
  41. data/spec/cloudapp/collection_json/representation_spec.rb +0 -118
  42. data/spec/cloudapp/collection_json/template_spec.rb +0 -53
  43. data/spec/cloudapp/drop_collection_spec.rb +0 -127
  44. data/spec/cloudapp/drop_spec.rb +0 -142
  45. data/spec/cloudapp/service_spec.rb +0 -335
  46. data/spec/helper.rb +0 -8
  47. data/spec/integration_spec.rb +0 -68
  48. data/spec/support/files/favicon.ico +0 -0
  49. data/spec/support/stub_class_or_module.rb +0 -22
  50. data/spec/support/vcr.rb +0 -24
@@ -1,133 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.getcloudapp.com/
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Authorization:
11
- - Token token="abc123"
12
- Accept:
13
- - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
14
- text/plain
15
- Accept-Encoding:
16
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
17
- User-Agent:
18
- - Ruby
19
- response:
20
- status:
21
- code: 200
22
- message: OK
23
- headers:
24
- Cache-Control:
25
- - max-age=0, private, must-revalidate
26
- Content-Type:
27
- - application/vnd.collection+json; charset=utf-8
28
- Etag:
29
- - ! '"44e8e003e0f1b5e38f7ca916ff4497d7"'
30
- Server:
31
- - thin 1.4.1 codename Chromeo
32
- X-Runtime:
33
- - '0.006436'
34
- X-Ua-Compatible:
35
- - IE=Edge,chrome=1
36
- Transfer-Encoding:
37
- - chunked
38
- Connection:
39
- - keep-alive
40
- body:
41
- encoding: US-ASCII
42
- string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/","links":[{"rel":"drops","href":"https://api.getcloudapp.com/drops"}]}}'
43
- http_version:
44
- recorded_at: Fri, 24 Aug 2012 20:43:34 GMT
45
- - request:
46
- method: get
47
- uri: https://api.getcloudapp.com/drops
48
- body:
49
- encoding: US-ASCII
50
- string: ''
51
- headers:
52
- Authorization:
53
- - Token token="abc123"
54
- Accept:
55
- - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
56
- text/plain
57
- Accept-Encoding:
58
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
59
- User-Agent:
60
- - Ruby
61
- response:
62
- status:
63
- code: 200
64
- message: OK
65
- headers:
66
- Cache-Control:
67
- - max-age=0, private, must-revalidate
68
- Content-Type:
69
- - application/vnd.collection+json; charset=utf-8
70
- Etag:
71
- - ! '"013cffe728bc872f1a0431fb19d65003"'
72
- Server:
73
- - thin 1.4.1 codename Chromeo
74
- X-Runtime:
75
- - '0.074716'
76
- X-Ua-Compatible:
77
- - IE=Edge,chrome=1
78
- Transfer-Encoding:
79
- - chunked
80
- Connection:
81
- - keep-alive
82
- body:
83
- encoding: US-ASCII
84
- string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/drops","links":[{"rel":"drops-stream","href":"https://api.getcloudapp.com/drops/stream"}],"queries":[{"href":"https://api.getcloudapp.com/drops","rel":"drops-list","data":[{"name":"filter","value":"active"},{"name":"limit","value":20}]}],"template":{"data":[{"name":"name","value":null},{"name":"private","value":true},{"name":"trash","value":false},{"name":"bookmark_url","value":null},{"name":"file_size","value":null}]},"items":[{"href":"https://api.getcloudapp.com/drops/21399186","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/182Y3i0P0h03"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21399186},{"name":"name","value":"http://getcloudapp.com"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-08-24T20:43:34Z"}]},{"href":"https://api.getcloudapp.com/drops/21399180","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/IzhX"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21399180},{"name":"name","value":"http://cl.ly"},{"name":"private","value":false},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-08-24T20:43:24Z"}]},{"href":"https://api.getcloudapp.com/drops/21399179","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/image/2D0r2k0z2u2E"},{"rel":"icon","href":"https://thumbs.getcloudapp.com/2D0r2k0z2u2E"},{"rel":"embed","href":"http://cl.ly/image/2D0r2k0z2u2E/favicon.ico"},{"rel":"download","href":"http://cl.ly/image/2D0r2k0z2u2E/download/favicon.ico"}],"data":[{"name":"id","value":21399179},{"name":"name","value":"favicon.ico"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-08-24T20:43:22Z"}]}]}}'
85
- http_version:
86
- recorded_at: Fri, 24 Aug 2012 20:43:34 GMT
87
- - request:
88
- method: post
89
- uri: https://api.getcloudapp.com/drops
90
- body:
91
- encoding: UTF-8
92
- string: ! '{"name":"New Bookmark","private":true,"trash":false,"bookmark_url":"http://getcloudapp.com","file_size":null}'
93
- headers:
94
- Authorization:
95
- - Token token="abc123"
96
- Content-Type:
97
- - application/json
98
- Accept:
99
- - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
100
- text/plain
101
- User-Agent:
102
- - Ruby
103
- response:
104
- status:
105
- code: 201
106
- message: Created
107
- headers:
108
- Cache-Control:
109
- - max-age=0, private, must-revalidate
110
- Content-Type:
111
- - application/vnd.collection+json; charset=utf-8
112
- Etag:
113
- - ! '"03fee90f046ef45f7c19b37c7649c38e"'
114
- Server:
115
- - thin 1.4.1 codename Chromeo
116
- Set-Cookie:
117
- - _engine_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTI5NjZmNzVmYzExMTUxMjY5NmRhMjllOTEwOTJmNTg1BjsAVA%3D%3D--4d0253ce889e80c7204d51737d1b75c2eb5edfaf;
118
- path=/; HttpOnly
119
- X-Runtime:
120
- - '0.095421'
121
- X-Ua-Compatible:
122
- - IE=Edge,chrome=1
123
- Transfer-Encoding:
124
- - chunked
125
- Connection:
126
- - keep-alive
127
- body:
128
- encoding: US-ASCII
129
- string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/drops","links":[{"rel":"drops-stream","href":"https://api.getcloudapp.com/drops/stream"}],"queries":[{"href":"https://api.getcloudapp.com/drops","rel":"drops-list","data":[{"name":"filter","value":"active"},{"name":"limit","value":20}]}],"template":{"data":[{"name":"name","value":null},{"name":"private","value":true},{"name":"trash","value":false},{"name":"bookmark_url","value":null},{"name":"file_size","value":null}]},"items":[{"href":"https://api.getcloudapp.com/drops/21399188","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/030W2b2b3g3i"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21399188},{"name":"name","value":"New
130
- Bookmark"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-08-24T20:43:35Z"}]}]}}'
131
- http_version:
132
- recorded_at: Fri, 24 Aug 2012 20:43:35 GMT
133
- recorded_with: VCR 2.0.1
@@ -1,133 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.getcloudapp.com/
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Authorization:
11
- - Token token="abc123"
12
- Accept:
13
- - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
14
- text/plain
15
- Accept-Encoding:
16
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
17
- User-Agent:
18
- - Ruby
19
- response:
20
- status:
21
- code: 200
22
- message: OK
23
- headers:
24
- Cache-Control:
25
- - max-age=0, private, must-revalidate
26
- Content-Type:
27
- - application/vnd.collection+json; charset=utf-8
28
- Etag:
29
- - ! '"44e8e003e0f1b5e38f7ca916ff4497d7"'
30
- Server:
31
- - thin 1.4.1 codename Chromeo
32
- X-Runtime:
33
- - '0.009585'
34
- X-Ua-Compatible:
35
- - IE=Edge,chrome=1
36
- Transfer-Encoding:
37
- - chunked
38
- Connection:
39
- - keep-alive
40
- body:
41
- encoding: US-ASCII
42
- string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/","links":[{"rel":"drops","href":"https://api.getcloudapp.com/drops"}]}}'
43
- http_version:
44
- recorded_at: Fri, 24 Aug 2012 20:43:35 GMT
45
- - request:
46
- method: get
47
- uri: https://api.getcloudapp.com/drops
48
- body:
49
- encoding: US-ASCII
50
- string: ''
51
- headers:
52
- Authorization:
53
- - Token token="abc123"
54
- Accept:
55
- - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
56
- text/plain
57
- Accept-Encoding:
58
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
59
- User-Agent:
60
- - Ruby
61
- response:
62
- status:
63
- code: 200
64
- message: OK
65
- headers:
66
- Cache-Control:
67
- - max-age=0, private, must-revalidate
68
- Content-Type:
69
- - application/vnd.collection+json; charset=utf-8
70
- Etag:
71
- - ! '"72f88b9cc640000de02a5c0b73a4f31f"'
72
- Server:
73
- - thin 1.4.1 codename Chromeo
74
- X-Runtime:
75
- - '0.022748'
76
- X-Ua-Compatible:
77
- - IE=Edge,chrome=1
78
- Transfer-Encoding:
79
- - chunked
80
- Connection:
81
- - keep-alive
82
- body:
83
- encoding: US-ASCII
84
- string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/drops","links":[{"rel":"drops-stream","href":"https://api.getcloudapp.com/drops/stream"}],"queries":[{"href":"https://api.getcloudapp.com/drops","rel":"drops-list","data":[{"name":"filter","value":"active"},{"name":"limit","value":20}]}],"template":{"data":[{"name":"name","value":null},{"name":"private","value":true},{"name":"trash","value":false},{"name":"bookmark_url","value":null},{"name":"file_size","value":null}]},"items":[{"href":"https://api.getcloudapp.com/drops/21399188","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/030W2b2b3g3i"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21399188},{"name":"name","value":"New
85
- Bookmark"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-08-24T20:43:35Z"}]},{"href":"https://api.getcloudapp.com/drops/21399186","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/182Y3i0P0h03"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21399186},{"name":"name","value":"http://getcloudapp.com"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-08-24T20:43:34Z"}]},{"href":"https://api.getcloudapp.com/drops/21399180","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/IzhX"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21399180},{"name":"name","value":"http://cl.ly"},{"name":"private","value":false},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-08-24T20:43:24Z"}]},{"href":"https://api.getcloudapp.com/drops/21399179","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/image/2D0r2k0z2u2E"},{"rel":"icon","href":"https://thumbs.getcloudapp.com/2D0r2k0z2u2E"},{"rel":"embed","href":"http://cl.ly/image/2D0r2k0z2u2E/favicon.ico"},{"rel":"download","href":"http://cl.ly/image/2D0r2k0z2u2E/download/favicon.ico"}],"data":[{"name":"id","value":21399179},{"name":"name","value":"favicon.ico"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-08-24T20:43:22Z"}]}]}}'
86
- http_version:
87
- recorded_at: Fri, 24 Aug 2012 20:43:35 GMT
88
- - request:
89
- method: post
90
- uri: https://api.getcloudapp.com/drops
91
- body:
92
- encoding: UTF-8
93
- string: ! '{"name":null,"private":false,"trash":false,"bookmark_url":"http://getcloudapp.com","file_size":null}'
94
- headers:
95
- Authorization:
96
- - Token token="abc123"
97
- Content-Type:
98
- - application/json
99
- Accept:
100
- - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
101
- text/plain
102
- User-Agent:
103
- - Ruby
104
- response:
105
- status:
106
- code: 201
107
- message: Created
108
- headers:
109
- Cache-Control:
110
- - max-age=0, private, must-revalidate
111
- Content-Type:
112
- - application/vnd.collection+json; charset=utf-8
113
- Etag:
114
- - ! '"cc158ee38e8c42fb41dde955af679561"'
115
- Server:
116
- - thin 1.4.1 codename Chromeo
117
- Set-Cookie:
118
- - _engine_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTQ3ZTA4ZTg5NzgyYTY3NGIyMjFhNjkwZTQ3NmFiZjEwBjsAVA%3D%3D--c07d7b4428abdf4ba1f60652aea798baec879f08;
119
- path=/; HttpOnly
120
- X-Runtime:
121
- - '0.082569'
122
- X-Ua-Compatible:
123
- - IE=Edge,chrome=1
124
- Transfer-Encoding:
125
- - chunked
126
- Connection:
127
- - keep-alive
128
- body:
129
- encoding: US-ASCII
130
- string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/drops","links":[{"rel":"drops-stream","href":"https://api.getcloudapp.com/drops/stream"}],"queries":[{"href":"https://api.getcloudapp.com/drops","rel":"drops-list","data":[{"name":"filter","value":"active"},{"name":"limit","value":20}]}],"template":{"data":[{"name":"name","value":null},{"name":"private","value":true},{"name":"trash","value":false},{"name":"bookmark_url","value":null},{"name":"file_size","value":null}]},"items":[{"href":"https://api.getcloudapp.com/drops/21399189","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/IylG"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21399189},{"name":"name","value":"http://getcloudapp.com"},{"name":"private","value":false},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-08-24T20:43:36Z"}]}]}}'
131
- http_version:
132
- recorded_at: Fri, 24 Aug 2012 20:43:36 GMT
133
- recorded_with: VCR 2.0.1
@@ -1,87 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.getcloudapp.com/
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Authorization:
11
- - Token token="abc123"
12
- Accept:
13
- - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
14
- text/plain
15
- Accept-Encoding:
16
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
17
- User-Agent:
18
- - Ruby
19
- response:
20
- status:
21
- code: 200
22
- message: OK
23
- headers:
24
- Cache-Control:
25
- - max-age=0, private, must-revalidate
26
- Content-Type:
27
- - application/vnd.collection+json; charset=utf-8
28
- Etag:
29
- - ! '"44e8e003e0f1b5e38f7ca916ff4497d7"'
30
- Server:
31
- - thin 1.4.1 codename Chromeo
32
- X-Runtime:
33
- - '0.005933'
34
- X-Ua-Compatible:
35
- - IE=Edge,chrome=1
36
- Content-Length:
37
- - '139'
38
- Connection:
39
- - keep-alive
40
- body:
41
- encoding: US-ASCII
42
- string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/","links":[{"rel":"drops","href":"https://api.getcloudapp.com/drops"}]}}'
43
- http_version:
44
- recorded_at: Fri, 24 Aug 2012 20:43:27 GMT
45
- - request:
46
- method: get
47
- uri: https://api.getcloudapp.com/drops
48
- body:
49
- encoding: US-ASCII
50
- string: ''
51
- headers:
52
- Authorization:
53
- - Token token="abc123"
54
- Accept:
55
- - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
56
- text/plain
57
- Accept-Encoding:
58
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
59
- User-Agent:
60
- - Ruby
61
- response:
62
- status:
63
- code: 200
64
- message: OK
65
- headers:
66
- Cache-Control:
67
- - max-age=0, private, must-revalidate
68
- Content-Type:
69
- - application/vnd.collection+json; charset=utf-8
70
- Etag:
71
- - ! '"47b61ccba7fbae8a22e1be29f6eb50b8"'
72
- Server:
73
- - thin 1.4.1 codename Chromeo
74
- X-Runtime:
75
- - '0.023859'
76
- X-Ua-Compatible:
77
- - IE=Edge,chrome=1
78
- Transfer-Encoding:
79
- - chunked
80
- Connection:
81
- - keep-alive
82
- body:
83
- encoding: US-ASCII
84
- string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/drops","links":[{"rel":"drops-stream","href":"https://api.getcloudapp.com/drops/stream"}],"queries":[{"href":"https://api.getcloudapp.com/drops","rel":"drops-list","data":[{"name":"filter","value":"active"},{"name":"limit","value":20}]}],"template":{"data":[{"name":"name","value":null},{"name":"private","value":true},{"name":"trash","value":false},{"name":"bookmark_url","value":null},{"name":"file_size","value":null}]},"items":[{"href":"https://api.getcloudapp.com/drops/21399180","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/IzhX"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21399180},{"name":"name","value":"http://cl.ly"},{"name":"private","value":false},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-08-24T20:43:24Z"}]},{"href":"https://api.getcloudapp.com/drops/21399179","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/image/2D0r2k0z2u2E"},{"rel":"icon","href":"https://thumbs.getcloudapp.com/2D0r2k0z2u2E"},{"rel":"embed","href":"http://cl.ly/image/2D0r2k0z2u2E/favicon.ico"},{"rel":"download","href":"http://cl.ly/image/2D0r2k0z2u2E/download/favicon.ico"}],"data":[{"name":"id","value":21399179},{"name":"name","value":"favicon.ico"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-08-24T20:43:22Z"}]}]}}'
85
- http_version:
86
- recorded_at: Fri, 24 Aug 2012 20:43:28 GMT
87
- recorded_with: VCR 2.0.1
@@ -1,45 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.getcloudapp.com/
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Authorization:
11
- - Token token="wrong"
12
- Accept:
13
- - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
14
- text/plain
15
- Accept-Encoding:
16
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
17
- User-Agent:
18
- - Ruby
19
- response:
20
- status:
21
- code: 401
22
- message: Unauthorized
23
- headers:
24
- Cache-Control:
25
- - no-cache
26
- Content-Type:
27
- - application/vnd.collection+json; charset=utf-8
28
- Server:
29
- - thin 1.4.1 codename Chromeo
30
- Www-Authenticate:
31
- - Token realm="CloudApp"
32
- X-Runtime:
33
- - '0.006805'
34
- X-Ua-Compatible:
35
- - IE=Edge,chrome=1
36
- Transfer-Encoding:
37
- - chunked
38
- Connection:
39
- - keep-alive
40
- body:
41
- encoding: US-ASCII
42
- string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/account/token","links":[{"rel":"root","href":"https://api.getcloudapp.com/"}],"template":{"data":[{"name":"email","value":null},{"name":"password","value":null}]}}}'
43
- http_version:
44
- recorded_at: Fri, 24 Aug 2012 20:43:32 GMT
45
- recorded_with: VCR 2.0.1
@@ -1,129 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.getcloudapp.com/
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Authorization:
11
- - Token token="abc123"
12
- Accept:
13
- - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
14
- text/plain
15
- Accept-Encoding:
16
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
17
- User-Agent:
18
- - Ruby
19
- response:
20
- status:
21
- code: 200
22
- message: OK
23
- headers:
24
- Cache-Control:
25
- - max-age=0, private, must-revalidate
26
- Content-Type:
27
- - application/vnd.collection+json; charset=utf-8
28
- Etag:
29
- - ! '"44e8e003e0f1b5e38f7ca916ff4497d7"'
30
- Server:
31
- - thin 1.4.1 codename Chromeo
32
- X-Runtime:
33
- - '0.006095'
34
- X-Ua-Compatible:
35
- - IE=Edge,chrome=1
36
- Transfer-Encoding:
37
- - chunked
38
- Connection:
39
- - keep-alive
40
- body:
41
- encoding: US-ASCII
42
- string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/","links":[{"rel":"drops","href":"https://api.getcloudapp.com/drops"}]}}'
43
- http_version:
44
- recorded_at: Fri, 24 Aug 2012 20:43:30 GMT
45
- - request:
46
- method: get
47
- uri: https://api.getcloudapp.com/drops
48
- body:
49
- encoding: US-ASCII
50
- string: ''
51
- headers:
52
- Authorization:
53
- - Token token="abc123"
54
- Accept:
55
- - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
56
- text/plain
57
- Accept-Encoding:
58
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
59
- User-Agent:
60
- - Ruby
61
- response:
62
- status:
63
- code: 200
64
- message: OK
65
- headers:
66
- Cache-Control:
67
- - max-age=0, private, must-revalidate
68
- Content-Type:
69
- - application/vnd.collection+json; charset=utf-8
70
- Etag:
71
- - ! '"47b61ccba7fbae8a22e1be29f6eb50b8"'
72
- Server:
73
- - thin 1.4.1 codename Chromeo
74
- X-Runtime:
75
- - '0.022515'
76
- X-Ua-Compatible:
77
- - IE=Edge,chrome=1
78
- Transfer-Encoding:
79
- - chunked
80
- Connection:
81
- - keep-alive
82
- body:
83
- encoding: US-ASCII
84
- string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/drops","links":[{"rel":"drops-stream","href":"https://api.getcloudapp.com/drops/stream"}],"queries":[{"href":"https://api.getcloudapp.com/drops","rel":"drops-list","data":[{"name":"filter","value":"active"},{"name":"limit","value":20}]}],"template":{"data":[{"name":"name","value":null},{"name":"private","value":true},{"name":"trash","value":false},{"name":"bookmark_url","value":null},{"name":"file_size","value":null}]},"items":[{"href":"https://api.getcloudapp.com/drops/21399180","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/IzhX"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21399180},{"name":"name","value":"http://cl.ly"},{"name":"private","value":false},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-08-24T20:43:24Z"}]},{"href":"https://api.getcloudapp.com/drops/21399179","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/image/2D0r2k0z2u2E"},{"rel":"icon","href":"https://thumbs.getcloudapp.com/2D0r2k0z2u2E"},{"rel":"embed","href":"http://cl.ly/image/2D0r2k0z2u2E/favicon.ico"},{"rel":"download","href":"http://cl.ly/image/2D0r2k0z2u2E/download/favicon.ico"}],"data":[{"name":"id","value":21399179},{"name":"name","value":"favicon.ico"},{"name":"private","value":true},{"name":"trash","value":false},{"name":"views","value":0},{"name":"created","value":"2012-08-24T20:43:22Z"}]}]}}'
85
- http_version:
86
- recorded_at: Fri, 24 Aug 2012 20:43:30 GMT
87
- - request:
88
- method: get
89
- uri: https://api.getcloudapp.com/drops?filter=trash&limit=20
90
- body:
91
- encoding: US-ASCII
92
- string: ''
93
- headers:
94
- Authorization:
95
- - Token token="abc123"
96
- Accept:
97
- - application/json, text/x-yaml, application/xml, application/xhtml+xml, text/html,
98
- text/plain
99
- Accept-Encoding:
100
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
101
- User-Agent:
102
- - Ruby
103
- response:
104
- status:
105
- code: 200
106
- message: OK
107
- headers:
108
- Cache-Control:
109
- - max-age=0, private, must-revalidate
110
- Content-Type:
111
- - application/vnd.collection+json; charset=utf-8
112
- Etag:
113
- - ! '"b5d4bc01a746c93656a4fcf5868657a5"'
114
- Server:
115
- - thin 1.4.1 codename Chromeo
116
- X-Runtime:
117
- - '0.027928'
118
- X-Ua-Compatible:
119
- - IE=Edge,chrome=1
120
- Transfer-Encoding:
121
- - chunked
122
- Connection:
123
- - keep-alive
124
- body:
125
- encoding: US-ASCII
126
- string: ! '{"collection":{"version":"1.0","href":"https://api.getcloudapp.com/drops","links":[{"rel":"drops-stream","href":"https://api.getcloudapp.com/drops/stream"}],"queries":[{"href":"https://api.getcloudapp.com/drops","rel":"drops-list","data":[{"name":"filter","value":"active"},{"name":"limit","value":20}]}],"template":{"data":[{"name":"name","value":null},{"name":"private","value":true},{"name":"trash","value":false},{"name":"bookmark_url","value":null},{"name":"file_size","value":null}]},"items":[{"href":"https://api.getcloudapp.com/drops/21399181","links":[{"rel":"collection","href":"https://api.getcloudapp.com/drops"},{"rel":"canonical","href":"http://cl.ly/2u1w43423j3c"},{"rel":"icon","href":"https://d9yac136u048z.cloudfront.net/images/thumbnails/bookmark.png"}],"data":[{"name":"id","value":21399181},{"name":"name","value":"CloudApp"},{"name":"private","value":true},{"name":"trash","value":true},{"name":"views","value":0},{"name":"created","value":"2012-08-24T20:43:25Z"}]}]}}'
127
- http_version:
128
- recorded_at: Fri, 24 Aug 2012 20:43:30 GMT
129
- recorded_with: VCR 2.0.1