redbooth-ruby 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/spec/cassettes/Redbooth_Me/_initialize/.yml +48 -0
- data/spec/cassettes/Redbooth_Me/_show/.yml +48 -0
- data/spec/cassettes/Redbooth_Me/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml +48 -0
- data/spec/cassettes/Redbooth_Me/_update/.yml +97 -0
- data/spec/cassettes/Redbooth_Me/_update/integration/.yml +97 -0
- data/spec/cassettes/Redbooth_Organization/_create/.yml +47 -0
- data/spec/cassettes/Redbooth_Organization/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_organization.yml +47 -0
- data/spec/cassettes/Redbooth_Organization/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_organization.yml +123 -0
- data/spec/cassettes/Redbooth_Organization/_index/.yml +58 -0
- data/spec/cassettes/Redbooth_Organization/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml +58 -0
- data/spec/cassettes/Redbooth_Organization/_initialize/.yml +64 -0
- data/spec/cassettes/Redbooth_Organization/_show/.yml +64 -0
- data/spec/cassettes/Redbooth_Organization/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml +64 -0
- data/spec/cassettes/Redbooth_Organization/_update/.yml +48 -0
- data/spec/cassettes/Redbooth_Organization/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_organization.yml +48 -0
- data/spec/cassettes/Redbooth_Person/_create/integration/.yml +83 -0
- data/spec/cassettes/Redbooth_Person/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_person.yml +83 -0
- data/spec/cassettes/Redbooth_Person/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_person.yml +83 -0
- data/spec/cassettes/Redbooth_Person/_index/.yml +127 -0
- data/spec/cassettes/Redbooth_Person/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml +54 -0
- data/spec/cassettes/Redbooth_Person/_initialize/.yml +117 -0
- data/spec/cassettes/Redbooth_Person/_show/.yml +117 -0
- data/spec/cassettes/Redbooth_Person/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml +44 -0
- data/spec/cassettes/Redbooth_Person/_update/.yml +163 -0
- data/spec/cassettes/Redbooth_Person/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_person.yml +294 -0
- data/spec/cassettes/Redbooth_Project/_create/.yml +47 -0
- data/spec/cassettes/Redbooth_Project/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_project.yml +47 -0
- data/spec/cassettes/Redbooth_Project/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_project.yml +2296 -0
- data/spec/cassettes/Redbooth_Project/_index/.yml +62 -0
- data/spec/cassettes/Redbooth_Project/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml +62 -0
- data/spec/cassettes/Redbooth_Project/_initialize/.yml +44 -0
- data/spec/cassettes/Redbooth_Project/_show/.yml +44 -0
- data/spec/cassettes/Redbooth_Project/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml +44 -0
- data/spec/cassettes/Redbooth_Project/_update/.yml +47 -0
- data/spec/cassettes/Redbooth_Project/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_project.yml +47 -0
- data/spec/cassettes/Redbooth_Request_Collection/_all/.yml +59 -0
- data/spec/cassettes/Redbooth_Request_Collection/_count/.yml +59 -0
- data/spec/cassettes/Redbooth_Request_Collection/_current_page/.yml +59 -0
- data/spec/cassettes/Redbooth_Request_Collection/_current_page/where_endpoint_is_not_paginated/.yml +59 -0
- data/spec/cassettes/Redbooth_Request_Collection/_initialize/.yml +59 -0
- data/spec/cassettes/Redbooth_Request_Collection/_next_page/.yml +106 -0
- data/spec/cassettes/Redbooth_Request_Collection/_next_page/where_endpoint_is_not_paginated/.yml +59 -0
- data/spec/cassettes/Redbooth_Request_Collection/_next_page/where_is_the_last_page/.yml +59 -0
- data/spec/cassettes/Redbooth_Request_Collection/_per_page/.yml +59 -0
- data/spec/cassettes/Redbooth_Request_Collection/_per_page/where_endpoint_is_not_paginated/.yml +59 -0
- data/spec/cassettes/Redbooth_Request_Collection/_prev_page/.yml +115 -0
- data/spec/cassettes/Redbooth_Request_Collection/_prev_page/where_endpoint_is_not_paginated/.yml +59 -0
- data/spec/cassettes/Redbooth_Request_Collection/_prev_page/where_is_the_first_page/.yml +159 -0
- data/spec/cassettes/Redbooth_Request_Collection/_total_pages/.yml +59 -0
- data/spec/cassettes/Redbooth_Request_Collection/_total_pages/where_endpoint_is_not_paginated/.yml +59 -0
- data/spec/cassettes/Redbooth_Task/_create/.yml +47 -0
- data/spec/cassettes/Redbooth_Task/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml +47 -0
- data/spec/cassettes/Redbooth_Task/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml +84 -0
- data/spec/cassettes/Redbooth_Task/_index/.yml +1037 -0
- data/spec/cassettes/Redbooth_Task/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +437 -0
- data/spec/cassettes/Redbooth_Task/_initialize/.yml +47 -0
- data/spec/cassettes/Redbooth_Task/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +47 -0
- data/spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_assigned_id.yml +47 -0
- data/spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_id.yml +47 -0
- data/spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_name.yml +47 -0
- data/spec/cassettes/Redbooth_Task/_show/returns_a_task_with_the_correct_project_id.yml +47 -0
- data/spec/cassettes/Redbooth_Task/_update/.yml +47 -0
- data/spec/cassettes/Redbooth_Task/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +47 -0
- data/spec/cassettes/Redbooth_User/_create/.yml +84 -0
- data/spec/cassettes/Redbooth_User/_create/makes_a_new_POST_request_using_the_correct_API_endpoint_to_create_a_specific_task.yml +47 -0
- data/spec/cassettes/Redbooth_User/_create/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +47 -0
- data/spec/cassettes/Redbooth_User/_create/name/.yml +47 -0
- data/spec/cassettes/Redbooth_User/_create/project_id/.yml +47 -0
- data/spec/cassettes/Redbooth_User/_create/task_list_id/.yml +47 -0
- data/spec/cassettes/Redbooth_User/_delete/makes_a_new_DELETE_request_using_the_correct_API_endpoint_to_delete_a_specific_task.yml +84 -0
- data/spec/cassettes/Redbooth_User/_index/.yml +413 -0
- data/spec/cassettes/Redbooth_User/_index/class/.yml +400 -0
- data/spec/cassettes/Redbooth_User/_index/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +400 -0
- data/spec/cassettes/Redbooth_User/_initialize/.yml +88 -0
- data/spec/cassettes/Redbooth_User/_initialize/assigned_id/.yml +47 -0
- data/spec/cassettes/Redbooth_User/_initialize/description/.yml +47 -0
- data/spec/cassettes/Redbooth_User/_initialize/due_on/.yml +47 -0
- data/spec/cassettes/Redbooth_User/_initialize/id/.yml +47 -0
- data/spec/cassettes/Redbooth_User/_initialize/initializes_all_attributes_correctly.yml +44 -0
- data/spec/cassettes/Redbooth_User/_initialize/name/.yml +47 -0
- data/spec/cassettes/Redbooth_User/_initialize/project_id/.yml +47 -0
- data/spec/cassettes/Redbooth_User/_show/.yml +44 -0
- data/spec/cassettes/Redbooth_User/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +47 -0
- data/spec/cassettes/Redbooth_User/_show/makes_a_new_GET_request_using_the_correct_API_endpoint_to_receive_a_specific_user.yml +88 -0
- data/spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_assigned_id.yml +47 -0
- data/spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_id.yml +47 -0
- data/spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_name.yml +47 -0
- data/spec/cassettes/Redbooth_User/_show/returns_a_task_with_the_correct_project_id.yml +47 -0
- data/spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_email.yml +393 -0
- data/spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_first_name.yml +393 -0
- data/spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_id.yml +393 -0
- data/spec/cassettes/Redbooth_User/_show/returns_a_user_with_the_correct_last_name.yml +393 -0
- data/spec/cassettes/Redbooth_User/_update/.yml +47 -0
- data/spec/cassettes/Redbooth_User/_update/id/.yml +47 -0
- data/spec/cassettes/Redbooth_User/_update/makes_a_new_PUT_request_using_the_correct_API_endpoint_to_receive_a_specific_task.yml +47 -0
- data/spec/cassettes/Redbooth_User/_update/name/.yml +47 -0
- data/spec/fixtures/hola.txt +1 -0
- data/spec/redbooth/base_spec.rb +12 -0
- data/spec/redbooth/client_spec.rb +69 -0
- data/spec/redbooth/me_spec.rb +56 -0
- data/spec/redbooth/organization_spec.rb +80 -0
- data/spec/redbooth/person_spec.rb +85 -0
- data/spec/redbooth/project_spec.rb +80 -0
- data/spec/redbooth/request/base_spec.rb +53 -0
- data/spec/redbooth/request/collection_spec.rb +104 -0
- data/spec/redbooth/request/connection_spec.rb +82 -0
- data/spec/redbooth/request/info_spec.rb +27 -0
- data/spec/redbooth/request/response_spec.rb +32 -0
- data/spec/redbooth/request/validator_spec.rb +45 -0
- data/spec/redbooth/task_spec.rb +90 -0
- data/spec/redbooth/user_spec.rb +32 -0
- data/spec/redbooth_spec.rb +69 -0
- data/spec/shared/authentication_context.rb +24 -0
- data/spec/spec_helper.rb +22 -0
- metadata +370 -0
data/spec/cassettes/Redbooth_Request_Collection/_per_page/where_endpoint_is_not_paginated/.yml
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/3/tasks?per_page=2
|
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, 03 Nov 2014 14:36:53 GMT
|
25
|
+
X-Redbooth-Updated-At:
|
26
|
+
- '1415025413295'
|
27
|
+
X-Redbooth-From-Cache:
|
28
|
+
- 'true'
|
29
|
+
Paginationlinks:
|
30
|
+
- <http://localhost:3000/api/3/tasks?page=2&per_page=2>; rel="next">, <http://localhost:3000/api/3/tasks?page=12&per_page=2>;
|
31
|
+
rel="last">
|
32
|
+
Paginationtotalpages:
|
33
|
+
- '12'
|
34
|
+
Paginationperpage:
|
35
|
+
- '2'
|
36
|
+
Paginationcurrentpage:
|
37
|
+
- '1'
|
38
|
+
Content-Type:
|
39
|
+
- application/json; charset=utf-8
|
40
|
+
Cache-Control:
|
41
|
+
- max-age=0, private, must-revalidate
|
42
|
+
X-Ua-Compatible:
|
43
|
+
- IE=Edge,chrome=1
|
44
|
+
X-Request-Id:
|
45
|
+
- 8ec79470b1ebf8f42d686ac0a652afd2
|
46
|
+
X-Runtime:
|
47
|
+
- '0.089775'
|
48
|
+
Connection:
|
49
|
+
- close
|
50
|
+
Server:
|
51
|
+
- thin 1.6.1 codename Death Proof
|
52
|
+
body:
|
53
|
+
encoding: UTF-8
|
54
|
+
string: '[{"type":"Task","created_at":1415025412,"updated_at":1415025412,"id":51,"name":"new
|
55
|
+
created task","task_list_id":3,"comments_count":0,"assigned_id":null,"is_private":false,"project_id":2,"urgent":false,"user_id":1,"position":6,"last_activity_id":null,"record_conversion_type":null,"record_conversion_id":null,"metadata":{},"subtasks_count":0,"resolved_subtasks_count":0,"watcher_ids":[1],"description":null,"description_html":"","description_updated_by_user_id":null,"updated_by_id":null,"deleted":false,"row_order":8257536,"status":"new","due_on":null},{"type":"Task","created_at":1415025412,"updated_at":1415025412,"id":50,"name":"new
|
56
|
+
created task","task_list_id":3,"comments_count":0,"assigned_id":null,"is_private":false,"project_id":2,"urgent":false,"user_id":1,"position":5,"last_activity_id":null,"record_conversion_type":null,"record_conversion_id":null,"metadata":{},"subtasks_count":0,"resolved_subtasks_count":0,"watcher_ids":[1],"description":null,"description_html":"","description_updated_by_user_id":null,"updated_by_id":null,"deleted":false,"row_order":8126464,"status":"new","due_on":null}]'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Tue, 04 Nov 2014 13:52:33 GMT
|
59
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,115 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/3/tasks?per_page=2
|
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, 03 Nov 2014 14:36:53 GMT
|
25
|
+
X-Redbooth-Updated-At:
|
26
|
+
- '1415025413295'
|
27
|
+
X-Redbooth-From-Cache:
|
28
|
+
- 'true'
|
29
|
+
Paginationlinks:
|
30
|
+
- <http://localhost:3000/api/3/tasks?page=2&per_page=2>; rel="next">, <http://localhost:3000/api/3/tasks?page=12&per_page=2>;
|
31
|
+
rel="last">
|
32
|
+
Paginationtotalpages:
|
33
|
+
- '12'
|
34
|
+
Paginationperpage:
|
35
|
+
- '2'
|
36
|
+
Paginationcurrentpage:
|
37
|
+
- '1'
|
38
|
+
Content-Type:
|
39
|
+
- application/json; charset=utf-8
|
40
|
+
Cache-Control:
|
41
|
+
- max-age=0, private, must-revalidate
|
42
|
+
X-Ua-Compatible:
|
43
|
+
- IE=Edge,chrome=1
|
44
|
+
X-Request-Id:
|
45
|
+
- 149ce2d80390fff5aa3aa5b242a1504b
|
46
|
+
X-Runtime:
|
47
|
+
- '0.095094'
|
48
|
+
Connection:
|
49
|
+
- close
|
50
|
+
Server:
|
51
|
+
- thin 1.6.1 codename Death Proof
|
52
|
+
body:
|
53
|
+
encoding: UTF-8
|
54
|
+
string: '[{"type":"Task","created_at":1415025412,"updated_at":1415025412,"id":51,"name":"new
|
55
|
+
created task","task_list_id":3,"comments_count":0,"assigned_id":null,"is_private":false,"project_id":2,"urgent":false,"user_id":1,"position":6,"last_activity_id":null,"record_conversion_type":null,"record_conversion_id":null,"metadata":{},"subtasks_count":0,"resolved_subtasks_count":0,"watcher_ids":[1],"description":null,"description_html":"","description_updated_by_user_id":null,"updated_by_id":null,"deleted":false,"row_order":8257536,"status":"new","due_on":null},{"type":"Task","created_at":1415025412,"updated_at":1415025412,"id":50,"name":"new
|
56
|
+
created task","task_list_id":3,"comments_count":0,"assigned_id":null,"is_private":false,"project_id":2,"urgent":false,"user_id":1,"position":5,"last_activity_id":null,"record_conversion_type":null,"record_conversion_id":null,"metadata":{},"subtasks_count":0,"resolved_subtasks_count":0,"watcher_ids":[1],"description":null,"description_html":"","description_updated_by_user_id":null,"updated_by_id":null,"deleted":false,"row_order":8126464,"status":"new","due_on":null}]'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Tue, 04 Nov 2014 13:56:50 GMT
|
59
|
+
- request:
|
60
|
+
method: get
|
61
|
+
uri: http://localhost:3000/api/3/tasks?page=3&per_page=2
|
62
|
+
body:
|
63
|
+
encoding: US-ASCII
|
64
|
+
string: ''
|
65
|
+
headers:
|
66
|
+
User-Agent:
|
67
|
+
- Faraday v0.9.0
|
68
|
+
Authorization:
|
69
|
+
- Bearer _frank_access_token_
|
70
|
+
Accept-Encoding:
|
71
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
72
|
+
Accept:
|
73
|
+
- "*/*"
|
74
|
+
response:
|
75
|
+
status:
|
76
|
+
code: 200
|
77
|
+
message: OK
|
78
|
+
headers:
|
79
|
+
Last-Modified:
|
80
|
+
- Mon, 03 Nov 2014 14:36:53 GMT
|
81
|
+
Paginationlinks:
|
82
|
+
- <http://localhost:3000/api/3/tasks?page=2&per_page=2>; rel="previous">, <http://localhost:3000/api/3/tasks?page=4&per_page=2>;
|
83
|
+
rel="next">, <http://localhost:3000/api/3/tasks?page=12&per_page=2>; rel="last">
|
84
|
+
Paginationtotalpages:
|
85
|
+
- '12'
|
86
|
+
Paginationperpage:
|
87
|
+
- '2'
|
88
|
+
Paginationcurrentpage:
|
89
|
+
- '3'
|
90
|
+
X-Redbooth-Updated-At:
|
91
|
+
- '1415025413295'
|
92
|
+
X-Redbooth-From-Cache:
|
93
|
+
- 'false'
|
94
|
+
Content-Type:
|
95
|
+
- application/json; charset=utf-8
|
96
|
+
Cache-Control:
|
97
|
+
- max-age=0, private, must-revalidate
|
98
|
+
X-Ua-Compatible:
|
99
|
+
- IE=Edge,chrome=1
|
100
|
+
X-Request-Id:
|
101
|
+
- e32cbc0d0f9c043e4f24293ee6368b3c
|
102
|
+
X-Runtime:
|
103
|
+
- '0.125656'
|
104
|
+
Connection:
|
105
|
+
- close
|
106
|
+
Server:
|
107
|
+
- thin 1.6.1 codename Death Proof
|
108
|
+
body:
|
109
|
+
encoding: UTF-8
|
110
|
+
string: '[{"type":"Task","created_at":1415018722,"updated_at":1415018722,"id":45,"name":"new
|
111
|
+
created task","task_list_id":3,"comments_count":0,"assigned_id":null,"is_private":false,"project_id":2,"urgent":false,"user_id":1,"position":2,"last_activity_id":null,"record_conversion_type":null,"record_conversion_id":null,"metadata":{},"subtasks_count":0,"resolved_subtasks_count":0,"watcher_ids":[1],"description":null,"description_html":"","description_updated_by_user_id":null,"updated_by_id":null,"deleted":false,"row_order":6291456,"status":"new","due_on":null},{"type":"Task","created_at":1415018722,"updated_at":1415018722,"id":44,"name":"new
|
112
|
+
created task","task_list_id":3,"comments_count":0,"assigned_id":null,"is_private":false,"project_id":2,"urgent":false,"user_id":1,"position":1,"last_activity_id":null,"record_conversion_type":null,"record_conversion_id":null,"metadata":{},"subtasks_count":0,"resolved_subtasks_count":0,"watcher_ids":[1],"description":null,"description_html":"","description_updated_by_user_id":null,"updated_by_id":null,"deleted":false,"row_order":4194304,"status":"new","due_on":null}]'
|
113
|
+
http_version:
|
114
|
+
recorded_at: Tue, 04 Nov 2014 13:56:50 GMT
|
115
|
+
recorded_with: VCR 2.9.3
|
data/spec/cassettes/Redbooth_Request_Collection/_prev_page/where_endpoint_is_not_paginated/.yml
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/3/tasks?per_page=2
|
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, 03 Nov 2014 14:36:53 GMT
|
25
|
+
X-Redbooth-Updated-At:
|
26
|
+
- '1415025413295'
|
27
|
+
X-Redbooth-From-Cache:
|
28
|
+
- 'true'
|
29
|
+
Paginationlinks:
|
30
|
+
- <http://localhost:3000/api/3/tasks?page=2&per_page=2>; rel="next">, <http://localhost:3000/api/3/tasks?page=12&per_page=2>;
|
31
|
+
rel="last">
|
32
|
+
Paginationtotalpages:
|
33
|
+
- '12'
|
34
|
+
Paginationperpage:
|
35
|
+
- '2'
|
36
|
+
Paginationcurrentpage:
|
37
|
+
- '1'
|
38
|
+
Content-Type:
|
39
|
+
- application/json; charset=utf-8
|
40
|
+
Cache-Control:
|
41
|
+
- max-age=0, private, must-revalidate
|
42
|
+
X-Ua-Compatible:
|
43
|
+
- IE=Edge,chrome=1
|
44
|
+
X-Request-Id:
|
45
|
+
- 29533110918aa62c96e05dffd97467e3
|
46
|
+
X-Runtime:
|
47
|
+
- '0.083815'
|
48
|
+
Connection:
|
49
|
+
- close
|
50
|
+
Server:
|
51
|
+
- thin 1.6.1 codename Death Proof
|
52
|
+
body:
|
53
|
+
encoding: UTF-8
|
54
|
+
string: '[{"type":"Task","created_at":1415025412,"updated_at":1415025412,"id":51,"name":"new
|
55
|
+
created task","task_list_id":3,"comments_count":0,"assigned_id":null,"is_private":false,"project_id":2,"urgent":false,"user_id":1,"position":6,"last_activity_id":null,"record_conversion_type":null,"record_conversion_id":null,"metadata":{},"subtasks_count":0,"resolved_subtasks_count":0,"watcher_ids":[1],"description":null,"description_html":"","description_updated_by_user_id":null,"updated_by_id":null,"deleted":false,"row_order":8257536,"status":"new","due_on":null},{"type":"Task","created_at":1415025412,"updated_at":1415025412,"id":50,"name":"new
|
56
|
+
created task","task_list_id":3,"comments_count":0,"assigned_id":null,"is_private":false,"project_id":2,"urgent":false,"user_id":1,"position":5,"last_activity_id":null,"record_conversion_type":null,"record_conversion_id":null,"metadata":{},"subtasks_count":0,"resolved_subtasks_count":0,"watcher_ids":[1],"description":null,"description_html":"","description_updated_by_user_id":null,"updated_by_id":null,"deleted":false,"row_order":8126464,"status":"new","due_on":null}]'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Tue, 04 Nov 2014 13:56:50 GMT
|
59
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,159 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/3/tasks?per_page=2
|
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, 03 Nov 2014 14:36:53 GMT
|
25
|
+
X-Redbooth-Updated-At:
|
26
|
+
- '1415025413295'
|
27
|
+
X-Redbooth-From-Cache:
|
28
|
+
- 'true'
|
29
|
+
Paginationlinks:
|
30
|
+
- <http://localhost:3000/api/3/tasks?page=2&per_page=2>; rel="next">, <http://localhost:3000/api/3/tasks?page=12&per_page=2>;
|
31
|
+
rel="last">
|
32
|
+
Paginationtotalpages:
|
33
|
+
- '12'
|
34
|
+
Paginationperpage:
|
35
|
+
- '2'
|
36
|
+
Paginationcurrentpage:
|
37
|
+
- '1'
|
38
|
+
Content-Type:
|
39
|
+
- application/json; charset=utf-8
|
40
|
+
Cache-Control:
|
41
|
+
- max-age=0, private, must-revalidate
|
42
|
+
X-Ua-Compatible:
|
43
|
+
- IE=Edge,chrome=1
|
44
|
+
X-Request-Id:
|
45
|
+
- a9e08815b427423ba60bc132d9852870
|
46
|
+
X-Runtime:
|
47
|
+
- '0.083123'
|
48
|
+
Connection:
|
49
|
+
- close
|
50
|
+
Server:
|
51
|
+
- thin 1.6.1 codename Death Proof
|
52
|
+
body:
|
53
|
+
encoding: UTF-8
|
54
|
+
string: '[{"type":"Task","created_at":1415025412,"updated_at":1415025412,"id":51,"name":"new
|
55
|
+
created task","task_list_id":3,"comments_count":0,"assigned_id":null,"is_private":false,"project_id":2,"urgent":false,"user_id":1,"position":6,"last_activity_id":null,"record_conversion_type":null,"record_conversion_id":null,"metadata":{},"subtasks_count":0,"resolved_subtasks_count":0,"watcher_ids":[1],"description":null,"description_html":"","description_updated_by_user_id":null,"updated_by_id":null,"deleted":false,"row_order":8257536,"status":"new","due_on":null},{"type":"Task","created_at":1415025412,"updated_at":1415025412,"id":50,"name":"new
|
56
|
+
created task","task_list_id":3,"comments_count":0,"assigned_id":null,"is_private":false,"project_id":2,"urgent":false,"user_id":1,"position":5,"last_activity_id":null,"record_conversion_type":null,"record_conversion_id":null,"metadata":{},"subtasks_count":0,"resolved_subtasks_count":0,"watcher_ids":[1],"description":null,"description_html":"","description_updated_by_user_id":null,"updated_by_id":null,"deleted":false,"row_order":8126464,"status":"new","due_on":null}]'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Tue, 04 Nov 2014 13:56:50 GMT
|
59
|
+
- request:
|
60
|
+
method: get
|
61
|
+
uri: http://localhost:3000/api/3/tasks?page=0&per_page=2
|
62
|
+
body:
|
63
|
+
encoding: US-ASCII
|
64
|
+
string: ''
|
65
|
+
headers:
|
66
|
+
User-Agent:
|
67
|
+
- Faraday v0.9.0
|
68
|
+
Authorization:
|
69
|
+
- Bearer _frank_access_token_
|
70
|
+
Accept-Encoding:
|
71
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
72
|
+
Accept:
|
73
|
+
- "*/*"
|
74
|
+
response:
|
75
|
+
status:
|
76
|
+
code: 500
|
77
|
+
message: Internal Server Error
|
78
|
+
headers:
|
79
|
+
Content-Type:
|
80
|
+
- text/html; charset=utf-8
|
81
|
+
Content-Length:
|
82
|
+
- '6230'
|
83
|
+
X-Request-Id:
|
84
|
+
- e038fc948f523e3d5c4d6a3a35935402
|
85
|
+
X-Runtime:
|
86
|
+
- '0.123510'
|
87
|
+
Connection:
|
88
|
+
- keep-alive
|
89
|
+
Server:
|
90
|
+
- thin 1.6.1 codename Death Proof
|
91
|
+
body:
|
92
|
+
encoding: UTF-8
|
93
|
+
string: "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\"
|
94
|
+
/>\n <title>Action Controller: Exception caught</title>\n <style>\n body
|
95
|
+
{ background-color: #fff; color: #333; }\n\n body, p, ol, ul, td {\n font-family:
|
96
|
+
helvetica, verdana, arial, sans-serif;\n font-size: 13px;\n line-height:
|
97
|
+
18px;\n }\n\n pre {\n background-color: #eee;\n padding: 10px;\n
|
98
|
+
\ font-size: 11px;\n white-space: pre-wrap;\n }\n\n a { color:
|
99
|
+
#000; }\n a:visited { color: #666; }\n a:hover { color: #fff; background-color:#000;
|
100
|
+
}\n </style>\n</head>\n<body>\n\n<h1>\n ArgumentError\n in ApiV3::TasksController#index\n</h1>\n<pre>not
|
101
|
+
delegated</pre>\n\n\n<p><code>Rails.root: /Users/andresbravog/Documents/ProyectosTeambox/teambox/SRC/teambox-hosted</code></p>\n\n<div
|
102
|
+
id=\"traces\">\n <a href=\"#\" onclick=\"document.getElementById('Framework-Trace').style.display='none';document.getElementById('Full-Trace').style.display='none';document.getElementById('Application-Trace').style.display='block';;
|
103
|
+
return false;\">Application Trace</a> |\n <a href=\"#\" onclick=\"document.getElementById('Application-Trace').style.display='none';document.getElementById('Full-Trace').style.display='none';document.getElementById('Framework-Trace').style.display='block';;
|
104
|
+
return false;\">Framework Trace</a> |\n <a href=\"#\" onclick=\"document.getElementById('Application-Trace').style.display='none';document.getElementById('Framework-Trace').style.display='none';document.getElementById('Full-Trace').style.display='block';;
|
105
|
+
return false;\">Full Trace</a> \n\n <div id=\"Application-Trace\" style=\"display:
|
106
|
+
block;\">\n <pre><code></code></pre>\n </div>\n <div id=\"Framework-Trace\"
|
107
|
+
style=\"display: none;\">\n <pre><code></code></pre>\n </div>\n <div
|
108
|
+
id=\"Full-Trace\" style=\"display: none;\">\n <pre><code>/Users/andresbravog/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/delegate.rb:392:in
|
109
|
+
`__getobj__'\nwill_paginate (3.0.5) lib/will_paginate/page_number.rb:38:in
|
110
|
+
`kind_of?'\nbetter_errors (0.7.0) lib/better_errors/stack_frame.rb:112:in
|
111
|
+
`set_pretty_method_name'\nbetter_errors (0.7.0) lib/better_errors/stack_frame.rb:34:in
|
112
|
+
`initialize'\nbetter_errors (0.7.0) lib/better_errors/stack_frame.rb:10:in
|
113
|
+
`new'\nbetter_errors (0.7.0) lib/better_errors/stack_frame.rb:10:in `block
|
114
|
+
in from_exception'\nbetter_errors (0.7.0) lib/better_errors/stack_frame.rb:6:in
|
115
|
+
`map'\nbetter_errors (0.7.0) lib/better_errors/stack_frame.rb:6:in `from_exception'\nbetter_errors
|
116
|
+
(0.7.0) lib/better_errors/error_page.rb:52:in `backtrace_frames'\nbetter_errors
|
117
|
+
(0.7.0) lib/better_errors/middleware.rb:114:in `log_exception'\nbetter_errors
|
118
|
+
(0.7.0) lib/better_errors/middleware.rb:87:in `rescue in protected_app_call'\nbetter_errors
|
119
|
+
(0.7.0) lib/better_errors/middleware.rb:84:in `protected_app_call'\nbetter_errors
|
120
|
+
(0.7.0) lib/better_errors/middleware.rb:79:in `better_errors_call'\nbetter_errors
|
121
|
+
(0.7.0) lib/better_errors/middleware.rb:56:in `call'\nactionpack (3.2.19)
|
122
|
+
lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'\nactionpack
|
123
|
+
(3.2.19) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'\nrailties
|
124
|
+
(3.2.19) lib/rails/rack/logger.rb:32:in `call_app'\nrailties (3.2.19)
|
125
|
+
lib/rails/rack/logger.rb:16:in `block in call'\nactivesupport (3.2.19)
|
126
|
+
lib/active_support/tagged_logging.rb:22:in `tagged'\nrailties (3.2.19)
|
127
|
+
lib/rails/rack/logger.rb:16:in `call'\nactionpack (3.2.19) lib/action_dispatch/middleware/request_id.rb:22:in
|
128
|
+
`call'\nrack (1.4.5) lib/rack/methodoverride.rb:21:in `call'\nrack
|
129
|
+
(1.4.5) lib/rack/runtime.rb:17:in `call'\nactivesupport (3.2.19) lib/active_support/cache/strategy/local_cache.rb:72:in
|
130
|
+
`call'\nrack (1.4.5) lib/rack/lock.rb:15:in `call'\nactionpack (3.2.19)
|
131
|
+
lib/action_dispatch/middleware/static.rb:63:in `call'\nutf8-cleaner (0.0.6)
|
132
|
+
lib/utf8-cleaner/middleware.rb:18:in `call'\nrailties (3.2.19) lib/rails/engine.rb:484:in
|
133
|
+
`call'\nrailties (3.2.19) lib/rails/application.rb:231:in `call'\nrack
|
134
|
+
(1.4.5) lib/rack/content_length.rb:14:in `call'\nrailties (3.2.19) lib/rails/rack/log_tailer.rb:17:in
|
135
|
+
`call'\nthin (1.6.1) lib/thin/connection.rb:82:in `block in pre_process'\nthin
|
136
|
+
(1.6.1) lib/thin/connection.rb:80:in `catch'\nthin (1.6.1) lib/thin/connection.rb:80:in
|
137
|
+
`pre_process'\nthin (1.6.1) lib/thin/connection.rb:55:in `process'\nthin
|
138
|
+
(1.6.1) lib/thin/connection.rb:41:in `receive_data'\neventmachine (1.0.3)
|
139
|
+
lib/eventmachine.rb:187:in `run_machine'\neventmachine (1.0.3) lib/eventmachine.rb:187:in
|
140
|
+
`run'\nthin (1.6.1) lib/thin/backends/base.rb:73:in `start'\nthin
|
141
|
+
(1.6.1) lib/thin/server.rb:162:in `start'\nrack (1.4.5) lib/rack/handler/thin.rb:13:in
|
142
|
+
`run'\nrack (1.4.5) lib/rack/server.rb:268:in `start'\nrailties
|
143
|
+
(3.2.19) lib/rails/commands/server.rb:70:in `start'\nzeus (0.15.2) lib/zeus/rails.rb:160:in
|
144
|
+
`server'\nzeus (0.15.2) lib/zeus.rb:148:in `block in command'\nzeus
|
145
|
+
(0.15.2) lib/zeus.rb:135:in `fork'\nzeus (0.15.2) lib/zeus.rb:135:in
|
146
|
+
`command'\nzeus (0.15.2) lib/zeus.rb:50:in `go'\n-e:1:in `<main>'</code></pre>\n
|
147
|
+
\ </div>\n</div>\n\n\n\n<h2 style=\"margin-top: 30px\">Request</h2>\n<p><b>Parameters</b>:
|
148
|
+
<pre>{"page"=>"0",\n "per_page"=>"2"}</pre></p>\n\n<p><a
|
149
|
+
href=\"#\" onclick=\"document.getElementById('session_dump').style.display='block';
|
150
|
+
return false;\">Show session dump</a></p>\n<div id=\"session_dump\" style=\"display:none\"><pre></pre></div>\n\n<p><a
|
151
|
+
href=\"#\" onclick=\"document.getElementById('env_dump').style.display='block';
|
152
|
+
return false;\">Show env dump</a></p>\n<div id=\"env_dump\" style=\"display:none\"><pre>GATEWAY_INTERFACE:
|
153
|
+
"CGI/1.2"\nHTTP_ACCEPT: "*/*"\nHTTP_ACCEPT_ENCODING: "gzip;q=1.0,deflate;q=0.6,identity;q=0.3"\nREMOTE_ADDR:
|
154
|
+
"127.0.0.1"\nSERVER_NAME: "localhost"\nSERVER_PROTOCOL:
|
155
|
+
"HTTP/1.1"</pre></div>\n\n\n<h2 style=\"margin-top: 30px\">Response</h2>\n<p><b>Headers</b>:
|
156
|
+
<pre>None</pre></p>\n\n\n\n</body>\n</html>\n"
|
157
|
+
http_version:
|
158
|
+
recorded_at: Tue, 04 Nov 2014 13:56:50 GMT
|
159
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,59 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/3/tasks?per_page=2
|
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, 03 Nov 2014 14:36:53 GMT
|
25
|
+
X-Redbooth-Updated-At:
|
26
|
+
- '1415025413295'
|
27
|
+
X-Redbooth-From-Cache:
|
28
|
+
- 'true'
|
29
|
+
Paginationlinks:
|
30
|
+
- <http://localhost:3000/api/3/tasks?page=2&per_page=2>; rel="next">, <http://localhost:3000/api/3/tasks?page=12&per_page=2>;
|
31
|
+
rel="last">
|
32
|
+
Paginationtotalpages:
|
33
|
+
- '12'
|
34
|
+
Paginationperpage:
|
35
|
+
- '2'
|
36
|
+
Paginationcurrentpage:
|
37
|
+
- '1'
|
38
|
+
Content-Type:
|
39
|
+
- application/json; charset=utf-8
|
40
|
+
Cache-Control:
|
41
|
+
- max-age=0, private, must-revalidate
|
42
|
+
X-Ua-Compatible:
|
43
|
+
- IE=Edge,chrome=1
|
44
|
+
X-Request-Id:
|
45
|
+
- dea89895af23f03675efab52ac6a1c9d
|
46
|
+
X-Runtime:
|
47
|
+
- '0.091793'
|
48
|
+
Connection:
|
49
|
+
- close
|
50
|
+
Server:
|
51
|
+
- thin 1.6.1 codename Death Proof
|
52
|
+
body:
|
53
|
+
encoding: UTF-8
|
54
|
+
string: '[{"type":"Task","created_at":1415025412,"updated_at":1415025412,"id":51,"name":"new
|
55
|
+
created task","task_list_id":3,"comments_count":0,"assigned_id":null,"is_private":false,"project_id":2,"urgent":false,"user_id":1,"position":6,"last_activity_id":null,"record_conversion_type":null,"record_conversion_id":null,"metadata":{},"subtasks_count":0,"resolved_subtasks_count":0,"watcher_ids":[1],"description":null,"description_html":"","description_updated_by_user_id":null,"updated_by_id":null,"deleted":false,"row_order":8257536,"status":"new","due_on":null},{"type":"Task","created_at":1415025412,"updated_at":1415025412,"id":50,"name":"new
|
56
|
+
created task","task_list_id":3,"comments_count":0,"assigned_id":null,"is_private":false,"project_id":2,"urgent":false,"user_id":1,"position":5,"last_activity_id":null,"record_conversion_type":null,"record_conversion_id":null,"metadata":{},"subtasks_count":0,"resolved_subtasks_count":0,"watcher_ids":[1],"description":null,"description_html":"","description_updated_by_user_id":null,"updated_by_id":null,"deleted":false,"row_order":8126464,"status":"new","due_on":null}]'
|
57
|
+
http_version:
|
58
|
+
recorded_at: Tue, 04 Nov 2014 13:48:53 GMT
|
59
|
+
recorded_with: VCR 2.9.3
|