redbooth-ruby 0.0.2

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 (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
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 94b8b9f673b3637f6dca9d220ef06d4734463158
4
+ data.tar.gz: f4054d53999f03d8ea74e69322421752bb2b9442
5
+ SHA512:
6
+ metadata.gz: 29626576e90405979688ed2efbc15c5bc3c5681fc7ca08c52c8c487854ab0de30893ecc0812c31cf5495e64b53a42cc30f68082a6b613c68b15c9e9d89093a11
7
+ data.tar.gz: ee6ba02418c6f5a83476879d54900e199ad5585665040734f59aa96d4ce9cd3b5b9e78127388f29d64bd78c8194a29227d939625d921244b6c717b84241b16a6
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/3/me
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
+ - '"720b3417e3174ca3beeb48fc960e4f68"'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ X-Request-Id:
32
+ - 4e1c4336d39800d7b823a71c4b052c30
33
+ X-Runtime:
34
+ - '0.111003'
35
+ Connection:
36
+ - close
37
+ Server:
38
+ - thin 1.6.1 codename Death Proof
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"type":"User","created_at":1415006969,"updated_at":1415026701,"id":1,"first_name":"Frank","last_name":"Kramer","email":"example_frank@redbooth.com","needs_profile":false,"deleted":false,"bouncing_email":false,"confirmed_user":true,"username":"frank","avatar_url":"http://www.gravatar.com/avatar/d3986ea7084d3ab95900baa2a3686185?size=48&default=mm","profile_avatar_url":"http://www.gravatar.com/avatar/d3986ea7084d3ab95900baa2a3686185?size=278&default=mm","micro_avatar_url":"http://www.gravatar.com/avatar/d3986ea7084d3ab95900baa2a3686185?size=24&default=mm","first_day_of_week":"sunday","biography":"Vel
42
+ incidunt provident. Assumenda necessitatibus qui et soluta nisi consequatur
43
+ et. Consequuntur debitis fugiat voluptatem. Vel nihil aspernatur eos. Consequuntur
44
+ labore atque sed rerum distinctio sed.","locale":"en","time_zone":"Eastern
45
+ Time (US & Canada)","default_digest":4,"notify_conversations":true,"notify_tasks":true,"notify_pages":true,"default_watch_new_task":false,"default_watch_new_conversation":false,"default_watch_new_page":false,"digest_delivery_hour":9,"wants_task_reminder":true,"rss_token":null,"calendar_token":null,"project_activity_digest":"no_digest","chat_token":"85abe6fa143dd8c138c7bda2054133dc","total_tasks":0,"total_assigned_tasks":0,"total_due_on_tasks":0,"invited_count":0,"total_chat_messages":0,"job_title":null,"devices":[],"presence_status":null,"chat_muted_until":0,"presence_until":0,"is_pro":true,"is_orphan":false}'
46
+ http_version:
47
+ recorded_at: Mon, 03 Nov 2014 14:58:57 GMT
48
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/3/me
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
+ - '"720b3417e3174ca3beeb48fc960e4f68"'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ X-Request-Id:
32
+ - 6da8a983b7b9151522195113aaf79e69
33
+ X-Runtime:
34
+ - '0.095611'
35
+ Connection:
36
+ - close
37
+ Server:
38
+ - thin 1.6.1 codename Death Proof
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"type":"User","created_at":1415006969,"updated_at":1415026701,"id":1,"first_name":"Frank","last_name":"Kramer","email":"example_frank@redbooth.com","needs_profile":false,"deleted":false,"bouncing_email":false,"confirmed_user":true,"username":"frank","avatar_url":"http://www.gravatar.com/avatar/d3986ea7084d3ab95900baa2a3686185?size=48&default=mm","profile_avatar_url":"http://www.gravatar.com/avatar/d3986ea7084d3ab95900baa2a3686185?size=278&default=mm","micro_avatar_url":"http://www.gravatar.com/avatar/d3986ea7084d3ab95900baa2a3686185?size=24&default=mm","first_day_of_week":"sunday","biography":"Vel
42
+ incidunt provident. Assumenda necessitatibus qui et soluta nisi consequatur
43
+ et. Consequuntur debitis fugiat voluptatem. Vel nihil aspernatur eos. Consequuntur
44
+ labore atque sed rerum distinctio sed.","locale":"en","time_zone":"Eastern
45
+ Time (US & Canada)","default_digest":4,"notify_conversations":true,"notify_tasks":true,"notify_pages":true,"default_watch_new_task":false,"default_watch_new_conversation":false,"default_watch_new_page":false,"digest_delivery_hour":9,"wants_task_reminder":true,"rss_token":null,"calendar_token":null,"project_activity_digest":"no_digest","chat_token":"85abe6fa143dd8c138c7bda2054133dc","total_tasks":0,"total_assigned_tasks":0,"total_due_on_tasks":0,"invited_count":0,"total_chat_messages":0,"job_title":null,"devices":[],"presence_status":null,"chat_muted_until":0,"presence_until":0,"is_pro":true,"is_orphan":false}'
46
+ http_version:
47
+ recorded_at: Mon, 03 Nov 2014 14:59:03 GMT
48
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/3/me
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
+ - '"92650c880aea0e540da99c03ef74f7ca"'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ X-Request-Id:
32
+ - 5f4014d627ce3c977d7bcd8cc78a97c9
33
+ X-Runtime:
34
+ - '0.092520'
35
+ Connection:
36
+ - close
37
+ Server:
38
+ - thin 1.6.1 codename Death Proof
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"type":"User","created_at":1415006969,"updated_at":1415026891,"id":1,"first_name":"new_first_name","last_name":"Kramer","email":"example_frank@redbooth.com","needs_profile":false,"deleted":false,"bouncing_email":false,"confirmed_user":true,"username":"frank","avatar_url":"http://www.gravatar.com/avatar/d3986ea7084d3ab95900baa2a3686185?size=48&default=mm","profile_avatar_url":"http://www.gravatar.com/avatar/d3986ea7084d3ab95900baa2a3686185?size=278&default=mm","micro_avatar_url":"http://www.gravatar.com/avatar/d3986ea7084d3ab95900baa2a3686185?size=24&default=mm","first_day_of_week":"sunday","biography":"Vel
42
+ incidunt provident. Assumenda necessitatibus qui et soluta nisi consequatur
43
+ et. Consequuntur debitis fugiat voluptatem. Vel nihil aspernatur eos. Consequuntur
44
+ labore atque sed rerum distinctio sed.","locale":"en","time_zone":"Eastern
45
+ Time (US & Canada)","default_digest":4,"notify_conversations":true,"notify_tasks":true,"notify_pages":true,"default_watch_new_task":false,"default_watch_new_conversation":false,"default_watch_new_page":false,"digest_delivery_hour":9,"wants_task_reminder":true,"rss_token":null,"calendar_token":null,"project_activity_digest":"no_digest","chat_token":"85abe6fa143dd8c138c7bda2054133dc","total_tasks":0,"total_assigned_tasks":0,"total_due_on_tasks":0,"invited_count":0,"total_chat_messages":0,"job_title":null,"devices":[],"presence_status":null,"chat_muted_until":0,"presence_until":0,"is_pro":true,"is_orphan":false}'
46
+ http_version:
47
+ recorded_at: Mon, 03 Nov 2014 15:02:35 GMT
48
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,97 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: http://localhost:3000/api/3/me
6
+ body:
7
+ encoding: UTF-8
8
+ string: first_name=new_first_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
+ - '"cca34802428427f7fa777980d1af0e76"'
31
+ Cache-Control:
32
+ - max-age=0, private, must-revalidate
33
+ X-Request-Id:
34
+ - 36430335556be3e1a5d858bfe11d10e4
35
+ X-Runtime:
36
+ - '0.147227'
37
+ Connection:
38
+ - close
39
+ Server:
40
+ - thin 1.6.1 codename Death Proof
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"type":"User","created_at":1415006969,"updated_at":1415026743,"id":1,"first_name":"new_first_name","last_name":"Kramer","email":"example_frank@redbooth.com","needs_profile":false,"deleted":false,"bouncing_email":false,"confirmed_user":true,"username":"frank","avatar_url":"http://www.gravatar.com/avatar/d3986ea7084d3ab95900baa2a3686185?size=48&default=mm","profile_avatar_url":"http://www.gravatar.com/avatar/d3986ea7084d3ab95900baa2a3686185?size=278&default=mm","micro_avatar_url":"http://www.gravatar.com/avatar/d3986ea7084d3ab95900baa2a3686185?size=24&default=mm","first_day_of_week":"sunday","biography":"Vel
44
+ incidunt provident. Assumenda necessitatibus qui et soluta nisi consequatur
45
+ et. Consequuntur debitis fugiat voluptatem. Vel nihil aspernatur eos. Consequuntur
46
+ labore atque sed rerum distinctio sed.","locale":"en","time_zone":"Eastern
47
+ Time (US & Canada)","default_digest":4,"notify_conversations":true,"notify_tasks":true,"notify_pages":true,"default_watch_new_task":false,"default_watch_new_conversation":false,"default_watch_new_page":false,"digest_delivery_hour":9,"wants_task_reminder":true,"rss_token":null,"calendar_token":null,"project_activity_digest":"no_digest","chat_token":"85abe6fa143dd8c138c7bda2054133dc","total_tasks":0,"total_assigned_tasks":0,"total_due_on_tasks":0,"invited_count":0,"total_chat_messages":0,"job_title":null,"devices":[],"presence_status":null,"chat_muted_until":0,"presence_until":0,"is_pro":true,"is_orphan":false}'
48
+ http_version:
49
+ recorded_at: Mon, 03 Nov 2014 14:59:03 GMT
50
+ - request:
51
+ method: put
52
+ uri: http://localhost:3000/api/3/me
53
+ body:
54
+ encoding: UTF-8
55
+ string: first_name=Frank
56
+ headers:
57
+ User-Agent:
58
+ - Faraday v0.9.0
59
+ Authorization:
60
+ - Bearer _frank_access_token_
61
+ Content-Type:
62
+ - application/x-www-form-urlencoded
63
+ Accept-Encoding:
64
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
65
+ Accept:
66
+ - "*/*"
67
+ response:
68
+ status:
69
+ code: 200
70
+ message: OK
71
+ headers:
72
+ Content-Type:
73
+ - application/json; charset=utf-8
74
+ X-Ua-Compatible:
75
+ - IE=Edge,chrome=1
76
+ Etag:
77
+ - '"cca34802428427f7fa777980d1af0e76"'
78
+ Cache-Control:
79
+ - max-age=0, private, must-revalidate
80
+ X-Request-Id:
81
+ - 8612143faade945f89659d53ae5a3f30
82
+ X-Runtime:
83
+ - '0.121461'
84
+ Connection:
85
+ - close
86
+ Server:
87
+ - thin 1.6.1 codename Death Proof
88
+ body:
89
+ encoding: UTF-8
90
+ string: '{"type":"User","created_at":1415006969,"updated_at":1415026743,"id":1,"first_name":"new_first_name","last_name":"Kramer","email":"example_frank@redbooth.com","needs_profile":false,"deleted":false,"bouncing_email":false,"confirmed_user":true,"username":"frank","avatar_url":"http://www.gravatar.com/avatar/d3986ea7084d3ab95900baa2a3686185?size=48&default=mm","profile_avatar_url":"http://www.gravatar.com/avatar/d3986ea7084d3ab95900baa2a3686185?size=278&default=mm","micro_avatar_url":"http://www.gravatar.com/avatar/d3986ea7084d3ab95900baa2a3686185?size=24&default=mm","first_day_of_week":"sunday","biography":"Vel
91
+ incidunt provident. Assumenda necessitatibus qui et soluta nisi consequatur
92
+ et. Consequuntur debitis fugiat voluptatem. Vel nihil aspernatur eos. Consequuntur
93
+ labore atque sed rerum distinctio sed.","locale":"en","time_zone":"Eastern
94
+ Time (US & Canada)","default_digest":4,"notify_conversations":true,"notify_tasks":true,"notify_pages":true,"default_watch_new_task":false,"default_watch_new_conversation":false,"default_watch_new_page":false,"digest_delivery_hour":9,"wants_task_reminder":true,"rss_token":null,"calendar_token":null,"project_activity_digest":"no_digest","chat_token":"85abe6fa143dd8c138c7bda2054133dc","total_tasks":0,"total_assigned_tasks":0,"total_due_on_tasks":0,"invited_count":0,"total_chat_messages":0,"job_title":null,"devices":[],"presence_status":null,"chat_muted_until":0,"presence_until":0,"is_pro":true,"is_orphan":false}'
95
+ http_version:
96
+ recorded_at: Mon, 03 Nov 2014 14:59:03 GMT
97
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,97 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: http://localhost:3000/api/3/me
6
+ body:
7
+ encoding: UTF-8
8
+ string: first_name=new_first_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
+ - '"92650c880aea0e540da99c03ef74f7ca"'
31
+ Cache-Control:
32
+ - max-age=0, private, must-revalidate
33
+ X-Request-Id:
34
+ - 09568493882de36bd3326110a04d6e83
35
+ X-Runtime:
36
+ - '0.138708'
37
+ Connection:
38
+ - close
39
+ Server:
40
+ - thin 1.6.1 codename Death Proof
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"type":"User","created_at":1415006969,"updated_at":1415026891,"id":1,"first_name":"new_first_name","last_name":"Kramer","email":"example_frank@redbooth.com","needs_profile":false,"deleted":false,"bouncing_email":false,"confirmed_user":true,"username":"frank","avatar_url":"http://www.gravatar.com/avatar/d3986ea7084d3ab95900baa2a3686185?size=48&default=mm","profile_avatar_url":"http://www.gravatar.com/avatar/d3986ea7084d3ab95900baa2a3686185?size=278&default=mm","micro_avatar_url":"http://www.gravatar.com/avatar/d3986ea7084d3ab95900baa2a3686185?size=24&default=mm","first_day_of_week":"sunday","biography":"Vel
44
+ incidunt provident. Assumenda necessitatibus qui et soluta nisi consequatur
45
+ et. Consequuntur debitis fugiat voluptatem. Vel nihil aspernatur eos. Consequuntur
46
+ labore atque sed rerum distinctio sed.","locale":"en","time_zone":"Eastern
47
+ Time (US & Canada)","default_digest":4,"notify_conversations":true,"notify_tasks":true,"notify_pages":true,"default_watch_new_task":false,"default_watch_new_conversation":false,"default_watch_new_page":false,"digest_delivery_hour":9,"wants_task_reminder":true,"rss_token":null,"calendar_token":null,"project_activity_digest":"no_digest","chat_token":"85abe6fa143dd8c138c7bda2054133dc","total_tasks":0,"total_assigned_tasks":0,"total_due_on_tasks":0,"invited_count":0,"total_chat_messages":0,"job_title":null,"devices":[],"presence_status":null,"chat_muted_until":0,"presence_until":0,"is_pro":true,"is_orphan":false}'
48
+ http_version:
49
+ recorded_at: Mon, 03 Nov 2014 15:01:31 GMT
50
+ - request:
51
+ method: put
52
+ uri: http://localhost:3000/api/3/me
53
+ body:
54
+ encoding: UTF-8
55
+ string: first_name=Frank
56
+ headers:
57
+ User-Agent:
58
+ - Faraday v0.9.0
59
+ Authorization:
60
+ - Bearer _frank_access_token_
61
+ Content-Type:
62
+ - application/x-www-form-urlencoded
63
+ Accept-Encoding:
64
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
65
+ Accept:
66
+ - "*/*"
67
+ response:
68
+ status:
69
+ code: 200
70
+ message: OK
71
+ headers:
72
+ Content-Type:
73
+ - application/json; charset=utf-8
74
+ X-Ua-Compatible:
75
+ - IE=Edge,chrome=1
76
+ Etag:
77
+ - '"92650c880aea0e540da99c03ef74f7ca"'
78
+ Cache-Control:
79
+ - max-age=0, private, must-revalidate
80
+ X-Request-Id:
81
+ - f96c4b19eca56a8f50f10a45a417fe81
82
+ X-Runtime:
83
+ - '0.112601'
84
+ Connection:
85
+ - close
86
+ Server:
87
+ - thin 1.6.1 codename Death Proof
88
+ body:
89
+ encoding: UTF-8
90
+ string: '{"type":"User","created_at":1415006969,"updated_at":1415026891,"id":1,"first_name":"new_first_name","last_name":"Kramer","email":"example_frank@redbooth.com","needs_profile":false,"deleted":false,"bouncing_email":false,"confirmed_user":true,"username":"frank","avatar_url":"http://www.gravatar.com/avatar/d3986ea7084d3ab95900baa2a3686185?size=48&default=mm","profile_avatar_url":"http://www.gravatar.com/avatar/d3986ea7084d3ab95900baa2a3686185?size=278&default=mm","micro_avatar_url":"http://www.gravatar.com/avatar/d3986ea7084d3ab95900baa2a3686185?size=24&default=mm","first_day_of_week":"sunday","biography":"Vel
91
+ incidunt provident. Assumenda necessitatibus qui et soluta nisi consequatur
92
+ et. Consequuntur debitis fugiat voluptatem. Vel nihil aspernatur eos. Consequuntur
93
+ labore atque sed rerum distinctio sed.","locale":"en","time_zone":"Eastern
94
+ Time (US & Canada)","default_digest":4,"notify_conversations":true,"notify_tasks":true,"notify_pages":true,"default_watch_new_task":false,"default_watch_new_conversation":false,"default_watch_new_page":false,"digest_delivery_hour":9,"wants_task_reminder":true,"rss_token":null,"calendar_token":null,"project_activity_digest":"no_digest","chat_token":"85abe6fa143dd8c138c7bda2054133dc","total_tasks":0,"total_assigned_tasks":0,"total_due_on_tasks":0,"invited_count":0,"total_chat_messages":0,"job_title":null,"devices":[],"presence_status":null,"chat_muted_until":0,"presence_until":0,"is_pro":true,"is_orphan":false}'
95
+ http_version:
96
+ recorded_at: Mon, 03 Nov 2014 15:01:31 GMT
97
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:3000/api/3/organizations
6
+ body:
7
+ encoding: UTF-8
8
+ string: name=new+Organization
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
+ - '"b720431aa59d1eb96d3b924401a99285"'
31
+ Cache-Control:
32
+ - max-age=0, private, must-revalidate
33
+ X-Request-Id:
34
+ - a1725e8c0f9048ce319e16ca3c5be7d5
35
+ X-Runtime:
36
+ - '3.113173'
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":1415112892,"updated_at":1415112892,"id":5,"name":"new
44
+ Organization","permalink":"new-organization-tezd8","domain":null,"settings":{"allow_comment_deletion":true},"omit_email_processing":false,"product":"50-seats-trial","product_name":"trial","feature_level":"freeu","subscription_id":5,"seats":50,"remaining_users":49,"available_users":50,"used_users":1,"remaining_projects":999998,"available_projects":999999,"used_projects":1,"metadata":{},"square_logo_url":"/images/logos/square/missing.png","top_logo_url":"/images/logos/top/missing.png","has_logo":false,"is_pro":true,"description":null}'
45
+ http_version:
46
+ recorded_at: Tue, 04 Nov 2014 14:54:55 GMT
47
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:3000/api/3/organizations
6
+ body:
7
+ encoding: UTF-8
8
+ string: name=new+Organization
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
+ - '"50253d08c35ccf95bd1f1176216dde58"'
31
+ Cache-Control:
32
+ - max-age=0, private, must-revalidate
33
+ X-Request-Id:
34
+ - 17992fb7864e5182332cac9f6c1c8397
35
+ X-Runtime:
36
+ - '5.361234'
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":1415112887,"updated_at":1415112887,"id":4,"name":"new
44
+ Organization","permalink":"new-organization","domain":null,"settings":{"allow_comment_deletion":true},"omit_email_processing":false,"product":"50-seats-trial","product_name":"trial","feature_level":"freeu","subscription_id":4,"seats":50,"remaining_users":49,"available_users":50,"used_users":1,"remaining_projects":999998,"available_projects":999999,"used_projects":1,"metadata":{},"square_logo_url":"/images/logos/square/missing.png","top_logo_url":"/images/logos/top/missing.png","has_logo":false,"is_pro":true,"description":null}'
45
+ http_version:
46
+ recorded_at: Tue, 04 Nov 2014 14:54:52 GMT
47
+ recorded_with: VCR 2.9.3