bugsnag-api 2.0.1 → 2.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 (56) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +2 -0
  3. data/.rubocop_todo.yml +271 -0
  4. data/.travis.yml +6 -3
  5. data/CHANGELOG.md +7 -0
  6. data/bugsnag-api.gemspec +1 -0
  7. data/lib/bugsnag/api/client.rb +12 -0
  8. data/lib/bugsnag/api/client/comments.rb +1 -1
  9. data/lib/bugsnag/api/client/errors.rb +3 -1
  10. data/lib/bugsnag/api/client/trends.rb +8 -4
  11. data/lib/bugsnag/api/configuration.rb +1 -1
  12. data/lib/bugsnag/api/version.rb +1 -1
  13. data/spec/bugsnag/api/client_spec.rb +69 -7
  14. data/spec/bugsnag/api_spec.rb +2 -0
  15. data/spec/cassettes/Bugsnag_Api_Client/_get/handles_query_params.yml +13 -21
  16. data/spec/cassettes/Bugsnag_Api_Client/_last_response/caches_the_last_agent_response.yml +13 -21
  17. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/_invitecollaborator/creates_and_returns_a_collaborator.yml +14 -26
  18. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/_invitecollaborator/invites_multiple_collaborators.yml +14 -26
  19. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborator/returns_a_collaborator.yml +29 -53
  20. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborators/returns_a_list_of_all_organization_collaborators.yml +30 -55
  21. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborators/returns_a_list_of_all_project_collaborators.yml +30 -55
  22. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborators/throws_an_argument_error_if_neither_org_id_or_project_id_are_provided.yml +14 -26
  23. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_delete_collaborator/deletes_a_collaborator.yml +14 -26
  24. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_update_collaborator_permissions/updates_and_returns_the_collaborator.yml +29 -53
  25. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_view_collaborator_projects/returns_a_list_of_projects_belonging_to_the_collaborator.yml +49 -55
  26. data/spec/cassettes/Bugsnag_Api_Client_Comments/_create_comment/creates_a_comment_on_the_error.yml +17 -29
  27. data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_comment/retrieves_the_comment_specified.yml +32 -56
  28. data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_comments/retrieves_all_comments_on_an_error.yml +33 -57
  29. data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_delete_comment/deletes_the_comment_and_returns_true.yml +17 -29
  30. data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_update_comment/updates_the_message_on_a_comment.yml +32 -56
  31. data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_organizations/when_using_auth_token/returns_the_organization_the_auth_token_belongs_to.yml +14 -27
  32. data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_organizations/when_using_user_credentials/returns_users_organizations.yml +17 -31
  33. data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_projects/when_using_auth_token/lists_current_user_s_projects_in_the_organization.yml +34 -28
  34. data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_projects/when_using_user_credentials/lists_current_user_s_projects_in_the_organization.yml +37 -32
  35. data/spec/cassettes/Bugsnag_Api_Client_Errors/_error/returns_a_single_error.yml +14 -28
  36. data/spec/cassettes/Bugsnag_Api_Client_Errors/_errors/returns_errors_on_the_project.yml +16 -30
  37. data/spec/cassettes/Bugsnag_Api_Client_Errors/_update_errors/updates_and_returns_the_updated_errors.yml +13 -25
  38. data/spec/cassettes/Bugsnag_Api_Client_Events/_error_events/lists_all_error_events.yml +19 -30
  39. data/spec/cassettes/Bugsnag_Api_Client_Events/_event/returns_the_specified_event.yml +16 -199
  40. data/spec/cassettes/Bugsnag_Api_Client_Events/_events/returns_the_a_list_of_project_errors.yml +19 -30
  41. data/spec/cassettes/Bugsnag_Api_Client_Events/_latest_event/returns_the_last_event_on_an_error.yml +16 -199
  42. data/spec/cassettes/Bugsnag_Api_Client_Organizations/_create_organization/creates_a_new_organization.yml +17 -30
  43. data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_delete_organization/deletes_the_organization.yml +32 -58
  44. data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_organization/returns_the_requested_organization.yml +35 -61
  45. data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_update_organization/updates_and_returns_the_organization.yml +35 -61
  46. data/spec/cassettes/Bugsnag_Api_Client_Projects/_create_project/creates_a_new_project.yml +14 -26
  47. data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_delete_project/deletes_the_project.yml +26 -50
  48. data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_project/returns_the_requested_project.yml +29 -53
  49. data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_regenerate_api_key/removes_the_current_api_key_and_replaces_it_with_a_new_api_key.yml +29 -53
  50. data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_update_project/updates_and_returns_the_project.yml +29 -53
  51. data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_buckets/returns_a_list_of_error_trends_in_bucket_form.yml +14 -26
  52. data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_buckets/returns_a_list_of_project_trends_in_bucket_form.yml +14 -26
  53. data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_resolution/returns_a_list_of_project_trends_in_resolution_form.yml +14 -26
  54. data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_resolution/returns_a_list_of_trends_in_resolution_form.yml +14 -26
  55. data/spec/spec_helper.rb +3 -3
  56. metadata +18 -2
@@ -8,11 +8,13 @@ http_interactions:
8
8
  string: '{"message":"message"}'
9
9
  headers:
10
10
  User-Agent:
11
- - Bugsnag API Ruby Gem 1.0.3
11
+ - Bugsnag API Ruby Gem 2.0.1
12
12
  Content-Type:
13
13
  - application/json
14
14
  X-Version:
15
15
  - '2'
16
+ X-Bugsnag-Api:
17
+ - 'true'
16
18
  Authorization:
17
19
  - token BUGSNAG_AUTH_TOKEN
18
20
  Accept-Encoding:
@@ -24,35 +26,27 @@ http_interactions:
24
26
  code: 201
25
27
  message: Created
26
28
  headers:
27
- Server:
28
- - nginx
29
- Date:
30
- - Mon, 09 Oct 2017 14:23:14 GMT
29
+ Location:
30
+ - https://api.bugsnag.com/comments/5a2fc399d1befa003981d5be
31
31
  Content-Type:
32
32
  - application/json; charset=utf-8
33
- Transfer-Encoding:
34
- - chunked
35
- Location:
36
- - https://api.bugsnag.com/comments/59db8652c636d200228adcd7
37
33
  Etag:
38
- - W/"6b43066c9c3209cae0f8ed7edfc9e604"
34
+ - W/"a7d078685ed511be5bf79d4c4367a855"
39
35
  Cache-Control:
40
36
  - max-age=0, private, must-revalidate
41
37
  X-Request-Id:
42
- - 1c7d8dd5-06bc-48b1-a5e8-38c536894f99
38
+ - 5a11fc47-8f3e-460e-be50-4b75274a219a
43
39
  X-Runtime:
44
- - '0.332625'
40
+ - '0.288868'
45
41
  Vary:
46
42
  - Origin
47
- X-Ratelimit-Limit:
48
- - '10'
49
- X-Ratelimit-Remaining:
50
- - '8'
43
+ X-Rack-Cors:
44
+ - miss; no-origin
51
45
  Content-Security-Policy:
52
46
  - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
53
- connect-src ''self'' https://api.bugsnag.com https://*.stripe.com https://bugsnag.zendesk.com
54
- https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com; img-src
55
- ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
47
+ connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
48
+ https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
49
+ img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
56
50
  script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
57
51
  https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
58
52
  https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
@@ -66,19 +60,13 @@ http_interactions:
66
60
  - none
67
61
  X-Xss-Protection:
68
62
  - 1; mode=block
69
- X-Robots-Tag:
70
- - noindex, nofollow
71
- Strict-Transport-Security:
72
- - max-age=31536000
73
- Via:
74
- - 1.1 google
75
- Alt-Svc:
76
- - clear
63
+ Transfer-Encoding:
64
+ - chunked
77
65
  body:
78
66
  encoding: UTF-8
79
- string: '{"id":"59db8652c636d200228adcd7","message":"message","created_at":"2017-10-09T14:23:14.000Z","collaborator":{"id":"59ae67b68a0558001a351bcb","name":"AlexTestsM","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"password_updated_on":"2017-09-05T09:04:10.936Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/59ae67b68a0558001a351bcb/projects","heroku":false,"recovery_codes_remaining":0}}'
67
+ string: '{"id":"5a2fc399d1befa003981d5be","message":"message","created_at":"2017-12-12T11:55:05.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}}'
80
68
  http_version:
81
- recorded_at: Mon, 09 Oct 2017 14:23:13 GMT
69
+ recorded_at: Tue, 12 Dec 2017 11:54:54 GMT
82
70
  - request:
83
71
  method: get
84
72
  uri: https://api.bugsnag.com/projects/BUGSNAG_PROJECT_ID/errors/BUGSNAG_ERROR_ID/comments
@@ -87,11 +75,13 @@ http_interactions:
87
75
  string: ''
88
76
  headers:
89
77
  User-Agent:
90
- - Bugsnag API Ruby Gem 1.0.3
78
+ - Bugsnag API Ruby Gem 2.0.1
91
79
  Content-Type:
92
80
  - application/json
93
81
  X-Version:
94
82
  - '2'
83
+ X-Bugsnag-Api:
84
+ - 'true'
95
85
  Authorization:
96
86
  - token BUGSNAG_AUTH_TOKEN
97
87
  Accept-Encoding:
@@ -103,33 +93,27 @@ http_interactions:
103
93
  code: 200
104
94
  message: OK
105
95
  headers:
106
- Server:
107
- - nginx
108
- Date:
109
- - Mon, 09 Oct 2017 14:23:14 GMT
96
+ X-Total-Count:
97
+ - '10'
110
98
  Content-Type:
111
99
  - application/json; charset=utf-8
112
- X-Total-Count:
113
- - '2'
114
100
  Etag:
115
- - W/"02d442c6ef711d6998a0f57edb8371d8"
101
+ - W/"2cf020eae65823e1953183ba3825d976"
116
102
  Cache-Control:
117
103
  - max-age=0, private, must-revalidate
118
104
  X-Request-Id:
119
- - 0bd33ae0-7c5b-4202-8427-ac0e93dd2b22
105
+ - 1bef26f4-ff72-4166-a226-7644fe20400b
120
106
  X-Runtime:
121
- - '0.252916'
107
+ - '0.279841'
122
108
  Vary:
123
109
  - Origin
124
- X-Ratelimit-Limit:
125
- - '10'
126
- X-Ratelimit-Remaining:
127
- - '7'
110
+ X-Rack-Cors:
111
+ - miss; no-origin
128
112
  Content-Security-Policy:
129
113
  - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
130
- connect-src ''self'' https://api.bugsnag.com https://*.stripe.com https://bugsnag.zendesk.com
131
- https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com; img-src
132
- ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
114
+ connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
115
+ https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
116
+ img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
133
117
  script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
134
118
  https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
135
119
  https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
@@ -143,19 +127,11 @@ http_interactions:
143
127
  - none
144
128
  X-Xss-Protection:
145
129
  - 1; mode=block
146
- X-Robots-Tag:
147
- - noindex, nofollow
148
- Strict-Transport-Security:
149
- - max-age=31536000
150
- Via:
151
- - 1.1 google
152
- Alt-Svc:
153
- - clear
154
130
  Transfer-Encoding:
155
131
  - chunked
156
132
  body:
157
- encoding: ASCII-8BIT
158
- string: '[{"id":"59db8652c636d200228adcd7","message":"message","created_at":"2017-10-09T14:23:14.000Z","collaborator":{"id":"59ae67b68a0558001a351bcb","name":"AlexTestsM","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"password_updated_on":"2017-09-05T09:04:10.936Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/59ae67b68a0558001a351bcb/projects","heroku":false,"recovery_codes_remaining":0}},{"id":"59db85eec636d200228adcd4","message":"updated","created_at":"2017-10-09T14:21:34.000Z","collaborator":{"id":"59ae67b68a0558001a351bcb","name":"AlexTestsM","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"password_updated_on":"2017-09-05T09:04:10.936Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/59ae67b68a0558001a351bcb/projects","heroku":false,"recovery_codes_remaining":0}}]'
133
+ encoding: UTF-8
134
+ string: '[{"id":"5a2fc399d1befa003981d5be","message":"message","created_at":"2017-12-12T11:55:05.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}},{"id":"5a2fc06dd1befa002881d598","message":"updated","created_at":"2017-12-12T11:41:33.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}},{"id":"5a2fc06cd1befa003981d5a2","message":"message","created_at":"2017-12-12T11:41:32.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}},{"id":"5a2fc06cd1befa002881d597","message":"message","created_at":"2017-12-12T11:41:32.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}},{"id":"5a2fc06bd1befa003981d5a1","message":"message","created_at":"2017-12-12T11:41:31.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}},{"id":"5a2fc06ad1befa003981d5a0","message":"test_message","created_at":"2017-12-12T11:41:30.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}},{"id":"5a2fbe86d1befa002881d57f","message":"test_message","created_at":"2017-12-12T11:33:26.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}},{"id":"5a2fbe85d1befa003981d581","message":"updated","created_at":"2017-12-12T11:33:25.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}},{"id":"5a2fbe84d1befa001781d581","message":"message","created_at":"2017-12-12T11:33:24.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}},{"id":"5a2fbe82d1befa001781d57f","message":"message","created_at":"2017-12-12T11:33:22.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}}]'
159
135
  http_version:
160
- recorded_at: Mon, 09 Oct 2017 14:23:13 GMT
136
+ recorded_at: Tue, 12 Dec 2017 11:54:54 GMT
161
137
  recorded_with: VCR 2.9.3
@@ -8,11 +8,13 @@ http_interactions:
8
8
  string: '{"message":"message"}'
9
9
  headers:
10
10
  User-Agent:
11
- - Bugsnag API Ruby Gem 1.0.3
11
+ - Bugsnag API Ruby Gem 2.0.1
12
12
  Content-Type:
13
13
  - application/json
14
14
  X-Version:
15
15
  - '2'
16
+ X-Bugsnag-Api:
17
+ - 'true'
16
18
  Authorization:
17
19
  - token BUGSNAG_AUTH_TOKEN
18
20
  Accept-Encoding:
@@ -24,35 +26,27 @@ http_interactions:
24
26
  code: 201
25
27
  message: Created
26
28
  headers:
27
- Server:
28
- - nginx
29
- Date:
30
- - Mon, 09 Oct 2017 14:23:16 GMT
29
+ Location:
30
+ - https://api.bugsnag.com/comments/5a2fc39bd1befa002881d5a1
31
31
  Content-Type:
32
32
  - application/json; charset=utf-8
33
- Transfer-Encoding:
34
- - chunked
35
- Location:
36
- - https://api.bugsnag.com/comments/59db8654c1951b0026d5a422
37
33
  Etag:
38
- - W/"e65d7e8fb49e547a78ca748a74cb6682"
34
+ - W/"88be4edd9cd811f0a19b3aa29c894348"
39
35
  Cache-Control:
40
36
  - max-age=0, private, must-revalidate
41
37
  X-Request-Id:
42
- - 39553cc5-1f18-46c4-bc7b-5a48b2a548cf
38
+ - d683b128-83ff-441e-bc0b-88fe39cd1afd
43
39
  X-Runtime:
44
- - '0.276641'
40
+ - '0.416889'
45
41
  Vary:
46
42
  - Origin
47
- X-Ratelimit-Limit:
48
- - '10'
49
- X-Ratelimit-Remaining:
50
- - '4'
43
+ X-Rack-Cors:
44
+ - miss; no-origin
51
45
  Content-Security-Policy:
52
46
  - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
53
- connect-src ''self'' https://api.bugsnag.com https://*.stripe.com https://bugsnag.zendesk.com
54
- https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com; img-src
55
- ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
47
+ connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
48
+ https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
49
+ img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
56
50
  script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
57
51
  https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
58
52
  https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
@@ -66,17 +60,11 @@ http_interactions:
66
60
  - none
67
61
  X-Xss-Protection:
68
62
  - 1; mode=block
69
- X-Robots-Tag:
70
- - noindex, nofollow
71
- Strict-Transport-Security:
72
- - max-age=31536000
73
- Via:
74
- - 1.1 google
75
- Alt-Svc:
76
- - clear
63
+ Transfer-Encoding:
64
+ - chunked
77
65
  body:
78
66
  encoding: UTF-8
79
- string: '{"id":"59db8654c1951b0026d5a422","message":"message","created_at":"2017-10-09T14:23:16.000Z","collaborator":{"id":"59ae67b68a0558001a351bcb","name":"AlexTestsM","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"password_updated_on":"2017-09-05T09:04:10.936Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/59ae67b68a0558001a351bcb/projects","heroku":false,"recovery_codes_remaining":0}}'
67
+ string: '{"id":"5a2fc39bd1befa002881d5a1","message":"message","created_at":"2017-12-12T11:55:07.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}}'
80
68
  http_version:
81
- recorded_at: Mon, 09 Oct 2017 14:23:15 GMT
69
+ recorded_at: Tue, 12 Dec 2017 11:54:55 GMT
82
70
  recorded_with: VCR 2.9.3
@@ -8,11 +8,13 @@ http_interactions:
8
8
  string: '{"message":"message"}'
9
9
  headers:
10
10
  User-Agent:
11
- - Bugsnag API Ruby Gem 1.0.3
11
+ - Bugsnag API Ruby Gem 2.0.1
12
12
  Content-Type:
13
13
  - application/json
14
14
  X-Version:
15
15
  - '2'
16
+ X-Bugsnag-Api:
17
+ - 'true'
16
18
  Authorization:
17
19
  - token BUGSNAG_AUTH_TOKEN
18
20
  Accept-Encoding:
@@ -24,35 +26,27 @@ http_interactions:
24
26
  code: 201
25
27
  message: Created
26
28
  headers:
27
- Server:
28
- - nginx
29
- Date:
30
- - Mon, 09 Oct 2017 14:23:15 GMT
29
+ Location:
30
+ - https://api.bugsnag.com/comments/5a2fc39ad1befa003981d5bf
31
31
  Content-Type:
32
32
  - application/json; charset=utf-8
33
- Transfer-Encoding:
34
- - chunked
35
- Location:
36
- - https://api.bugsnag.com/comments/59db8653901da0001b1eb557
37
33
  Etag:
38
- - W/"ba8c98ade2494a8cd868dfa54385e164"
34
+ - W/"f2bcc20f1f502d8591829cc8abf9466c"
39
35
  Cache-Control:
40
36
  - max-age=0, private, must-revalidate
41
37
  X-Request-Id:
42
- - 3b18a1df-f0f9-4ce6-b3dc-5c1a222dc284
38
+ - bace0efc-3882-4e06-bad8-c05266663efc
43
39
  X-Runtime:
44
- - '0.260148'
40
+ - '0.369118'
45
41
  Vary:
46
42
  - Origin
47
- X-Ratelimit-Limit:
48
- - '10'
49
- X-Ratelimit-Remaining:
50
- - '6'
43
+ X-Rack-Cors:
44
+ - miss; no-origin
51
45
  Content-Security-Policy:
52
46
  - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
53
- connect-src ''self'' https://api.bugsnag.com https://*.stripe.com https://bugsnag.zendesk.com
54
- https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com; img-src
55
- ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
47
+ connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
48
+ https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
49
+ img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
56
50
  script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
57
51
  https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
58
52
  https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
@@ -66,32 +60,28 @@ http_interactions:
66
60
  - none
67
61
  X-Xss-Protection:
68
62
  - 1; mode=block
69
- X-Robots-Tag:
70
- - noindex, nofollow
71
- Strict-Transport-Security:
72
- - max-age=31536000
73
- Via:
74
- - 1.1 google
75
- Alt-Svc:
76
- - clear
63
+ Transfer-Encoding:
64
+ - chunked
77
65
  body:
78
66
  encoding: UTF-8
79
- string: '{"id":"59db8653901da0001b1eb557","message":"message","created_at":"2017-10-09T14:23:15.000Z","collaborator":{"id":"59ae67b68a0558001a351bcb","name":"AlexTestsM","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"password_updated_on":"2017-09-05T09:04:10.936Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/59ae67b68a0558001a351bcb/projects","heroku":false,"recovery_codes_remaining":0}}'
67
+ string: '{"id":"5a2fc39ad1befa003981d5bf","message":"message","created_at":"2017-12-12T11:55:06.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}}'
80
68
  http_version:
81
- recorded_at: Mon, 09 Oct 2017 14:23:14 GMT
69
+ recorded_at: Tue, 12 Dec 2017 11:54:55 GMT
82
70
  - request:
83
71
  method: patch
84
- uri: https://api.bugsnag.com/comments/59db8653901da0001b1eb557
72
+ uri: https://api.bugsnag.com/comments/5a2fc39ad1befa003981d5bf
85
73
  body:
86
74
  encoding: UTF-8
87
75
  string: '{"message":"updated"}'
88
76
  headers:
89
77
  User-Agent:
90
- - Bugsnag API Ruby Gem 1.0.3
78
+ - Bugsnag API Ruby Gem 2.0.1
91
79
  Content-Type:
92
80
  - application/json
93
81
  X-Version:
94
82
  - '2'
83
+ X-Bugsnag-Api:
84
+ - 'true'
95
85
  Authorization:
96
86
  - token BUGSNAG_AUTH_TOKEN
97
87
  Accept-Encoding:
@@ -103,31 +93,25 @@ http_interactions:
103
93
  code: 200
104
94
  message: OK
105
95
  headers:
106
- Server:
107
- - nginx
108
- Date:
109
- - Mon, 09 Oct 2017 14:23:15 GMT
110
96
  Content-Type:
111
97
  - application/json; charset=utf-8
112
98
  Etag:
113
- - W/"f2eb9c3efd126838066a9b9e19c55b4d"
99
+ - W/"b27dcfe48fa067d90084af4ae32d321f"
114
100
  Cache-Control:
115
101
  - max-age=0, private, must-revalidate
116
102
  X-Request-Id:
117
- - bf09ff93-d323-446d-9a3e-23aab00426fd
103
+ - f914a7a8-e9b6-465b-93dc-a82504dbdebb
118
104
  X-Runtime:
119
- - '0.212795'
105
+ - '0.346181'
120
106
  Vary:
121
107
  - Origin
122
- X-Ratelimit-Limit:
123
- - '10'
124
- X-Ratelimit-Remaining:
125
- - '5'
108
+ X-Rack-Cors:
109
+ - miss; no-origin
126
110
  Content-Security-Policy:
127
111
  - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
128
- connect-src ''self'' https://api.bugsnag.com https://*.stripe.com https://bugsnag.zendesk.com
129
- https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com; img-src
130
- ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
112
+ connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
113
+ https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
114
+ img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
131
115
  script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
132
116
  https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
133
117
  https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
@@ -141,19 +125,11 @@ http_interactions:
141
125
  - none
142
126
  X-Xss-Protection:
143
127
  - 1; mode=block
144
- X-Robots-Tag:
145
- - noindex, nofollow
146
- Strict-Transport-Security:
147
- - max-age=31536000
148
- Via:
149
- - 1.1 google
150
- Alt-Svc:
151
- - clear
152
128
  Transfer-Encoding:
153
129
  - chunked
154
130
  body:
155
- encoding: ASCII-8BIT
156
- string: '{"id":"59db8653901da0001b1eb557","message":"updated","created_at":"2017-10-09T14:23:15.000Z","collaborator":{"id":"59ae67b68a0558001a351bcb","name":"AlexTestsM","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"password_updated_on":"2017-09-05T09:04:10.936Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/59ae67b68a0558001a351bcb/projects","heroku":false,"recovery_codes_remaining":0}}'
131
+ encoding: UTF-8
132
+ string: '{"id":"5a2fc39ad1befa003981d5bf","message":"updated","created_at":"2017-12-12T11:55:06.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}}'
157
133
  http_version:
158
- recorded_at: Mon, 09 Oct 2017 14:23:14 GMT
134
+ recorded_at: Tue, 12 Dec 2017 11:54:55 GMT
159
135
  recorded_with: VCR 2.9.3
@@ -8,11 +8,13 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - Bugsnag API Ruby Gem 1.0.3
11
+ - Bugsnag API Ruby Gem 2.0.1
12
12
  Content-Type:
13
13
  - application/json
14
14
  X-Version:
15
15
  - '2'
16
+ X-Bugsnag-Api:
17
+ - 'true'
16
18
  Authorization:
17
19
  - token BUGSNAG_AUTH_TOKEN
18
20
  Accept-Encoding:
@@ -24,31 +26,25 @@ http_interactions:
24
26
  code: 200
25
27
  message: OK
26
28
  headers:
27
- Server:
28
- - nginx
29
- Date:
30
- - Mon, 09 Oct 2017 14:25:25 GMT
31
29
  Content-Type:
32
30
  - application/json; charset=utf-8
33
31
  Etag:
34
- - W/"25244a6e4ea84611ad4ce330decc9ab8"
32
+ - W/"ae5a149929c6f170984acca5b019ff3a"
35
33
  Cache-Control:
36
34
  - max-age=0, private, must-revalidate
37
35
  X-Request-Id:
38
- - 60e28bba-890e-4d2d-8768-dc7b4683b165
36
+ - 7f6f7ef9-3136-4b64-80ba-df908569a836
39
37
  X-Runtime:
40
- - '0.229886'
38
+ - '0.298566'
41
39
  Vary:
42
40
  - Origin
43
- X-Ratelimit-Limit:
44
- - '10'
45
- X-Ratelimit-Remaining:
46
- - '8'
41
+ X-Rack-Cors:
42
+ - miss; no-origin
47
43
  Content-Security-Policy:
48
44
  - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
49
- connect-src ''self'' https://api.bugsnag.com https://*.stripe.com https://bugsnag.zendesk.com
50
- https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com; img-src
51
- ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
45
+ connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
46
+ https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
47
+ img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
52
48
  script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
53
49
  https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
54
50
  https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
@@ -62,20 +58,11 @@ http_interactions:
62
58
  - none
63
59
  X-Xss-Protection:
64
60
  - 1; mode=block
65
- X-Robots-Tag:
66
- - noindex, nofollow
67
- Strict-Transport-Security:
68
- - max-age=31536000
69
- Via:
70
- - 1.1 google
71
- Alt-Svc:
72
- - clear
73
61
  Transfer-Encoding:
74
62
  - chunked
75
63
  body:
76
- encoding: ASCII-8BIT
77
- string: '[{"id":"BUGSNAG_ORG_ID","name":"testOrg","slug":"testorg-6","creator":{"id":"59844ed2a2ebdd0022a938d3","name":"Alexander
78
- Moinet","email":"alex@bugsnag.com"},"created_at":"2017-09-04T12:42:33.824Z","updated_at":"2017-10-05T15:18:35.100Z","auto_upgrade":true,"upgrade_url":"https://api.bugsnag.com/settings/testorg-6/plans-billing?plansBilling%5Bstep%5D=collaborators-and-events","billing_emails":["alex@bugsnag.com"]}]'
64
+ encoding: UTF-8
65
+ string: '[{"id":"BUGSNAG_ORG_ID","name":"Bugsnag","slug":"bugsnag","creator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL"},"created_at":"2017-11-22T14:30:08.966Z","updated_at":"2017-12-12T11:36:38.140Z","auto_upgrade":true,"upgrade_url":"https://api.bugsnag.com/settings/bugsnag/plans-billing?plansBilling%5Bstep%5D=collaborators-and-events","can_start_pro_trial":false,"pro_trial_ends_at":null,"billing_emails":["BUGSNAG_USER_EMAIL"]}]'
79
66
  http_version:
80
- recorded_at: Mon, 09 Oct 2017 14:25:24 GMT
67
+ recorded_at: Tue, 12 Dec 2017 11:55:44 GMT
81
68
  recorded_with: VCR 2.9.3