redbooth-ruby 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/spec/cassettes/RedboothRuby_Conversation/_create/.yml +47 -0
  3. data/spec/cassettes/RedboothRuby_Conversation/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_conversation.yml +47 -0
  4. data/spec/cassettes/RedboothRuby_Conversation/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_conversation.yml +84 -0
  5. data/spec/cassettes/RedboothRuby_Conversation/_index/.yml +99 -0
  6. data/spec/cassettes/RedboothRuby_Conversation/_index/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_conversations_collection.yml +99 -0
  7. data/spec/cassettes/RedboothRuby_Conversation/_initialize/.yml +45 -0
  8. data/spec/cassettes/RedboothRuby_Conversation/_show/.yml +45 -0
  9. data/spec/cassettes/RedboothRuby_Conversation/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_conversation.yml +45 -0
  10. data/spec/cassettes/RedboothRuby_Conversation/_update/.yml +47 -0
  11. data/spec/cassettes/RedboothRuby_Conversation/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_conversation.yml +47 -0
  12. data/spec/cassettes/{Redbooth_Me → RedboothRuby_Me}/_initialize/.yml +0 -0
  13. data/spec/cassettes/{Redbooth_Me → RedboothRuby_Me}/_show/.yml +0 -0
  14. data/spec/cassettes/{Redbooth_Me → RedboothRuby_Me}/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml +0 -0
  15. data/spec/cassettes/{Redbooth_Me → RedboothRuby_Me}/_update/.yml +0 -0
  16. data/spec/cassettes/{Redbooth_Me → RedboothRuby_Me}/_update/integration/.yml +0 -0
  17. data/spec/cassettes/RedboothRuby_Membership/_create/integration/.yml +83 -0
  18. data/spec/cassettes/RedboothRuby_Membership/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_membership.yml +83 -0
  19. data/spec/cassettes/RedboothRuby_Membership/_index/.yml +58 -0
  20. data/spec/cassettes/RedboothRuby_Membership/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_membership.yml +58 -0
  21. data/spec/cassettes/RedboothRuby_Membership/_initialize/.yml +44 -0
  22. data/spec/cassettes/RedboothRuby_Membership/_show/.yml +44 -0
  23. data/spec/cassettes/RedboothRuby_Membership/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_membership.yml +44 -0
  24. data/spec/cassettes/RedboothRuby_Membership/_update/.yml +46 -0
  25. data/spec/cassettes/RedboothRuby_Membership/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_membership.yml +46 -0
  26. data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_create/.yml +0 -0
  27. data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_organization.yml +0 -0
  28. data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_organization.yml +0 -0
  29. data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_index/.yml +0 -0
  30. data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml +0 -0
  31. data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_initialize/.yml +0 -0
  32. data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_show/.yml +0 -0
  33. data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml +0 -0
  34. data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_update/.yml +0 -0
  35. data/spec/cassettes/{Redbooth_Organization → RedboothRuby_Organization}/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml +0 -0
  36. data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_create/integration/.yml +0 -0
  37. data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_person.yml +0 -0
  38. data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_person.yml +0 -0
  39. data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_index/.yml +0 -0
  40. data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml +0 -0
  41. data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_initialize/.yml +0 -0
  42. data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_show/.yml +0 -0
  43. data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml +0 -0
  44. data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_update/.yml +0 -0
  45. data/spec/cassettes/{Redbooth_Person → RedboothRuby_Person}/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml +0 -0
  46. data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_create/.yml +0 -0
  47. data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_project.yml +0 -0
  48. data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_project.yml +0 -0
  49. data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_index/.yml +0 -0
  50. data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml +0 -0
  51. data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_initialize/.yml +0 -0
  52. data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_show/.yml +0 -0
  53. data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml +0 -0
  54. data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_update/.yml +0 -0
  55. data/spec/cassettes/{Redbooth_Project → RedboothRuby_Project}/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml +0 -0
  56. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_all/.yml +0 -0
  57. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_count/.yml +0 -0
  58. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_current_page/.yml +0 -0
  59. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_current_page/where_endpoint_is_not_paginated/.yml +0 -0
  60. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_initialize/.yml +0 -0
  61. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_next_page/.yml +0 -0
  62. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_next_page/where_endpoint_is_not_paginated/.yml +0 -0
  63. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_next_page/where_is_the_last_page/.yml +0 -0
  64. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_per_page/.yml +0 -0
  65. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_per_page/where_endpoint_is_not_paginated/.yml +0 -0
  66. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_prev_page/.yml +0 -0
  67. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_prev_page/where_endpoint_is_not_paginated/.yml +0 -0
  68. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_prev_page/where_is_the_first_page/.yml +0 -0
  69. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_total_pages/.yml +0 -0
  70. data/spec/cassettes/{Redbooth_Request_Collection → RedboothRuby_Request_Collection}/_total_pages/where_endpoint_is_not_paginated/.yml +0 -0
  71. data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_create/.yml +0 -0
  72. data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml +0 -0
  73. data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml +0 -0
  74. data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_index/.yml +0 -0
  75. data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +0 -0
  76. data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_initialize/.yml +0 -0
  77. data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +0 -0
  78. data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_show/returns_a_task_with_the_correct_assigned_id.yml +0 -0
  79. data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_show/returns_a_task_with_the_correct_id.yml +0 -0
  80. data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_show/returns_a_task_with_the_correct_name.yml +0 -0
  81. data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_show/returns_a_task_with_the_correct_project_id.yml +0 -0
  82. data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_update/.yml +0 -0
  83. data/spec/cassettes/{Redbooth_Task → RedboothRuby_Task}/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +0 -0
  84. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_create/.yml +0 -0
  85. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml +0 -0
  86. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_create/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +0 -0
  87. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_create/name/.yml +0 -0
  88. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_create/project_id/.yml +0 -0
  89. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_create/task_list_id/.yml +0 -0
  90. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml +0 -0
  91. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_index/.yml +0 -0
  92. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_index/class/.yml +0 -0
  93. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +0 -0
  94. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/.yml +0 -0
  95. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/assigned_id/.yml +0 -0
  96. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/description/.yml +0 -0
  97. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/due_on/.yml +0 -0
  98. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/id/.yml +0 -0
  99. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/initializes_all_attributes_correctly.yml +0 -0
  100. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/name/.yml +0 -0
  101. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_initialize/project_id/.yml +0 -0
  102. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/.yml +0 -0
  103. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +0 -0
  104. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml +0 -0
  105. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_task_with_the_correct_assigned_id.yml +0 -0
  106. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_task_with_the_correct_id.yml +0 -0
  107. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_task_with_the_correct_name.yml +0 -0
  108. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_task_with_the_correct_project_id.yml +0 -0
  109. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_user_with_the_correct_email.yml +0 -0
  110. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_user_with_the_correct_first_name.yml +0 -0
  111. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_user_with_the_correct_id.yml +0 -0
  112. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_show/returns_a_user_with_the_correct_last_name.yml +0 -0
  113. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_update/.yml +0 -0
  114. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_update/id/.yml +0 -0
  115. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +0 -0
  116. data/spec/cassettes/{Redbooth_User → RedboothRuby_User}/_update/name/.yml +0 -0
  117. data/spec/{redbooth → redbooth-ruby}/base_spec.rb +2 -2
  118. data/spec/{redbooth → redbooth-ruby}/client_spec.rb +11 -11
  119. data/spec/redbooth-ruby/conversation_spec.rb +83 -0
  120. data/spec/{redbooth → redbooth-ruby}/me_spec.rb +4 -4
  121. data/spec/redbooth-ruby/membership_spec.rb +85 -0
  122. data/spec/{redbooth → redbooth-ruby}/organization_spec.rb +8 -8
  123. data/spec/{redbooth → redbooth-ruby}/person_spec.rb +7 -7
  124. data/spec/{redbooth → redbooth-ruby}/project_spec.rb +8 -8
  125. data/spec/{redbooth → redbooth-ruby}/request/base_spec.rb +9 -9
  126. data/spec/{redbooth → redbooth-ruby}/request/collection_spec.rb +7 -7
  127. data/spec/{redbooth → redbooth-ruby}/request/connection_spec.rb +10 -10
  128. data/spec/{redbooth → redbooth-ruby}/request/info_spec.rb +4 -4
  129. data/spec/{redbooth → redbooth-ruby}/request/response_spec.rb +3 -3
  130. data/spec/{redbooth → redbooth-ruby}/request/validator_spec.rb +9 -9
  131. data/spec/{redbooth → redbooth-ruby}/task_spec.rb +12 -12
  132. data/spec/{redbooth → redbooth-ruby}/user_spec.rb +4 -4
  133. data/spec/redbooth_spec.rb +12 -12
  134. data/spec/shared/authentication_context.rb +3 -3
  135. data/spec/spec_helper.rb +5 -1
  136. metadata +264 -222
@@ -0,0 +1,45 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/3/conversations/1
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
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ X-Ua-Compatible:
26
+ - IE=Edge,chrome=1
27
+ Etag:
28
+ - '"f3515bd5311f81c2c959818c74932bda"'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ X-Request-Id:
32
+ - 2f7a52050731497782727de52cb21a7b
33
+ X-Runtime:
34
+ - '0.240290'
35
+ Connection:
36
+ - close
37
+ Server:
38
+ - thin 1.6.1 codename Death Proof
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"type":"Conversation","created_at":1415622030,"updated_at":1415629593,"id":1,"name":"Project
42
+ Welcome","project_id":2,"user_id":1,"comments_count":3,"is_private":false,"last_activity_id":null}'
43
+ http_version:
44
+ recorded_at: Mon, 10 Nov 2014 15:40:37 GMT
45
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: http://localhost:3000/api/3/conversations/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
+ - '"eb0388b0395ff46f1b8dfae156798eaa"'
31
+ Cache-Control:
32
+ - max-age=0, private, must-revalidate
33
+ X-Request-Id:
34
+ - cb5f8b5c2d9b0d24dc886abfeed75c4c
35
+ X-Runtime:
36
+ - '0.624188'
37
+ Connection:
38
+ - close
39
+ Server:
40
+ - thin 1.6.1 codename Death Proof
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"type":"Conversation","created_at":1415622390,"updated_at":1415633994,"id":2,"name":"new
44
+ test name","project_id":2,"user_id":2,"comments_count":5,"is_private":false,"last_activity_id":null}'
45
+ http_version:
46
+ recorded_at: Mon, 10 Nov 2014 15:39:54 GMT
47
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: http://localhost:3000/api/3/conversations/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
+ - '"eb0388b0395ff46f1b8dfae156798eaa"'
31
+ Cache-Control:
32
+ - max-age=0, private, must-revalidate
33
+ X-Request-Id:
34
+ - 5bf34a44ebcf7b527c8185e38b7daea5
35
+ X-Runtime:
36
+ - '7.976789'
37
+ Connection:
38
+ - close
39
+ Server:
40
+ - thin 1.6.1 codename Death Proof
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"type":"Conversation","created_at":1415622390,"updated_at":1415633994,"id":2,"name":"new
44
+ test name","project_id":2,"user_id":2,"comments_count":5,"is_private":false,"last_activity_id":null}'
45
+ http_version:
46
+ recorded_at: Mon, 10 Nov 2014 15:39:54 GMT
47
+ 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/memberships
6
+ body:
7
+ encoding: UTF-8
8
+ string: organization_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
+ - '"c43d4811513a60f239d4e37cc1a6b672"'
31
+ Cache-Control:
32
+ - max-age=0, private, must-revalidate
33
+ X-Request-Id:
34
+ - e7d7b1be74738262b904a167b2d8de23
35
+ X-Runtime:
36
+ - '0.772512'
37
+ Connection:
38
+ - close
39
+ Server:
40
+ - thin 1.6.1 codename Death Proof
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"type":"Membership","id":3,"user_id":3,"organization_id":1,"role":"participant"}'
44
+ http_version:
45
+ recorded_at: Mon, 10 Nov 2014 14:53:00 GMT
46
+ - request:
47
+ method: delete
48
+ uri: http://localhost:3000/api/3/memberships/3
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
+ - eda20c5053aa79ec299252f9e94f58db
72
+ X-Runtime:
73
+ - '12.424863'
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: Mon, 10 Nov 2014 14:53:12 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/memberships
6
+ body:
7
+ encoding: UTF-8
8
+ string: organization_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
+ - '"c43d4811513a60f239d4e37cc1a6b672"'
31
+ Cache-Control:
32
+ - max-age=0, private, must-revalidate
33
+ X-Request-Id:
34
+ - 5c9119100d63736951eed1dc33540d6a
35
+ X-Runtime:
36
+ - '7.106531'
37
+ Connection:
38
+ - close
39
+ Server:
40
+ - thin 1.6.1 codename Death Proof
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"type":"Membership","id":3,"user_id":3,"organization_id":1,"role":"participant"}'
44
+ http_version:
45
+ recorded_at: Mon, 10 Nov 2014 14:54:07 GMT
46
+ - request:
47
+ method: delete
48
+ uri: http://localhost:3000/api/3/memberships/3
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
+ - 8e6cef7096b211bcbe0c0e33c203d224
72
+ X-Runtime:
73
+ - '0.368557'
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: Mon, 10 Nov 2014 14:54:08 GMT
83
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,58 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/3/memberships
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
+ Last-Modified:
24
+ - Mon, 10 Nov 2014 12:39:01 GMT
25
+ Paginationlinks:
26
+ - <http://localhost:3000/api/3/memberships?page=1>; rel="last">
27
+ Paginationtotalpages:
28
+ - '1'
29
+ Paginationperpage:
30
+ - '30'
31
+ Paginationcurrentpage:
32
+ - '1'
33
+ Paginationtotalobjects:
34
+ - '7'
35
+ X-Redbooth-Updated-At:
36
+ - '1415623141491'
37
+ X-Redbooth-From-Cache:
38
+ - 'false'
39
+ Content-Type:
40
+ - application/json; charset=utf-8
41
+ Cache-Control:
42
+ - max-age=0, private, must-revalidate
43
+ X-Ua-Compatible:
44
+ - IE=Edge,chrome=1
45
+ X-Request-Id:
46
+ - a9f4c733a85c7da7a880cd2b6997dab8
47
+ X-Runtime:
48
+ - '0.151507'
49
+ Connection:
50
+ - close
51
+ Server:
52
+ - thin 1.6.1 codename Death Proof
53
+ body:
54
+ encoding: UTF-8
55
+ string: '[{"type":"Membership","id":7,"user_id":4,"organization_id":2,"role":"participant"},{"type":"Membership","id":6,"user_id":1,"organization_id":2,"role":"admin"},{"type":"Membership","id":5,"user_id":7,"organization_id":2,"role":"admin"},{"type":"Membership","id":4,"user_id":4,"organization_id":1,"role":"participant"},{"type":"Membership","id":3,"user_id":3,"organization_id":1,"role":"participant"},{"type":"Membership","id":2,"user_id":2,"organization_id":1,"role":"admin"},{"type":"Membership","id":1,"user_id":1,"organization_id":1,"role":"admin"}]'
56
+ http_version:
57
+ recorded_at: Mon, 10 Nov 2014 12:39:01 GMT
58
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,58 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/3/memberships
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
+ Last-Modified:
24
+ - Mon, 10 Nov 2014 12:40:22 GMT
25
+ Paginationlinks:
26
+ - <http://localhost:3000/api/3/memberships?page=1>; rel="last">
27
+ Paginationtotalpages:
28
+ - '1'
29
+ Paginationperpage:
30
+ - '30'
31
+ Paginationcurrentpage:
32
+ - '1'
33
+ Paginationtotalobjects:
34
+ - '7'
35
+ X-Redbooth-Updated-At:
36
+ - '1415623222766'
37
+ X-Redbooth-From-Cache:
38
+ - 'false'
39
+ Content-Type:
40
+ - application/json; charset=utf-8
41
+ Cache-Control:
42
+ - max-age=0, private, must-revalidate
43
+ X-Ua-Compatible:
44
+ - IE=Edge,chrome=1
45
+ X-Request-Id:
46
+ - 54363c886f0db59a3c84364885c09317
47
+ X-Runtime:
48
+ - '0.119833'
49
+ Connection:
50
+ - close
51
+ Server:
52
+ - thin 1.6.1 codename Death Proof
53
+ body:
54
+ encoding: UTF-8
55
+ string: '[{"type":"Membership","id":7,"user_id":4,"organization_id":2,"role":"participant"},{"type":"Membership","id":6,"user_id":1,"organization_id":2,"role":"admin"},{"type":"Membership","id":5,"user_id":7,"organization_id":2,"role":"admin"},{"type":"Membership","id":4,"user_id":4,"organization_id":1,"role":"participant"},{"type":"Membership","id":3,"user_id":3,"organization_id":1,"role":"participant"},{"type":"Membership","id":2,"user_id":2,"organization_id":1,"role":"admin"},{"type":"Membership","id":1,"user_id":1,"organization_id":1,"role":"admin"}]'
56
+ http_version:
57
+ recorded_at: Mon, 10 Nov 2014 12:40:22 GMT
58
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/3/memberships/1
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
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ X-Ua-Compatible:
26
+ - IE=Edge,chrome=1
27
+ Etag:
28
+ - '"e29a6be8cb28645d926c60197da1b4f5"'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ X-Request-Id:
32
+ - 67c926d001b35a9185e9598b10b7aad3
33
+ X-Runtime:
34
+ - '1.618933'
35
+ Connection:
36
+ - close
37
+ Server:
38
+ - thin 1.6.1 codename Death Proof
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"type":"Membership","id":1,"user_id":1,"organization_id":1,"role":"admin"}'
42
+ http_version:
43
+ recorded_at: Mon, 10 Nov 2014 12:38:46 GMT
44
+ recorded_with: VCR 2.9.3