redbooth-ruby 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +7 -0
  2. data/spec/cassettes/Redbooth_Me/_initialize/.yml +48 -0
  3. data/spec/cassettes/Redbooth_Me/_show/.yml +48 -0
  4. data/spec/cassettes/Redbooth_Me/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml +48 -0
  5. data/spec/cassettes/Redbooth_Me/_update/.yml +97 -0
  6. data/spec/cassettes/Redbooth_Me/_update/integration/.yml +97 -0
  7. data/spec/cassettes/Redbooth_Organization/_create/.yml +47 -0
  8. data/spec/cassettes/Redbooth_Organization/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_organization.yml +47 -0
  9. data/spec/cassettes/Redbooth_Organization/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_organization.yml +123 -0
  10. data/spec/cassettes/Redbooth_Organization/_index/.yml +58 -0
  11. data/spec/cassettes/Redbooth_Organization/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml +58 -0
  12. data/spec/cassettes/Redbooth_Organization/_initialize/.yml +64 -0
  13. data/spec/cassettes/Redbooth_Organization/_show/.yml +64 -0
  14. data/spec/cassettes/Redbooth_Organization/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml +64 -0
  15. data/spec/cassettes/Redbooth_Organization/_update/.yml +48 -0
  16. data/spec/cassettes/Redbooth_Organization/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml +48 -0
  17. data/spec/cassettes/Redbooth_Person/_create/integration/.yml +83 -0
  18. data/spec/cassettes/Redbooth_Person/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_person.yml +83 -0
  19. data/spec/cassettes/Redbooth_Person/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_person.yml +83 -0
  20. data/spec/cassettes/Redbooth_Person/_index/.yml +127 -0
  21. data/spec/cassettes/Redbooth_Person/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml +54 -0
  22. data/spec/cassettes/Redbooth_Person/_initialize/.yml +117 -0
  23. data/spec/cassettes/Redbooth_Person/_show/.yml +117 -0
  24. data/spec/cassettes/Redbooth_Person/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml +44 -0
  25. data/spec/cassettes/Redbooth_Person/_update/.yml +163 -0
  26. data/spec/cassettes/Redbooth_Person/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml +294 -0
  27. data/spec/cassettes/Redbooth_Project/_create/.yml +47 -0
  28. data/spec/cassettes/Redbooth_Project/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_project.yml +47 -0
  29. data/spec/cassettes/Redbooth_Project/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_project.yml +2296 -0
  30. data/spec/cassettes/Redbooth_Project/_index/.yml +62 -0
  31. data/spec/cassettes/Redbooth_Project/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml +62 -0
  32. data/spec/cassettes/Redbooth_Project/_initialize/.yml +44 -0
  33. data/spec/cassettes/Redbooth_Project/_show/.yml +44 -0
  34. data/spec/cassettes/Redbooth_Project/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml +44 -0
  35. data/spec/cassettes/Redbooth_Project/_update/.yml +47 -0
  36. data/spec/cassettes/Redbooth_Project/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml +47 -0
  37. data/spec/cassettes/Redbooth_Request_Collection/_all/.yml +59 -0
  38. data/spec/cassettes/Redbooth_Request_Collection/_count/.yml +59 -0
  39. data/spec/cassettes/Redbooth_Request_Collection/_current_page/.yml +59 -0
  40. data/spec/cassettes/Redbooth_Request_Collection/_current_page/where_endpoint_is_not_paginated/.yml +59 -0
  41. data/spec/cassettes/Redbooth_Request_Collection/_initialize/.yml +59 -0
  42. data/spec/cassettes/Redbooth_Request_Collection/_next_page/.yml +106 -0
  43. data/spec/cassettes/Redbooth_Request_Collection/_next_page/where_endpoint_is_not_paginated/.yml +59 -0
  44. data/spec/cassettes/Redbooth_Request_Collection/_next_page/where_is_the_last_page/.yml +59 -0
  45. data/spec/cassettes/Redbooth_Request_Collection/_per_page/.yml +59 -0
  46. data/spec/cassettes/Redbooth_Request_Collection/_per_page/where_endpoint_is_not_paginated/.yml +59 -0
  47. data/spec/cassettes/Redbooth_Request_Collection/_prev_page/.yml +115 -0
  48. data/spec/cassettes/Redbooth_Request_Collection/_prev_page/where_endpoint_is_not_paginated/.yml +59 -0
  49. data/spec/cassettes/Redbooth_Request_Collection/_prev_page/where_is_the_first_page/.yml +159 -0
  50. data/spec/cassettes/Redbooth_Request_Collection/_total_pages/.yml +59 -0
  51. data/spec/cassettes/Redbooth_Request_Collection/_total_pages/where_endpoint_is_not_paginated/.yml +59 -0
  52. data/spec/cassettes/Redbooth_Task/_create/.yml +47 -0
  53. data/spec/cassettes/Redbooth_Task/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml +47 -0
  54. data/spec/cassettes/Redbooth_Task/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml +84 -0
  55. data/spec/cassettes/Redbooth_Task/_index/.yml +1037 -0
  56. data/spec/cassettes/Redbooth_Task/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +437 -0
  57. data/spec/cassettes/Redbooth_Task/_initialize/.yml +47 -0
  58. data/spec/cassettes/Redbooth_Task/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +47 -0
  59. data/spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_assigned_id.yml +47 -0
  60. data/spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_id.yml +47 -0
  61. data/spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_name.yml +47 -0
  62. data/spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_project_id.yml +47 -0
  63. data/spec/cassettes/Redbooth_Task/_update/.yml +47 -0
  64. data/spec/cassettes/Redbooth_Task/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +47 -0
  65. data/spec/cassettes/Redbooth_User/_create/.yml +84 -0
  66. data/spec/cassettes/Redbooth_User/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml +47 -0
  67. data/spec/cassettes/Redbooth_User/_create/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +47 -0
  68. data/spec/cassettes/Redbooth_User/_create/name/.yml +47 -0
  69. data/spec/cassettes/Redbooth_User/_create/project_id/.yml +47 -0
  70. data/spec/cassettes/Redbooth_User/_create/task_list_id/.yml +47 -0
  71. data/spec/cassettes/Redbooth_User/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml +84 -0
  72. data/spec/cassettes/Redbooth_User/_index/.yml +413 -0
  73. data/spec/cassettes/Redbooth_User/_index/class/.yml +400 -0
  74. data/spec/cassettes/Redbooth_User/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +400 -0
  75. data/spec/cassettes/Redbooth_User/_initialize/.yml +88 -0
  76. data/spec/cassettes/Redbooth_User/_initialize/assigned_id/.yml +47 -0
  77. data/spec/cassettes/Redbooth_User/_initialize/description/.yml +47 -0
  78. data/spec/cassettes/Redbooth_User/_initialize/due_on/.yml +47 -0
  79. data/spec/cassettes/Redbooth_User/_initialize/id/.yml +47 -0
  80. data/spec/cassettes/Redbooth_User/_initialize/initializes_all_attributes_correctly.yml +44 -0
  81. data/spec/cassettes/Redbooth_User/_initialize/name/.yml +47 -0
  82. data/spec/cassettes/Redbooth_User/_initialize/project_id/.yml +47 -0
  83. data/spec/cassettes/Redbooth_User/_show/.yml +44 -0
  84. data/spec/cassettes/Redbooth_User/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +47 -0
  85. data/spec/cassettes/Redbooth_User/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml +88 -0
  86. data/spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_assigned_id.yml +47 -0
  87. data/spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_id.yml +47 -0
  88. data/spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_name.yml +47 -0
  89. data/spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_project_id.yml +47 -0
  90. data/spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_email.yml +393 -0
  91. data/spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_first_name.yml +393 -0
  92. data/spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_id.yml +393 -0
  93. data/spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_last_name.yml +393 -0
  94. data/spec/cassettes/Redbooth_User/_update/.yml +47 -0
  95. data/spec/cassettes/Redbooth_User/_update/id/.yml +47 -0
  96. data/spec/cassettes/Redbooth_User/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +47 -0
  97. data/spec/cassettes/Redbooth_User/_update/name/.yml +47 -0
  98. data/spec/fixtures/hola.txt +1 -0
  99. data/spec/redbooth/base_spec.rb +12 -0
  100. data/spec/redbooth/client_spec.rb +69 -0
  101. data/spec/redbooth/me_spec.rb +56 -0
  102. data/spec/redbooth/organization_spec.rb +80 -0
  103. data/spec/redbooth/person_spec.rb +85 -0
  104. data/spec/redbooth/project_spec.rb +80 -0
  105. data/spec/redbooth/request/base_spec.rb +53 -0
  106. data/spec/redbooth/request/collection_spec.rb +104 -0
  107. data/spec/redbooth/request/connection_spec.rb +82 -0
  108. data/spec/redbooth/request/info_spec.rb +27 -0
  109. data/spec/redbooth/request/response_spec.rb +32 -0
  110. data/spec/redbooth/request/validator_spec.rb +45 -0
  111. data/spec/redbooth/task_spec.rb +90 -0
  112. data/spec/redbooth/user_spec.rb +32 -0
  113. data/spec/redbooth_spec.rb +69 -0
  114. data/spec/shared/authentication_context.rb +24 -0
  115. data/spec/spec_helper.rb +22 -0
  116. metadata +370 -0
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: http://localhost:3000/api/3/organizations/2
6
+ body:
7
+ encoding: UTF-8
8
+ string: name=new+test+name
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Authorization:
13
+ - Bearer _frank_access_token_
14
+ Content-Type:
15
+ - application/x-www-form-urlencoded
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ X-Ua-Compatible:
28
+ - IE=Edge,chrome=1
29
+ Etag:
30
+ - '"ce313eb873e5b32572009f98680d3cc5"'
31
+ Cache-Control:
32
+ - max-age=0, private, must-revalidate
33
+ X-Request-Id:
34
+ - 948956c86f3d621bb6eb78f19766b7da
35
+ X-Runtime:
36
+ - '0.251998'
37
+ Connection:
38
+ - close
39
+ Server:
40
+ - thin 1.6.1 codename Death Proof
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"type":"Organization","created_at":1415006988,"updated_at":1415112795,"id":2,"name":"new
44
+ test name","permalink":"xss-scriptalertorgscript","domain":null,"settings":{"allow_comment_deletion":true},"omit_email_processing":false,"product":"50-seats-trial","product_name":"trial","feature_level":"freeu","subscription_id":2,"seats":50,"remaining_users":47,"available_users":50,"used_users":3,"remaining_projects":999997,"available_projects":999999,"used_projects":2,"metadata":{},"square_logo_url":"/images/logos/square/missing.png","top_logo_url":"/images/logos/top/missing.png","has_logo":false,"is_pro":true,"description":"<h1>Our
45
+ design firm</h1><script>alert(''ORG-DESC'')</script>"}'
46
+ http_version:
47
+ recorded_at: Tue, 04 Nov 2014 14:53:15 GMT
48
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,83 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:3000/api/3/people
6
+ body:
7
+ encoding: UTF-8
8
+ string: project_id=1&role=participant&user_id=3
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Authorization:
13
+ - Bearer _frank_access_token_
14
+ Content-Type:
15
+ - application/x-www-form-urlencoded
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ X-Ua-Compatible:
28
+ - IE=Edge,chrome=1
29
+ Etag:
30
+ - '"959fc92e24416ff02edc588e1b665496"'
31
+ Cache-Control:
32
+ - max-age=0, private, must-revalidate
33
+ X-Request-Id:
34
+ - 48ea790dc6289ade3145c25facd1941d
35
+ X-Runtime:
36
+ - '5.876662'
37
+ Connection:
38
+ - close
39
+ Server:
40
+ - thin 1.6.1 codename Death Proof
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"type":"Person","created_at":1415279920,"updated_at":1415290268,"id":19,"user_id":3,"project_id":1,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"participant"}'
44
+ http_version:
45
+ recorded_at: Thu, 06 Nov 2014 16:11:08 GMT
46
+ - request:
47
+ method: delete
48
+ uri: http://localhost:3000/api/3/people/19
49
+ body:
50
+ encoding: US-ASCII
51
+ string: ''
52
+ headers:
53
+ User-Agent:
54
+ - Faraday v0.9.0
55
+ Authorization:
56
+ - Bearer _frank_access_token_
57
+ Accept-Encoding:
58
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
59
+ Accept:
60
+ - "*/*"
61
+ response:
62
+ status:
63
+ code: 204
64
+ message: No Content
65
+ headers:
66
+ X-Ua-Compatible:
67
+ - IE=Edge,chrome=1
68
+ Cache-Control:
69
+ - no-cache
70
+ X-Request-Id:
71
+ - d7564ab76fe0325e0e518c057330685c
72
+ X-Runtime:
73
+ - '0.630165'
74
+ Connection:
75
+ - close
76
+ Server:
77
+ - thin 1.6.1 codename Death Proof
78
+ body:
79
+ encoding: UTF-8
80
+ string: ''
81
+ http_version:
82
+ recorded_at: Thu, 06 Nov 2014 16:11:09 GMT
83
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,83 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:3000/api/3/people
6
+ body:
7
+ encoding: UTF-8
8
+ string: project_id=1&role=participant&user_id=3
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Authorization:
13
+ - Bearer _frank_access_token_
14
+ Content-Type:
15
+ - application/x-www-form-urlencoded
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - '*/*'
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ X-Ua-Compatible:
28
+ - IE=Edge,chrome=1
29
+ Etag:
30
+ - '"b63cb7dd92d70783dbbd5c28f2997c4f"'
31
+ Cache-Control:
32
+ - max-age=0, private, must-revalidate
33
+ X-Request-Id:
34
+ - 6cbfca47b7af308dd418400c5c99f215
35
+ X-Runtime:
36
+ - '1.441847'
37
+ Connection:
38
+ - close
39
+ Server:
40
+ - thin 1.6.1 codename Death Proof
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"type":"Person","created_at":1415372956,"updated_at":1415372956,"id":18,"user_id":3,"project_id":1,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"participant"}'
44
+ http_version:
45
+ recorded_at: Fri, 07 Nov 2014 15:09:17 GMT
46
+ - request:
47
+ method: delete
48
+ uri: http://localhost:3000/api/3/people/18
49
+ body:
50
+ encoding: US-ASCII
51
+ string: ''
52
+ headers:
53
+ User-Agent:
54
+ - Faraday v0.9.0
55
+ Authorization:
56
+ - Bearer _frank_access_token_
57
+ Accept-Encoding:
58
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
59
+ Accept:
60
+ - '*/*'
61
+ response:
62
+ status:
63
+ code: 204
64
+ message: No Content
65
+ headers:
66
+ X-Ua-Compatible:
67
+ - IE=Edge,chrome=1
68
+ Cache-Control:
69
+ - no-cache
70
+ X-Request-Id:
71
+ - e1a3fcaa169f46c212f2abb9234f3b54
72
+ X-Runtime:
73
+ - '0.236298'
74
+ Connection:
75
+ - close
76
+ Server:
77
+ - thin 1.6.1 codename Death Proof
78
+ body:
79
+ encoding: UTF-8
80
+ string: ''
81
+ http_version:
82
+ recorded_at: Fri, 07 Nov 2014 15:09:22 GMT
83
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,83 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:3000/api/3/people
6
+ body:
7
+ encoding: UTF-8
8
+ string: project_id=1&role=participant&user_id=3
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Authorization:
13
+ - Bearer _frank_access_token_
14
+ Content-Type:
15
+ - application/x-www-form-urlencoded
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - '*/*'
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ X-Ua-Compatible:
28
+ - IE=Edge,chrome=1
29
+ Etag:
30
+ - '"7a5e7ae6ea5451d7a6944c282a103e6b"'
31
+ Cache-Control:
32
+ - max-age=0, private, must-revalidate
33
+ X-Request-Id:
34
+ - b9bc81988b14c228c8b5c1f7f87297c4
35
+ X-Runtime:
36
+ - '0.212867'
37
+ Connection:
38
+ - close
39
+ Server:
40
+ - thin 1.6.1 codename Death Proof
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"type":"Person","created_at":1415372956,"updated_at":1415376692,"id":18,"user_id":3,"project_id":1,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"participant"}'
44
+ http_version:
45
+ recorded_at: Fri, 07 Nov 2014 16:11:32 GMT
46
+ - request:
47
+ method: delete
48
+ uri: http://localhost:3000/api/3/people/18
49
+ body:
50
+ encoding: US-ASCII
51
+ string: ''
52
+ headers:
53
+ User-Agent:
54
+ - Faraday v0.9.0
55
+ Authorization:
56
+ - Bearer _frank_access_token_
57
+ Accept-Encoding:
58
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
59
+ Accept:
60
+ - '*/*'
61
+ response:
62
+ status:
63
+ code: 204
64
+ message: No Content
65
+ headers:
66
+ X-Ua-Compatible:
67
+ - IE=Edge,chrome=1
68
+ Cache-Control:
69
+ - no-cache
70
+ X-Request-Id:
71
+ - 2f695d8af6f242725c3908ee1fdca055
72
+ X-Runtime:
73
+ - '0.141969'
74
+ Connection:
75
+ - close
76
+ Server:
77
+ - thin 1.6.1 codename Death Proof
78
+ body:
79
+ encoding: UTF-8
80
+ string: ''
81
+ http_version:
82
+ recorded_at: Fri, 07 Nov 2014 16:11:32 GMT
83
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,127 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/3/persons
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Authorization:
13
+ - Bearer _frank_access_token_
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 404
21
+ message: Not Found
22
+ headers:
23
+ Content-Type:
24
+ - text/html; charset=utf-8
25
+ Content-Length:
26
+ - '773'
27
+ X-Request-Id:
28
+ - 4af9c3f1e609874e30a98f3eda2c9025
29
+ X-Runtime:
30
+ - '0.125357'
31
+ Connection:
32
+ - keep-alive
33
+ Server:
34
+ - thin 1.6.1 codename Death Proof
35
+ body:
36
+ encoding: UTF-8
37
+ string: |
38
+ <!DOCTYPE html>
39
+ <html lang="en">
40
+ <head>
41
+ <meta charset="utf-8" />
42
+ <title>Action Controller: Exception caught</title>
43
+ <style>
44
+ body { background-color: #fff; color: #333; }
45
+
46
+ body, p, ol, ul, td {
47
+ font-family: helvetica, verdana, arial, sans-serif;
48
+ font-size: 13px;
49
+ line-height: 18px;
50
+ }
51
+
52
+ pre {
53
+ background-color: #eee;
54
+ padding: 10px;
55
+ font-size: 11px;
56
+ white-space: pre-wrap;
57
+ }
58
+
59
+ a { color: #000; }
60
+ a:visited { color: #666; }
61
+ a:hover { color: #fff; background-color:#000; }
62
+ </style>
63
+ </head>
64
+ <body>
65
+
66
+ <h1>Routing Error</h1>
67
+ <p><pre>No route matches [GET] &quot;/api/3/persons&quot;</pre></p>
68
+ <p>
69
+ Try running <code>rake routes</code> for more information on available routes.
70
+ </p>
71
+
72
+ </body>
73
+ </html>
74
+ http_version:
75
+ recorded_at: Thu, 06 Nov 2014 11:30:56 GMT
76
+ - request:
77
+ method: get
78
+ uri: http://localhost:3000/api/3/people
79
+ body:
80
+ encoding: US-ASCII
81
+ string: ''
82
+ headers:
83
+ User-Agent:
84
+ - Faraday v0.9.0
85
+ Authorization:
86
+ - Bearer _frank_access_token_
87
+ Accept-Encoding:
88
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
89
+ Accept:
90
+ - "*/*"
91
+ response:
92
+ status:
93
+ code: 200
94
+ message: OK
95
+ headers:
96
+ X-Redbooth-From-Cache:
97
+ - 'off'
98
+ Paginationlinks:
99
+ - <http://localhost:3000/api/3/people?page=1>; rel="last">
100
+ Paginationtotalpages:
101
+ - '1'
102
+ Paginationperpage:
103
+ - '30'
104
+ Paginationcurrentpage:
105
+ - '1'
106
+ Content-Type:
107
+ - application/json; charset=utf-8
108
+ X-Ua-Compatible:
109
+ - IE=Edge,chrome=1
110
+ Etag:
111
+ - '"8e1edbecd1661c8a4c732116460bcf51"'
112
+ Cache-Control:
113
+ - max-age=0, private, must-revalidate
114
+ X-Request-Id:
115
+ - 0af6e531a5007ac9d1e3e80bb09c0481
116
+ X-Runtime:
117
+ - '0.522760'
118
+ Connection:
119
+ - close
120
+ Server:
121
+ - thin 1.6.1 codename Death Proof
122
+ body:
123
+ encoding: UTF-8
124
+ string: '[{"type":"Person","created_at":1415262357,"updated_at":1415262357,"id":17,"user_id":5,"project_id":8,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"participant"},{"type":"Person","created_at":1415262357,"updated_at":1415262357,"id":16,"user_id":4,"project_id":8,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"participant"},{"type":"Person","created_at":1415262357,"updated_at":1415262357,"id":15,"user_id":2,"project_id":8,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"participant"},{"type":"Person","created_at":1415262357,"updated_at":1415262357,"id":14,"user_id":1,"project_id":8,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"},{"type":"Person","created_at":1415262355,"updated_at":1415262355,"id":13,"user_id":4,"project_id":7,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"participant"},{"type":"Person","created_at":1415262355,"updated_at":1415262355,"id":12,"user_id":7,"project_id":7,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"participant"},{"type":"Person","created_at":1415262355,"updated_at":1415262355,"id":11,"user_id":1,"project_id":7,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"},{"type":"Person","created_at":1415262336,"updated_at":1415262336,"id":9,"user_id":5,"project_id":2,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"participant"},{"type":"Person","created_at":1415262336,"updated_at":1415262336,"id":8,"user_id":4,"project_id":2,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"participant"},{"type":"Person","created_at":1415262336,"updated_at":1415262336,"id":7,"user_id":3,"project_id":2,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"participant"},{"type":"Person","created_at":1415262336,"updated_at":1415262336,"id":6,"user_id":2,"project_id":2,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"participant"},{"type":"Person","created_at":1415262336,"updated_at":1415262336,"id":5,"user_id":1,"project_id":5,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"},{"type":"Person","created_at":1415262336,"updated_at":1415262336,"id":4,"user_id":1,"project_id":4,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"},{"type":"Person","created_at":1415262336,"updated_at":1415262336,"id":3,"user_id":1,"project_id":3,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"},{"type":"Person","created_at":1415262336,"updated_at":1415262336,"id":2,"user_id":1,"project_id":2,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"},{"type":"Person","created_at":1415262332,"updated_at":1415262332,"id":1,"user_id":1,"project_id":1,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"}]'
125
+ http_version:
126
+ recorded_at: Thu, 06 Nov 2014 11:32:52 GMT
127
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/3/people
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Authorization:
13
+ - Bearer _frank_access_token_
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ X-Redbooth-From-Cache:
24
+ - 'off'
25
+ Paginationlinks:
26
+ - <http://localhost:3000/api/3/people?page=1>; rel="last">
27
+ Paginationtotalpages:
28
+ - '1'
29
+ Paginationperpage:
30
+ - '30'
31
+ Paginationcurrentpage:
32
+ - '1'
33
+ Content-Type:
34
+ - application/json; charset=utf-8
35
+ X-Ua-Compatible:
36
+ - IE=Edge,chrome=1
37
+ Etag:
38
+ - '"8e1edbecd1661c8a4c732116460bcf51"'
39
+ Cache-Control:
40
+ - max-age=0, private, must-revalidate
41
+ X-Request-Id:
42
+ - 60a0f20d08a0817714f4e99d567547bf
43
+ X-Runtime:
44
+ - '0.270025'
45
+ Connection:
46
+ - close
47
+ Server:
48
+ - thin 1.6.1 codename Death Proof
49
+ body:
50
+ encoding: UTF-8
51
+ string: '[{"type":"Person","created_at":1415262357,"updated_at":1415262357,"id":17,"user_id":5,"project_id":8,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"participant"},{"type":"Person","created_at":1415262357,"updated_at":1415262357,"id":16,"user_id":4,"project_id":8,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"participant"},{"type":"Person","created_at":1415262357,"updated_at":1415262357,"id":15,"user_id":2,"project_id":8,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"participant"},{"type":"Person","created_at":1415262357,"updated_at":1415262357,"id":14,"user_id":1,"project_id":8,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"},{"type":"Person","created_at":1415262355,"updated_at":1415262355,"id":13,"user_id":4,"project_id":7,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"participant"},{"type":"Person","created_at":1415262355,"updated_at":1415262355,"id":12,"user_id":7,"project_id":7,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"participant"},{"type":"Person","created_at":1415262355,"updated_at":1415262355,"id":11,"user_id":1,"project_id":7,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"},{"type":"Person","created_at":1415262336,"updated_at":1415262336,"id":9,"user_id":5,"project_id":2,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"participant"},{"type":"Person","created_at":1415262336,"updated_at":1415262336,"id":8,"user_id":4,"project_id":2,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"participant"},{"type":"Person","created_at":1415262336,"updated_at":1415262336,"id":7,"user_id":3,"project_id":2,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"participant"},{"type":"Person","created_at":1415262336,"updated_at":1415262336,"id":6,"user_id":2,"project_id":2,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"participant"},{"type":"Person","created_at":1415262336,"updated_at":1415262336,"id":5,"user_id":1,"project_id":5,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"},{"type":"Person","created_at":1415262336,"updated_at":1415262336,"id":4,"user_id":1,"project_id":4,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"},{"type":"Person","created_at":1415262336,"updated_at":1415262336,"id":3,"user_id":1,"project_id":3,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"},{"type":"Person","created_at":1415262336,"updated_at":1415262336,"id":2,"user_id":1,"project_id":2,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"},{"type":"Person","created_at":1415262332,"updated_at":1415262332,"id":1,"user_id":1,"project_id":1,"source_user_id":null,"watch_new_task":false,"watch_new_conversation":false,"watch_new_page":false,"instant_notifications":false,"digest":4,"role":"admin"}]'
52
+ http_version:
53
+ recorded_at: Thu, 06 Nov 2014 11:32:51 GMT
54
+ recorded_with: VCR 2.9.3