bcx 0.0.2 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. data/.travis.yml +6 -0
  2. data/README.md +57 -4
  3. data/docs/bcx.html +171 -0
  4. data/docs/configuration.html +128 -0
  5. data/docs/docco.css +500 -0
  6. data/docs/http.html +125 -0
  7. data/docs/oauth.html +127 -0
  8. data/docs/person.html +125 -0
  9. data/docs/project.html +143 -0
  10. data/docs/public/fonts/aller-bold.eot +0 -0
  11. data/docs/public/fonts/aller-bold.ttf +0 -0
  12. data/docs/public/fonts/aller-bold.woff +0 -0
  13. data/docs/public/fonts/aller-light.eot +0 -0
  14. data/docs/public/fonts/aller-light.ttf +0 -0
  15. data/docs/public/fonts/aller-light.woff +0 -0
  16. data/docs/public/fonts/fleurons.eot +0 -0
  17. data/docs/public/fonts/fleurons.ttf +0 -0
  18. data/docs/public/fonts/fleurons.woff +0 -0
  19. data/docs/public/fonts/novecento-bold.eot +0 -0
  20. data/docs/public/fonts/novecento-bold.ttf +0 -0
  21. data/docs/public/fonts/novecento-bold.woff +0 -0
  22. data/docs/public/images/gray.png +0 -0
  23. data/docs/public/stylesheets/normalize.css +375 -0
  24. data/docs/response_error.html +117 -0
  25. data/docs/todo.html +138 -0
  26. data/docs/todolist.html +148 -0
  27. data/docs/version.html +103 -0
  28. data/lib/bcx/client/http.rb +25 -0
  29. data/lib/bcx/client/oauth.rb +27 -0
  30. data/lib/bcx/resources/person.rb +30 -7
  31. data/lib/bcx/resources/project.rb +7 -10
  32. data/lib/bcx/resources/todolist.rb +11 -4
  33. data/lib/bcx/version.rb +1 -1
  34. data/lib/bcx.rb +12 -1
  35. data/spec/bcx/client_spec.rb +24 -19
  36. data/spec/bcx/person_spec.rb +55 -0
  37. data/spec/bcx/project_spec.rb +1 -1
  38. data/spec/bcx/todo_spec.rb +43 -0
  39. data/spec/bcx/todolist_spec.rb +19 -3
  40. data/spec/cassettes/Bcx_Client/error_handling/should_raise_exception.yml +56 -0
  41. data/spec/cassettes/Bcx_Resources_Person/DELETE_/people/4904728_json/should_delete_a_todolist.yml +101 -0
  42. data/spec/cassettes/Bcx_Resources_Person/GET_/people/4666033_json/should_have_the_correct_id.yml +58 -0
  43. data/spec/cassettes/Bcx_Resources_Person/GET_/people/4666033_json/should_return_a_hash.yml +58 -0
  44. data/spec/cassettes/Bcx_Resources_Person/GET_/people/me_json/should_have_assigned_todos.yml +58 -0
  45. data/spec/cassettes/Bcx_Resources_Person/GET_/people/me_json/should_have_the_correct_id.yml +58 -0
  46. data/spec/cassettes/Bcx_Resources_Person/GET_/people/me_json/should_return_a_hash.yml +58 -0
  47. data/spec/cassettes/Bcx_Resources_Person/GET_/people_json/first_person_should_have_the_correct_id.yml +56 -0
  48. data/spec/cassettes/Bcx_Resources_Person/GET_/people_json/should_be_an_array.yml +56 -0
  49. data/spec/cassettes/Bcx_Resources_Todo/DELETE_/projects/2951531/todos/48545200_json/should_delete_the_given_todo.yml +101 -0
  50. data/spec/cassettes/Bcx_Resources_Todo/GET_/projects/2951531/todos/48545200_json/should_have_the_correct_id.yml +61 -0
  51. data/spec/cassettes/Bcx_Resources_Todo/GET_/projects/2951531/todos/48545200_json/should_return_a_hash.yml +61 -0
  52. data/spec/cassettes/Bcx_Resources_Todo/POST_/projects/2951531/todolists/2951531/todos_json/should_create_a_new_todo.yml +56 -0
  53. data/spec/cassettes/Bcx_Resources_Todo/POST_/projects/2951531/todolists/8268819/todos_json/should_create_a_new_todo.yml +62 -0
  54. data/spec/cassettes/Bcx_Resources_Todo/PUT_/projects/2951531/todos/48545200_json/should_update_an_existing_todo.yml +61 -0
  55. data/spec/cassettes/Bcx_Resources_Todolist/DELETE_/projects/2956584/todolists/8268819_json/should_create_a_new_todolist.yml +66 -0
  56. data/spec/cassettes/Bcx_Resources_Todolist/DELETE_/projects/2956584/todolists/8268819_json/should_delete_a_todolist.yml +101 -0
  57. data/spec/cassettes/Bcx_Resources_Todolist/POST_/projects/123/todolists_json/should_create_a_new_todolist.yml +62 -0
  58. data/spec/cassettes/Bcx_Resources_Todolist/PUT_/projects/2956584/todolists/8268819_json/should_create_a_new_todolist.yml +186 -0
  59. metadata +88 -14
  60. data/lib/bcx/client.rb +0 -24
@@ -0,0 +1,56 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://basecamp.com/2274488/api/v1/projects.json
6
+ body:
7
+ encoding: UTF-8
8
+ string: ! '{"name":""}'
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Authorization:
13
+ - Basic YmN4LXRlc3QtdXNlcjpzZWNyZXQ=
14
+ Content-Type:
15
+ - application/json
16
+ response:
17
+ status:
18
+ code: 422
19
+ message:
20
+ headers:
21
+ server:
22
+ - nginx
23
+ date:
24
+ - Fri, 21 Jun 2013 21:32:47 GMT
25
+ content-type:
26
+ - application/json; charset=utf-8
27
+ transfer-encoding:
28
+ - chunked
29
+ connection:
30
+ - close
31
+ status:
32
+ - 422 Unprocessable Entity
33
+ x-frame-options:
34
+ - SAMEORIGIN
35
+ x-xss-protection:
36
+ - 1; mode=block
37
+ x-content-type-options:
38
+ - nosniff
39
+ x-ua-compatible:
40
+ - chrome=1
41
+ x-xhr-current-location:
42
+ - /2274488/api/v1/projects.json
43
+ x-asset-paths:
44
+ - ! '{"application.js":"application-eb8afc75ba8fcbb36b8518826dd32bc5.js","application.css":"application-18059b31e3ebdcca82003cfaf2564179.css"}'
45
+ cache-control:
46
+ - no-cache
47
+ x-request-id:
48
+ - e203c487-d807-41b5-afd6-4f709fcb35e3
49
+ x-runtime:
50
+ - '0.145644'
51
+ body:
52
+ encoding: US-ASCII
53
+ string: ! '{"name":["can''t be blank"]}'
54
+ http_version:
55
+ recorded_at: Fri, 21 Jun 2013 21:32:47 GMT
56
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,101 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://basecamp.com/2274488/api/v1/people/4904728.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Authorization:
13
+ - Basic YmN4LXRlc3QtdXNlcjpzZWNyZXQ=
14
+ response:
15
+ status:
16
+ code: 204
17
+ message:
18
+ headers:
19
+ server:
20
+ - nginx
21
+ date:
22
+ - Fri, 21 Jun 2013 22:45:13 GMT
23
+ connection:
24
+ - close
25
+ status:
26
+ - 204 No Content
27
+ x-frame-options:
28
+ - SAMEORIGIN
29
+ x-xss-protection:
30
+ - 1; mode=block
31
+ x-content-type-options:
32
+ - nosniff
33
+ x-ua-compatible:
34
+ - chrome=1
35
+ x-xhr-current-location:
36
+ - /2274488/api/v1/people/4904728.json
37
+ x-asset-paths:
38
+ - ! '{"application.js":"application-eb8afc75ba8fcbb36b8518826dd32bc5.js","application.css":"application-18059b31e3ebdcca82003cfaf2564179.css"}'
39
+ cache-control:
40
+ - no-cache
41
+ x-request-id:
42
+ - 8d781657-4a55-44ac-b9eb-250281b5bdaf
43
+ x-runtime:
44
+ - '0.162121'
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ''
48
+ http_version:
49
+ recorded_at: Fri, 21 Jun 2013 22:45:13 GMT
50
+ - request:
51
+ method: get
52
+ uri: https://basecamp.com/2274488/api/v1/people/4904728.json
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ''
56
+ headers:
57
+ User-Agent:
58
+ - Faraday v0.8.7
59
+ Authorization:
60
+ - Basic YmN4LXRlc3QtdXNlcjpzZWNyZXQ=
61
+ response:
62
+ status:
63
+ code: 404
64
+ message:
65
+ headers:
66
+ server:
67
+ - nginx
68
+ date:
69
+ - Fri, 21 Jun 2013 22:45:14 GMT
70
+ content-type:
71
+ - text/html
72
+ transfer-encoding:
73
+ - chunked
74
+ connection:
75
+ - close
76
+ status:
77
+ - 404 Not Found
78
+ x-frame-options:
79
+ - SAMEORIGIN
80
+ x-xss-protection:
81
+ - 1; mode=block
82
+ x-content-type-options:
83
+ - nosniff
84
+ x-ua-compatible:
85
+ - chrome=1
86
+ x-xhr-current-location:
87
+ - /2274488/api/v1/people/4904728.json
88
+ x-asset-paths:
89
+ - ! '{"application.js":"application-eb8afc75ba8fcbb36b8518826dd32bc5.js","application.css":"application-18059b31e3ebdcca82003cfaf2564179.css"}'
90
+ cache-control:
91
+ - no-cache
92
+ x-request-id:
93
+ - ac1d44f5-927c-4415-a5b7-3b8df937c5bb
94
+ x-runtime:
95
+ - '0.117375'
96
+ body:
97
+ encoding: ASCII-8BIT
98
+ string: ''
99
+ http_version:
100
+ recorded_at: Fri, 21 Jun 2013 22:45:14 GMT
101
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,58 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://basecamp.com/2274488/api/v1/people/4666033.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Authorization:
13
+ - Basic YmN4LXRlc3QtdXNlcjpzZWNyZXQ=
14
+ response:
15
+ status:
16
+ code: 200
17
+ message:
18
+ headers:
19
+ server:
20
+ - nginx
21
+ date:
22
+ - Fri, 21 Jun 2013 22:37:01 GMT
23
+ content-type:
24
+ - application/json; charset=utf-8
25
+ transfer-encoding:
26
+ - chunked
27
+ connection:
28
+ - close
29
+ status:
30
+ - 200 OK
31
+ x-frame-options:
32
+ - SAMEORIGIN
33
+ x-xss-protection:
34
+ - 1; mode=block
35
+ x-content-type-options:
36
+ - nosniff
37
+ x-ua-compatible:
38
+ - chrome=1
39
+ x-xhr-current-location:
40
+ - /2274488/api/v1/people/4666033.json
41
+ x-asset-paths:
42
+ - ! '{"application.js":"application-eb8afc75ba8fcbb36b8518826dd32bc5.js","application.css":"application-18059b31e3ebdcca82003cfaf2564179.css"}'
43
+ etag:
44
+ - ! '"125d0a1dde67a44cbd2461224d25d387"'
45
+ last-modified:
46
+ - Fri, 21 Jun 2013 22:17:14 GMT
47
+ cache-control:
48
+ - max-age=0, private, must-revalidate
49
+ x-request-id:
50
+ - 119962ac-7a34-4076-b299-0241252ca5bf
51
+ x-runtime:
52
+ - '0.140722'
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ! '{"id":4666033,"name":"Paul Springett","email_address":"paul@springett.me","admin":true,"created_at":"2013-05-24T18:59:10.000Z","updated_at":"2013-06-21T22:17:14.000Z","identity_id":6967737,"avatar_url":"http://dge9rmgqjs8m1.cloudfront.net/global/default_avatar_v1_3/avatar.gif?r=3","events":{"count":9,"updated_at":"2013-06-21T22:17:14.000Z","url":"https://basecamp.com/2274488/api/v1/people/4666033-paul-springett/events.json"},"assigned_todos":{"count":0,"updated_at":null,"url":"https://basecamp.com/2274488/api/v1/people/4666033-paul-springett/assigned_todos.json"}}'
56
+ http_version:
57
+ recorded_at: Fri, 21 Jun 2013 22:37:02 GMT
58
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,58 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://basecamp.com/2274488/api/v1/people/4666033.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Authorization:
13
+ - Basic YmN4LXRlc3QtdXNlcjpzZWNyZXQ=
14
+ response:
15
+ status:
16
+ code: 200
17
+ message:
18
+ headers:
19
+ server:
20
+ - nginx
21
+ date:
22
+ - Fri, 21 Jun 2013 22:37:01 GMT
23
+ content-type:
24
+ - application/json; charset=utf-8
25
+ transfer-encoding:
26
+ - chunked
27
+ connection:
28
+ - close
29
+ status:
30
+ - 200 OK
31
+ x-frame-options:
32
+ - SAMEORIGIN
33
+ x-xss-protection:
34
+ - 1; mode=block
35
+ x-content-type-options:
36
+ - nosniff
37
+ x-ua-compatible:
38
+ - chrome=1
39
+ x-xhr-current-location:
40
+ - /2274488/api/v1/people/4666033.json
41
+ x-asset-paths:
42
+ - ! '{"application.js":"application-eb8afc75ba8fcbb36b8518826dd32bc5.js","application.css":"application-18059b31e3ebdcca82003cfaf2564179.css"}'
43
+ etag:
44
+ - ! '"125d0a1dde67a44cbd2461224d25d387"'
45
+ last-modified:
46
+ - Fri, 21 Jun 2013 22:17:14 GMT
47
+ cache-control:
48
+ - max-age=0, private, must-revalidate
49
+ x-request-id:
50
+ - 559af191-ba26-4bc9-adef-80dfa852130b
51
+ x-runtime:
52
+ - '0.139534'
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ! '{"id":4666033,"name":"Paul Springett","email_address":"paul@springett.me","admin":true,"created_at":"2013-05-24T18:59:10.000Z","updated_at":"2013-06-21T22:17:14.000Z","identity_id":6967737,"avatar_url":"http://dge9rmgqjs8m1.cloudfront.net/global/default_avatar_v1_3/avatar.gif?r=3","events":{"count":9,"updated_at":"2013-06-21T22:17:14.000Z","url":"https://basecamp.com/2274488/api/v1/people/4666033-paul-springett/events.json"},"assigned_todos":{"count":0,"updated_at":null,"url":"https://basecamp.com/2274488/api/v1/people/4666033-paul-springett/assigned_todos.json"}}'
56
+ http_version:
57
+ recorded_at: Fri, 21 Jun 2013 22:37:01 GMT
58
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,58 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://basecamp.com/2274488/api/v1/people/me.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Authorization:
13
+ - Basic YmN4LXRlc3QtdXNlcjpzZWNyZXQ=
14
+ response:
15
+ status:
16
+ code: 200
17
+ message:
18
+ headers:
19
+ server:
20
+ - nginx
21
+ date:
22
+ - Fri, 21 Jun 2013 22:47:46 GMT
23
+ content-type:
24
+ - application/json; charset=utf-8
25
+ transfer-encoding:
26
+ - chunked
27
+ connection:
28
+ - close
29
+ status:
30
+ - 200 OK
31
+ x-frame-options:
32
+ - SAMEORIGIN
33
+ x-xss-protection:
34
+ - 1; mode=block
35
+ x-content-type-options:
36
+ - nosniff
37
+ x-ua-compatible:
38
+ - chrome=1
39
+ x-xhr-current-location:
40
+ - /2274488/api/v1/people/me.json
41
+ x-asset-paths:
42
+ - ! '{"application.js":"application-eb8afc75ba8fcbb36b8518826dd32bc5.js","application.css":"application-18059b31e3ebdcca82003cfaf2564179.css"}'
43
+ etag:
44
+ - ! '"852846ccad901833fb0b1f310b805d7a"'
45
+ last-modified:
46
+ - Fri, 21 Jun 2013 22:41:31 GMT
47
+ cache-control:
48
+ - max-age=0, private, must-revalidate
49
+ x-request-id:
50
+ - b7e408a1-ddc6-4342-aa16-80d1ca2d79db
51
+ x-runtime:
52
+ - '0.132421'
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ! '{"id":4666033,"name":"Paul Springett","email_address":"paul@springett.me","admin":true,"created_at":"2013-05-24T18:59:10.000Z","updated_at":"2013-06-21T22:41:31.000Z","identity_id":6967737,"avatar_url":"http://dge9rmgqjs8m1.cloudfront.net/global/default_avatar_v1_3/avatar.gif?r=3","events":{"count":11,"updated_at":"2013-06-21T22:41:31.000Z","url":"https://basecamp.com/2274488/api/v1/people/4666033-paul-springett/events.json"},"assigned_todos":{"count":0,"updated_at":null,"url":"https://basecamp.com/2274488/api/v1/people/4666033-paul-springett/assigned_todos.json"}}'
56
+ http_version:
57
+ recorded_at: Fri, 21 Jun 2013 22:47:46 GMT
58
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,58 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://basecamp.com/2274488/api/v1/people/me.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Authorization:
13
+ - Basic YmN4LXRlc3QtdXNlcjpzZWNyZXQ=
14
+ response:
15
+ status:
16
+ code: 200
17
+ message:
18
+ headers:
19
+ server:
20
+ - nginx
21
+ date:
22
+ - Fri, 21 Jun 2013 22:37:38 GMT
23
+ content-type:
24
+ - application/json; charset=utf-8
25
+ transfer-encoding:
26
+ - chunked
27
+ connection:
28
+ - close
29
+ status:
30
+ - 200 OK
31
+ x-frame-options:
32
+ - SAMEORIGIN
33
+ x-xss-protection:
34
+ - 1; mode=block
35
+ x-content-type-options:
36
+ - nosniff
37
+ x-ua-compatible:
38
+ - chrome=1
39
+ x-xhr-current-location:
40
+ - /2274488/api/v1/people/me.json
41
+ x-asset-paths:
42
+ - ! '{"application.js":"application-eb8afc75ba8fcbb36b8518826dd32bc5.js","application.css":"application-18059b31e3ebdcca82003cfaf2564179.css"}'
43
+ etag:
44
+ - ! '"125d0a1dde67a44cbd2461224d25d387"'
45
+ last-modified:
46
+ - Fri, 21 Jun 2013 22:17:14 GMT
47
+ cache-control:
48
+ - max-age=0, private, must-revalidate
49
+ x-request-id:
50
+ - 2e8e4652-70ad-416a-8cd2-e8cb2b235612
51
+ x-runtime:
52
+ - '0.127644'
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ! '{"id":4666033,"name":"Paul Springett","email_address":"paul@springett.me","admin":true,"created_at":"2013-05-24T18:59:10.000Z","updated_at":"2013-06-21T22:17:14.000Z","identity_id":6967737,"avatar_url":"http://dge9rmgqjs8m1.cloudfront.net/global/default_avatar_v1_3/avatar.gif?r=3","events":{"count":9,"updated_at":"2013-06-21T22:17:14.000Z","url":"https://basecamp.com/2274488/api/v1/people/4666033-paul-springett/events.json"},"assigned_todos":{"count":0,"updated_at":null,"url":"https://basecamp.com/2274488/api/v1/people/4666033-paul-springett/assigned_todos.json"}}'
56
+ http_version:
57
+ recorded_at: Fri, 21 Jun 2013 22:37:38 GMT
58
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,58 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://basecamp.com/2274488/api/v1/people/me.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Authorization:
13
+ - Basic YmN4LXRlc3QtdXNlcjpzZWNyZXQ=
14
+ response:
15
+ status:
16
+ code: 200
17
+ message:
18
+ headers:
19
+ server:
20
+ - nginx
21
+ date:
22
+ - Fri, 21 Jun 2013 22:37:37 GMT
23
+ content-type:
24
+ - application/json; charset=utf-8
25
+ transfer-encoding:
26
+ - chunked
27
+ connection:
28
+ - close
29
+ status:
30
+ - 200 OK
31
+ x-frame-options:
32
+ - SAMEORIGIN
33
+ x-xss-protection:
34
+ - 1; mode=block
35
+ x-content-type-options:
36
+ - nosniff
37
+ x-ua-compatible:
38
+ - chrome=1
39
+ x-xhr-current-location:
40
+ - /2274488/api/v1/people/me.json
41
+ x-asset-paths:
42
+ - ! '{"application.js":"application-eb8afc75ba8fcbb36b8518826dd32bc5.js","application.css":"application-18059b31e3ebdcca82003cfaf2564179.css"}'
43
+ etag:
44
+ - ! '"125d0a1dde67a44cbd2461224d25d387"'
45
+ last-modified:
46
+ - Fri, 21 Jun 2013 22:17:14 GMT
47
+ cache-control:
48
+ - max-age=0, private, must-revalidate
49
+ x-request-id:
50
+ - 4a1ffec0-6259-4f70-b8bc-1e772e931593
51
+ x-runtime:
52
+ - '0.130368'
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ! '{"id":4666033,"name":"Paul Springett","email_address":"paul@springett.me","admin":true,"created_at":"2013-05-24T18:59:10.000Z","updated_at":"2013-06-21T22:17:14.000Z","identity_id":6967737,"avatar_url":"http://dge9rmgqjs8m1.cloudfront.net/global/default_avatar_v1_3/avatar.gif?r=3","events":{"count":9,"updated_at":"2013-06-21T22:17:14.000Z","url":"https://basecamp.com/2274488/api/v1/people/4666033-paul-springett/events.json"},"assigned_todos":{"count":0,"updated_at":null,"url":"https://basecamp.com/2274488/api/v1/people/4666033-paul-springett/assigned_todos.json"}}'
56
+ http_version:
57
+ recorded_at: Fri, 21 Jun 2013 22:37:37 GMT
58
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,56 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://basecamp.com/2274488/api/v1/people.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Authorization:
13
+ - Basic YmN4LXRlc3QtdXNlcjpzZWNyZXQ=
14
+ response:
15
+ status:
16
+ code: 200
17
+ message:
18
+ headers:
19
+ server:
20
+ - nginx
21
+ date:
22
+ - Fri, 21 Jun 2013 22:34:44 GMT
23
+ content-type:
24
+ - application/json; charset=utf-8
25
+ transfer-encoding:
26
+ - chunked
27
+ connection:
28
+ - close
29
+ status:
30
+ - 200 OK
31
+ x-frame-options:
32
+ - SAMEORIGIN
33
+ x-xss-protection:
34
+ - 1; mode=block
35
+ x-content-type-options:
36
+ - nosniff
37
+ x-ua-compatible:
38
+ - chrome=1
39
+ x-xhr-current-location:
40
+ - /2274488/api/v1/people.json
41
+ x-asset-paths:
42
+ - ! '{"application.js":"application-eb8afc75ba8fcbb36b8518826dd32bc5.js","application.css":"application-18059b31e3ebdcca82003cfaf2564179.css"}'
43
+ etag:
44
+ - ! '"f3276cd4fe077efb455d8efbd45b77d3"'
45
+ cache-control:
46
+ - max-age=0, private, must-revalidate
47
+ x-request-id:
48
+ - 7828a502-063c-47c0-b0ad-28bf37d37135
49
+ x-runtime:
50
+ - '0.114063'
51
+ body:
52
+ encoding: US-ASCII
53
+ string: ! '[{"id":4666033,"name":"Paul Springett","email_address":"paul@springett.me","admin":true,"created_at":"2013-05-24T18:59:10.000Z","updated_at":"2013-06-21T22:17:14.000Z","identity_id":6967737,"avatar_url":"http://dge9rmgqjs8m1.cloudfront.net/global/default_avatar_v1_3/avatar.gif?r=3","url":"https://basecamp.com/2274488/api/v1/people/4666033-paul-springett.json"}]'
54
+ http_version:
55
+ recorded_at: Fri, 21 Jun 2013 22:34:44 GMT
56
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,56 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://basecamp.com/2274488/api/v1/people.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Authorization:
13
+ - Basic YmN4LXRlc3QtdXNlcjpzZWNyZXQ=
14
+ response:
15
+ status:
16
+ code: 200
17
+ message:
18
+ headers:
19
+ server:
20
+ - nginx
21
+ date:
22
+ - Fri, 21 Jun 2013 22:34:44 GMT
23
+ content-type:
24
+ - application/json; charset=utf-8
25
+ transfer-encoding:
26
+ - chunked
27
+ connection:
28
+ - close
29
+ status:
30
+ - 200 OK
31
+ x-frame-options:
32
+ - SAMEORIGIN
33
+ x-xss-protection:
34
+ - 1; mode=block
35
+ x-content-type-options:
36
+ - nosniff
37
+ x-ua-compatible:
38
+ - chrome=1
39
+ x-xhr-current-location:
40
+ - /2274488/api/v1/people.json
41
+ x-asset-paths:
42
+ - ! '{"application.js":"application-eb8afc75ba8fcbb36b8518826dd32bc5.js","application.css":"application-18059b31e3ebdcca82003cfaf2564179.css"}'
43
+ etag:
44
+ - ! '"f3276cd4fe077efb455d8efbd45b77d3"'
45
+ cache-control:
46
+ - max-age=0, private, must-revalidate
47
+ x-request-id:
48
+ - 5836f88f-d372-4ff2-80a3-4d7a21f69370
49
+ x-runtime:
50
+ - '0.119770'
51
+ body:
52
+ encoding: US-ASCII
53
+ string: ! '[{"id":4666033,"name":"Paul Springett","email_address":"paul@springett.me","admin":true,"created_at":"2013-05-24T18:59:10.000Z","updated_at":"2013-06-21T22:17:14.000Z","identity_id":6967737,"avatar_url":"http://dge9rmgqjs8m1.cloudfront.net/global/default_avatar_v1_3/avatar.gif?r=3","url":"https://basecamp.com/2274488/api/v1/people/4666033-paul-springett.json"}]'
54
+ http_version:
55
+ recorded_at: Fri, 21 Jun 2013 22:34:44 GMT
56
+ recorded_with: VCR 2.5.0
@@ -0,0 +1,101 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://basecamp.com/2274488/api/v1/projects/2951531/todos/48545200.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.7
12
+ Authorization:
13
+ - Basic YmN4LXRlc3QtdXNlcjpzZWNyZXQ=
14
+ response:
15
+ status:
16
+ code: 204
17
+ message:
18
+ headers:
19
+ server:
20
+ - nginx
21
+ date:
22
+ - Fri, 21 Jun 2013 22:06:49 GMT
23
+ connection:
24
+ - close
25
+ status:
26
+ - 204 No Content
27
+ x-frame-options:
28
+ - SAMEORIGIN
29
+ x-xss-protection:
30
+ - 1; mode=block
31
+ x-content-type-options:
32
+ - nosniff
33
+ x-ua-compatible:
34
+ - chrome=1
35
+ x-xhr-current-location:
36
+ - /2274488/api/v1/projects/2951531/todos/48545200.json
37
+ x-asset-paths:
38
+ - ! '{"application.js":"application-eb8afc75ba8fcbb36b8518826dd32bc5.js","application.css":"application-18059b31e3ebdcca82003cfaf2564179.css"}'
39
+ cache-control:
40
+ - no-cache
41
+ x-request-id:
42
+ - 4718224a-a8c3-4d51-84a0-3bf3d46b08a5
43
+ x-runtime:
44
+ - '0.447887'
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ''
48
+ http_version:
49
+ recorded_at: Fri, 21 Jun 2013 22:06:50 GMT
50
+ - request:
51
+ method: get
52
+ uri: https://basecamp.com/2274488/api/v1/projects/2951531/todos/48545200.json
53
+ body:
54
+ encoding: US-ASCII
55
+ string: ''
56
+ headers:
57
+ User-Agent:
58
+ - Faraday v0.8.7
59
+ Authorization:
60
+ - Basic YmN4LXRlc3QtdXNlcjpzZWNyZXQ=
61
+ response:
62
+ status:
63
+ code: 404
64
+ message:
65
+ headers:
66
+ server:
67
+ - nginx
68
+ date:
69
+ - Fri, 21 Jun 2013 22:06:50 GMT
70
+ content-type:
71
+ - text/html
72
+ transfer-encoding:
73
+ - chunked
74
+ connection:
75
+ - close
76
+ status:
77
+ - 404 Not Found
78
+ x-frame-options:
79
+ - SAMEORIGIN
80
+ x-xss-protection:
81
+ - 1; mode=block
82
+ x-content-type-options:
83
+ - nosniff
84
+ x-ua-compatible:
85
+ - chrome=1
86
+ x-xhr-current-location:
87
+ - /2274488/api/v1/projects/2951531/todos/48545200.json
88
+ x-asset-paths:
89
+ - ! '{"application.js":"application-eb8afc75ba8fcbb36b8518826dd32bc5.js","application.css":"application-18059b31e3ebdcca82003cfaf2564179.css"}'
90
+ cache-control:
91
+ - no-cache
92
+ x-request-id:
93
+ - ff66aa56-36bf-494e-b508-02e9f7b1cbd7
94
+ x-runtime:
95
+ - '0.117694'
96
+ body:
97
+ encoding: ASCII-8BIT
98
+ string: ''
99
+ http_version:
100
+ recorded_at: Fri, 21 Jun 2013 22:06:50 GMT
101
+ recorded_with: VCR 2.5.0