bugsnag-api 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
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: '{"name":"testProject","type":"other"}'
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:20:00 GMT
31
29
  Content-Type:
32
30
  - application/json; charset=utf-8
33
31
  Etag:
34
- - W/"3f354d498328ab061a6abfff1c461f8d"
32
+ - W/"a718c58755261748996c427384415a78"
35
33
  Cache-Control:
36
34
  - max-age=0, private, must-revalidate
37
35
  X-Request-Id:
38
- - b10870c6-6d5f-4059-b5f1-dd87dc333fe9
36
+ - f1dc483d-7238-4587-8794-df4dbefb2b70
39
37
  X-Runtime:
40
- - '0.462449'
38
+ - '0.325349'
41
39
  Vary:
42
40
  - Origin
43
- X-Ratelimit-Limit:
44
- - '10'
45
- X-Ratelimit-Remaining:
46
- - '9'
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,34 +58,28 @@ 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":"59db8590c1951b0026d5a314","slug":"testproject-18","name":"testProject","api_key":"58d7fa000f28c0a38170582e7fd320ce","type":"other","is_full_view":true,"release_stages":[],"language":null,"created_at":"2017-10-09T14:20:00.572Z","updated_at":"2017-10-09T14:20:00.572Z","errors_url":"https://api.bugsnag.com/projects/59db8590c1951b0026d5a314/errors","events_url":"https://api.bugsnag.com/projects/59db8590c1951b0026d5a314/events","url":"https://api.bugsnag.com/projects/59db8590c1951b0026d5a314","html_url":"https://app.bugsnag.com/testorg-6/testproject-18","open_error_count":0,"collaborators_count":3,"global_grouping":[],"location_grouping":[],"discarded_app_versions":[],"discarded_errors":[],"custom_event_fields_used":0,"resolve_on_deploy":false}'
64
+ encoding: UTF-8
65
+ string: '{"id":"5a2fc37bd1befa003981d5b1","slug":"testproject-5","name":"testProject","api_key":"681f5e34a26d1a22ebf29d01ddb88958","type":"other","is_full_view":true,"release_stages":[],"language":null,"created_at":"2017-12-12T11:54:35.950Z","updated_at":"2017-12-12T11:54:35.950Z","errors_url":"https://api.bugsnag.com/projects/5a2fc37bd1befa003981d5b1/errors","events_url":"https://api.bugsnag.com/projects/5a2fc37bd1befa003981d5b1/events","url":"https://api.bugsnag.com/projects/5a2fc37bd1befa003981d5b1","html_url":"https://api.bugsnag.com/bugsnag/testproject-5","open_error_count":0,"collaborators_count":2,"global_grouping":[],"location_grouping":[],"discarded_app_versions":[],"discarded_errors":[],"custom_event_fields_used":0,"resolve_on_deploy":false}'
78
66
  http_version:
79
- recorded_at: Mon, 09 Oct 2017 14:19:59 GMT
67
+ recorded_at: Tue, 12 Dec 2017 11:54:24 GMT
80
68
  - request:
81
69
  method: get
82
- uri: https://api.bugsnag.com/projects/59db8590c1951b0026d5a314
70
+ uri: https://api.bugsnag.com/projects/5a2fc37bd1befa003981d5b1
83
71
  body:
84
72
  encoding: US-ASCII
85
73
  string: ''
86
74
  headers:
87
75
  User-Agent:
88
- - Bugsnag API Ruby Gem 1.0.3
76
+ - Bugsnag API Ruby Gem 2.0.1
89
77
  Content-Type:
90
78
  - application/json
91
79
  X-Version:
92
80
  - '2'
81
+ X-Bugsnag-Api:
82
+ - 'true'
93
83
  Authorization:
94
84
  - token BUGSNAG_AUTH_TOKEN
95
85
  Accept-Encoding:
@@ -101,31 +91,25 @@ http_interactions:
101
91
  code: 200
102
92
  message: OK
103
93
  headers:
104
- Server:
105
- - nginx
106
- Date:
107
- - Mon, 09 Oct 2017 14:20:01 GMT
108
94
  Content-Type:
109
95
  - application/json; charset=utf-8
110
96
  Etag:
111
- - W/"3f354d498328ab061a6abfff1c461f8d"
97
+ - W/"a718c58755261748996c427384415a78"
112
98
  Cache-Control:
113
99
  - max-age=0, private, must-revalidate
114
100
  X-Request-Id:
115
- - 8a037d05-aa2c-4675-b8f4-39c11cc46812
101
+ - 9134a8c8-dfa2-4ccf-87b6-991d7529c848
116
102
  X-Runtime:
117
- - '0.232956'
103
+ - '0.338688'
118
104
  Vary:
119
105
  - Origin
120
- X-Ratelimit-Limit:
121
- - '10'
122
- X-Ratelimit-Remaining:
123
- - '8'
106
+ X-Rack-Cors:
107
+ - miss; no-origin
124
108
  Content-Security-Policy:
125
109
  - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
126
- connect-src ''self'' https://api.bugsnag.com https://*.stripe.com https://bugsnag.zendesk.com
127
- https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com; img-src
128
- ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
110
+ connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
111
+ https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
112
+ img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
129
113
  script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
130
114
  https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
131
115
  https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
@@ -139,19 +123,11 @@ http_interactions:
139
123
  - none
140
124
  X-Xss-Protection:
141
125
  - 1; mode=block
142
- X-Robots-Tag:
143
- - noindex, nofollow
144
- Strict-Transport-Security:
145
- - max-age=31536000
146
- Via:
147
- - 1.1 google
148
- Alt-Svc:
149
- - clear
150
126
  Transfer-Encoding:
151
127
  - chunked
152
128
  body:
153
- encoding: ASCII-8BIT
154
- string: '{"id":"59db8590c1951b0026d5a314","slug":"testproject-18","name":"testProject","api_key":"58d7fa000f28c0a38170582e7fd320ce","type":"other","is_full_view":true,"release_stages":[],"language":null,"created_at":"2017-10-09T14:20:00.572Z","updated_at":"2017-10-09T14:20:00.572Z","errors_url":"https://api.bugsnag.com/projects/59db8590c1951b0026d5a314/errors","events_url":"https://api.bugsnag.com/projects/59db8590c1951b0026d5a314/events","url":"https://api.bugsnag.com/projects/59db8590c1951b0026d5a314","html_url":"https://app.bugsnag.com/testorg-6/testproject-18","open_error_count":0,"collaborators_count":3,"global_grouping":[],"location_grouping":[],"discarded_app_versions":[],"discarded_errors":[],"custom_event_fields_used":0,"resolve_on_deploy":false}'
129
+ encoding: UTF-8
130
+ string: '{"id":"5a2fc37bd1befa003981d5b1","slug":"testproject-5","name":"testProject","api_key":"681f5e34a26d1a22ebf29d01ddb88958","type":"other","is_full_view":true,"release_stages":[],"language":null,"created_at":"2017-12-12T11:54:35.950Z","updated_at":"2017-12-12T11:54:35.950Z","errors_url":"https://api.bugsnag.com/projects/5a2fc37bd1befa003981d5b1/errors","events_url":"https://api.bugsnag.com/projects/5a2fc37bd1befa003981d5b1/events","url":"https://api.bugsnag.com/projects/5a2fc37bd1befa003981d5b1","html_url":"https://api.bugsnag.com/bugsnag/testproject-5","open_error_count":0,"collaborators_count":2,"global_grouping":[],"location_grouping":[],"discarded_app_versions":[],"discarded_errors":[],"custom_event_fields_used":0,"resolve_on_deploy":false}'
155
131
  http_version:
156
- recorded_at: Mon, 09 Oct 2017 14:20:00 GMT
132
+ recorded_at: Tue, 12 Dec 2017 11:54:25 GMT
157
133
  recorded_with: VCR 2.9.3
@@ -8,11 +8,13 @@ http_interactions:
8
8
  string: '{"name":"testProject","type":"other"}'
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:19:59 GMT
31
29
  Content-Type:
32
30
  - application/json; charset=utf-8
33
31
  Etag:
34
- - W/"b2c8fde3ee1cc91cf29d6488d57dd083"
32
+ - W/"1fa5dbcc17d8576d983efb0e7561460f"
35
33
  Cache-Control:
36
34
  - max-age=0, private, must-revalidate
37
35
  X-Request-Id:
38
- - f69a1227-ac99-4eaf-a8fe-9a4045d30189
36
+ - 1947e297-5223-440c-a92e-c5d4645276af
39
37
  X-Runtime:
40
- - '0.591995'
38
+ - '0.400105'
41
39
  Vary:
42
40
  - Origin
43
- X-Ratelimit-Limit:
44
- - '10'
45
- X-Ratelimit-Remaining:
46
- - '1'
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,34 +58,28 @@ 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":"59db858e562ced00271092cd","slug":"testproject-17","name":"testProject","api_key":"a7e4f6e348a059f0722c189bfa063172","type":"other","is_full_view":true,"release_stages":[],"language":null,"created_at":"2017-10-09T14:19:59.067Z","updated_at":"2017-10-09T14:19:59.067Z","errors_url":"https://api.bugsnag.com/projects/59db858e562ced00271092cd/errors","events_url":"https://api.bugsnag.com/projects/59db858e562ced00271092cd/events","url":"https://api.bugsnag.com/projects/59db858e562ced00271092cd","html_url":"https://app.bugsnag.com/testorg-6/testproject-17","open_error_count":0,"collaborators_count":3,"global_grouping":[],"location_grouping":[],"discarded_app_versions":[],"discarded_errors":[],"custom_event_fields_used":0,"resolve_on_deploy":false}'
64
+ encoding: UTF-8
65
+ string: '{"id":"5a2fc37ed1befa003981d5b6","slug":"testproject-8","name":"testProject","api_key":"f1f1c5c93f68ba30f364a3176414cc69","type":"other","is_full_view":true,"release_stages":[],"language":null,"created_at":"2017-12-12T11:54:38.420Z","updated_at":"2017-12-12T11:54:38.420Z","errors_url":"https://api.bugsnag.com/projects/5a2fc37ed1befa003981d5b6/errors","events_url":"https://api.bugsnag.com/projects/5a2fc37ed1befa003981d5b6/events","url":"https://api.bugsnag.com/projects/5a2fc37ed1befa003981d5b6","html_url":"https://api.bugsnag.com/bugsnag/testproject-8","open_error_count":0,"collaborators_count":2,"global_grouping":[],"location_grouping":[],"discarded_app_versions":[],"discarded_errors":[],"custom_event_fields_used":0,"resolve_on_deploy":false}'
78
66
  http_version:
79
- recorded_at: Mon, 09 Oct 2017 14:19:58 GMT
67
+ recorded_at: Tue, 12 Dec 2017 11:54:27 GMT
80
68
  - request:
81
69
  method: delete
82
- uri: https://api.bugsnag.com/projects/59db858e562ced00271092cd/api_key
70
+ uri: https://api.bugsnag.com/projects/5a2fc37ed1befa003981d5b6/api_key
83
71
  body:
84
72
  encoding: UTF-8
85
73
  string: "{}"
86
74
  headers:
87
75
  User-Agent:
88
- - Bugsnag API Ruby Gem 1.0.3
76
+ - Bugsnag API Ruby Gem 2.0.1
89
77
  Content-Type:
90
78
  - application/json
91
79
  X-Version:
92
80
  - '2'
81
+ X-Bugsnag-Api:
82
+ - 'true'
93
83
  Authorization:
94
84
  - token BUGSNAG_AUTH_TOKEN
95
85
  Accept-Encoding:
@@ -101,31 +91,25 @@ http_interactions:
101
91
  code: 200
102
92
  message: OK
103
93
  headers:
104
- Server:
105
- - nginx
106
- Date:
107
- - Mon, 09 Oct 2017 14:20:00 GMT
108
94
  Content-Type:
109
95
  - application/json; charset=utf-8
110
96
  Etag:
111
- - W/"b3b86fb44e5f534ec1d5c65de6e7b23a"
97
+ - W/"3f94f34e72fea6b248e66a46305069c3"
112
98
  Cache-Control:
113
99
  - max-age=0, private, must-revalidate
114
100
  X-Request-Id:
115
- - 742cfc64-33dd-429a-ad4d-a0c1cf137b5f
101
+ - f720c863-211e-4276-9015-faf2fd1848c0
116
102
  X-Runtime:
117
- - '0.572875'
103
+ - '0.367331'
118
104
  Vary:
119
105
  - Origin
120
- X-Ratelimit-Limit:
121
- - '10'
122
- X-Ratelimit-Remaining:
123
- - '0'
106
+ X-Rack-Cors:
107
+ - miss; no-origin
124
108
  Content-Security-Policy:
125
109
  - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
126
- connect-src ''self'' https://api.bugsnag.com https://*.stripe.com https://bugsnag.zendesk.com
127
- https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com; img-src
128
- ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
110
+ connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
111
+ https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
112
+ img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
129
113
  script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
130
114
  https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
131
115
  https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
@@ -139,19 +123,11 @@ http_interactions:
139
123
  - none
140
124
  X-Xss-Protection:
141
125
  - 1; mode=block
142
- X-Robots-Tag:
143
- - noindex, nofollow
144
- Strict-Transport-Security:
145
- - max-age=31536000
146
- Via:
147
- - 1.1 google
148
- Alt-Svc:
149
- - clear
150
126
  Transfer-Encoding:
151
127
  - chunked
152
128
  body:
153
- encoding: ASCII-8BIT
154
- string: '{"id":"59db858e562ced00271092cd","slug":"testproject-17","name":"testProject","api_key":"76fc920d13137e7ab9740298e327f992","type":"other","is_full_view":true,"release_stages":[],"language":null,"created_at":"2017-10-09T14:19:59.067Z","updated_at":"2017-10-09T14:20:00.006Z","errors_url":"https://api.bugsnag.com/projects/59db858e562ced00271092cd/errors","events_url":"https://api.bugsnag.com/projects/59db858e562ced00271092cd/events","url":"https://api.bugsnag.com/projects/59db858e562ced00271092cd","html_url":"https://app.bugsnag.com/testorg-6/testproject-17","open_error_count":0,"collaborators_count":3,"global_grouping":[],"location_grouping":[],"discarded_app_versions":[],"discarded_errors":[],"custom_event_fields_used":0,"resolve_on_deploy":false}'
129
+ encoding: UTF-8
130
+ string: '{"id":"5a2fc37ed1befa003981d5b6","slug":"testproject-8","name":"testProject","api_key":"09e1f65d227e7e725ac76a8d8fed6fa5","type":"other","is_full_view":true,"release_stages":[],"language":null,"created_at":"2017-12-12T11:54:38.420Z","updated_at":"2017-12-12T11:54:38.829Z","errors_url":"https://api.bugsnag.com/projects/5a2fc37ed1befa003981d5b6/errors","events_url":"https://api.bugsnag.com/projects/5a2fc37ed1befa003981d5b6/events","url":"https://api.bugsnag.com/projects/5a2fc37ed1befa003981d5b6","html_url":"https://api.bugsnag.com/bugsnag/testproject-8","open_error_count":0,"collaborators_count":2,"global_grouping":[],"location_grouping":[],"discarded_app_versions":[],"discarded_errors":[],"custom_event_fields_used":0,"resolve_on_deploy":false}'
155
131
  http_version:
156
- recorded_at: Mon, 09 Oct 2017 14:19:59 GMT
132
+ recorded_at: Tue, 12 Dec 2017 11:54:27 GMT
157
133
  recorded_with: VCR 2.9.3
@@ -8,11 +8,13 @@ http_interactions:
8
8
  string: '{"name":"testProject","type":"other"}'
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:20:03 GMT
31
29
  Content-Type:
32
30
  - application/json; charset=utf-8
33
31
  Etag:
34
- - W/"a387d83a2ffbd2ca27141e532ac33c22"
32
+ - W/"6e906125889381351185c27cbfa63c2a"
35
33
  Cache-Control:
36
34
  - max-age=0, private, must-revalidate
37
35
  X-Request-Id:
38
- - 40e4369f-6ab4-47d8-92c0-be48e024dca4
36
+ - 1d2a23f4-72e0-4368-bbb5-451d0e277a26
39
37
  X-Runtime:
40
- - '0.457643'
38
+ - '0.411130'
41
39
  Vary:
42
40
  - Origin
43
- X-Ratelimit-Limit:
44
- - '10'
45
- X-Ratelimit-Remaining:
46
- - '5'
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,34 +58,28 @@ 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":"59db8593c1951b0026d5a316","slug":"testproject-20","name":"testProject","api_key":"7e3bd84a2d0fc1ea9585561dcef8ba1b","type":"other","is_full_view":true,"release_stages":[],"language":null,"created_at":"2017-10-09T14:20:03.469Z","updated_at":"2017-10-09T14:20:03.469Z","errors_url":"https://api.bugsnag.com/projects/59db8593c1951b0026d5a316/errors","events_url":"https://api.bugsnag.com/projects/59db8593c1951b0026d5a316/events","url":"https://api.bugsnag.com/projects/59db8593c1951b0026d5a316","html_url":"https://app.bugsnag.com/testorg-6/testproject-20","open_error_count":0,"collaborators_count":3,"global_grouping":[],"location_grouping":[],"discarded_app_versions":[],"discarded_errors":[],"custom_event_fields_used":0,"resolve_on_deploy":false}'
64
+ encoding: UTF-8
65
+ string: '{"id":"5a2fc37dd1befa002881d59d","slug":"testproject-7","name":"testProject","api_key":"106ceb030be4439f114b3cd25de93868","type":"other","is_full_view":true,"release_stages":[],"language":null,"created_at":"2017-12-12T11:54:37.561Z","updated_at":"2017-12-12T11:54:37.561Z","errors_url":"https://api.bugsnag.com/projects/5a2fc37dd1befa002881d59d/errors","events_url":"https://api.bugsnag.com/projects/5a2fc37dd1befa002881d59d/events","url":"https://api.bugsnag.com/projects/5a2fc37dd1befa002881d59d","html_url":"https://api.bugsnag.com/bugsnag/testproject-7","open_error_count":0,"collaborators_count":2,"global_grouping":[],"location_grouping":[],"discarded_app_versions":[],"discarded_errors":[],"custom_event_fields_used":0,"resolve_on_deploy":false}'
78
66
  http_version:
79
- recorded_at: Mon, 09 Oct 2017 14:20:02 GMT
67
+ recorded_at: Tue, 12 Dec 2017 11:54:26 GMT
80
68
  - request:
81
69
  method: patch
82
- uri: https://api.bugsnag.com/projects/59db8593c1951b0026d5a316
70
+ uri: https://api.bugsnag.com/projects/5a2fc37dd1befa002881d59d
83
71
  body:
84
72
  encoding: UTF-8
85
73
  string: '{"name":"otherName"}'
86
74
  headers:
87
75
  User-Agent:
88
- - Bugsnag API Ruby Gem 1.0.3
76
+ - Bugsnag API Ruby Gem 2.0.1
89
77
  Content-Type:
90
78
  - application/json
91
79
  X-Version:
92
80
  - '2'
81
+ X-Bugsnag-Api:
82
+ - 'true'
93
83
  Authorization:
94
84
  - token BUGSNAG_AUTH_TOKEN
95
85
  Accept-Encoding:
@@ -101,31 +91,25 @@ http_interactions:
101
91
  code: 200
102
92
  message: OK
103
93
  headers:
104
- Server:
105
- - nginx
106
- Date:
107
- - Mon, 09 Oct 2017 14:20:04 GMT
108
94
  Content-Type:
109
95
  - application/json; charset=utf-8
110
96
  Etag:
111
- - W/"60c5f7a909003b15a604b0b5bf6e46bf"
97
+ - W/"95dc67919f2d0df48dc2bfea2269fef6"
112
98
  Cache-Control:
113
99
  - max-age=0, private, must-revalidate
114
100
  X-Request-Id:
115
- - fbfca888-46b6-414e-a67d-3cc8a9a58e82
101
+ - 53943c17-51db-4bb5-a997-f0c2c6dd5bdc
116
102
  X-Runtime:
117
- - '0.234484'
103
+ - '0.424156'
118
104
  Vary:
119
105
  - Origin
120
- X-Ratelimit-Limit:
121
- - '10'
122
- X-Ratelimit-Remaining:
123
- - '4'
106
+ X-Rack-Cors:
107
+ - miss; no-origin
124
108
  Content-Security-Policy:
125
109
  - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
126
- connect-src ''self'' https://api.bugsnag.com https://*.stripe.com https://bugsnag.zendesk.com
127
- https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com; img-src
128
- ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
110
+ connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
111
+ https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
112
+ img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
129
113
  script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
130
114
  https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
131
115
  https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
@@ -139,19 +123,11 @@ http_interactions:
139
123
  - none
140
124
  X-Xss-Protection:
141
125
  - 1; mode=block
142
- X-Robots-Tag:
143
- - noindex, nofollow
144
- Strict-Transport-Security:
145
- - max-age=31536000
146
- Via:
147
- - 1.1 google
148
- Alt-Svc:
149
- - clear
150
126
  Transfer-Encoding:
151
127
  - chunked
152
128
  body:
153
- encoding: ASCII-8BIT
154
- string: '{"id":"59db8593c1951b0026d5a316","slug":"othername-3","name":"otherName","api_key":"7e3bd84a2d0fc1ea9585561dcef8ba1b","type":"other","is_full_view":true,"release_stages":[],"language":null,"created_at":"2017-10-09T14:20:03.469Z","updated_at":"2017-10-09T14:20:04.180Z","errors_url":"https://api.bugsnag.com/projects/59db8593c1951b0026d5a316/errors","events_url":"https://api.bugsnag.com/projects/59db8593c1951b0026d5a316/events","url":"https://api.bugsnag.com/projects/59db8593c1951b0026d5a316","html_url":"https://app.bugsnag.com/testorg-6/othername-3","open_error_count":0,"collaborators_count":3,"global_grouping":[],"location_grouping":[],"discarded_app_versions":[],"discarded_errors":[],"custom_event_fields_used":0,"resolve_on_deploy":false}'
129
+ encoding: UTF-8
130
+ string: '{"id":"5a2fc37dd1befa002881d59d","slug":"othername-1","name":"otherName","api_key":"106ceb030be4439f114b3cd25de93868","type":"other","is_full_view":true,"release_stages":[],"language":null,"created_at":"2017-12-12T11:54:37.561Z","updated_at":"2017-12-12T11:54:38.031Z","errors_url":"https://api.bugsnag.com/projects/5a2fc37dd1befa002881d59d/errors","events_url":"https://api.bugsnag.com/projects/5a2fc37dd1befa002881d59d/events","url":"https://api.bugsnag.com/projects/5a2fc37dd1befa002881d59d","html_url":"https://api.bugsnag.com/bugsnag/othername-1","open_error_count":0,"collaborators_count":2,"global_grouping":[],"location_grouping":[],"discarded_app_versions":[],"discarded_errors":[],"custom_event_fields_used":0,"resolve_on_deploy":false}'
155
131
  http_version:
156
- recorded_at: Mon, 09 Oct 2017 14:20:03 GMT
132
+ recorded_at: Tue, 12 Dec 2017 11:54:26 GMT
157
133
  recorded_with: VCR 2.9.3