bugsnag-api 2.0.1 → 2.1.1

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 (89) hide show
  1. checksums.yaml +5 -5
  2. data/.buildkite/pipeline.yml +6 -0
  3. data/.github/ISSUE_TEMPLATE/A.md +14 -0
  4. data/.github/ISSUE_TEMPLATE/bug_report.md +47 -0
  5. data/.github/ISSUE_TEMPLATE/feature_request.md +24 -0
  6. data/.github/PULL_REQUEST_TEMPLATE.md +16 -0
  7. data/.github/support.md +19 -0
  8. data/.github/workflows/tests.yml +53 -0
  9. data/.rubocop.yml +4 -0
  10. data/.rubocop_todo.yml +271 -0
  11. data/CHANGELOG.md +34 -0
  12. data/CONTRIBUTING.md +1 -1
  13. data/Gemfile +9 -0
  14. data/README.md +77 -2
  15. data/bugsnag-api.gemspec +48 -6
  16. data/config/.gitignore +1 -0
  17. data/docker-compose.yml +9 -0
  18. data/dockerfiles/Dockerfile.audit +5 -0
  19. data/lib/bugsnag/api/client/collaborators.rb +1 -2
  20. data/lib/bugsnag/api/client/comments.rb +1 -1
  21. data/lib/bugsnag/api/client/currentuser.rb +0 -1
  22. data/lib/bugsnag/api/client/errors.rb +12 -11
  23. data/lib/bugsnag/api/client/eventfields.rb +1 -2
  24. data/lib/bugsnag/api/client/events.rb +1 -2
  25. data/lib/bugsnag/api/client/organizations.rb +1 -2
  26. data/lib/bugsnag/api/client/pivots.rb +1 -2
  27. data/lib/bugsnag/api/client/projects.rb +2 -3
  28. data/lib/bugsnag/api/client/releases.rb +38 -0
  29. data/lib/bugsnag/api/client/stability.rb +16 -0
  30. data/lib/bugsnag/api/client/trends.rb +8 -5
  31. data/lib/bugsnag/api/client.rb +23 -3
  32. data/lib/bugsnag/api/configuration.rb +1 -1
  33. data/lib/bugsnag/api/error.rb +1 -1
  34. data/lib/bugsnag/api/response/raise_error.rb +0 -2
  35. data/lib/bugsnag/api/version.rb +1 -1
  36. data/scripts/license_finder.sh +4 -0
  37. data/spec/bugsnag/api/client/releases_spec.rb +184 -0
  38. data/spec/bugsnag/api/client/stability_spec.rb +32 -0
  39. data/spec/bugsnag/api/client_spec.rb +69 -7
  40. data/spec/bugsnag/api_spec.rb +2 -0
  41. data/spec/cassettes/Bugsnag_Api_Client/_get/handles_query_params.yml +13 -21
  42. data/spec/cassettes/Bugsnag_Api_Client/_last_response/caches_the_last_agent_response.yml +13 -21
  43. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/_invitecollaborator/creates_and_returns_a_collaborator.yml +14 -26
  44. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/_invitecollaborator/invites_multiple_collaborators.yml +14 -26
  45. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborator/returns_a_collaborator.yml +29 -53
  46. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborators/returns_a_list_of_all_organization_collaborators.yml +30 -55
  47. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborators/returns_a_list_of_all_project_collaborators.yml +30 -55
  48. 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
  49. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_delete_collaborator/deletes_a_collaborator.yml +14 -26
  50. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_update_collaborator_permissions/updates_and_returns_the_collaborator.yml +29 -53
  51. 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
  52. data/spec/cassettes/Bugsnag_Api_Client_Comments/_create_comment/creates_a_comment_on_the_error.yml +17 -29
  53. data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_comment/retrieves_the_comment_specified.yml +32 -56
  54. data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_comments/retrieves_all_comments_on_an_error.yml +33 -57
  55. data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_delete_comment/deletes_the_comment_and_returns_true.yml +17 -29
  56. data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_update_comment/updates_the_message_on_a_comment.yml +32 -56
  57. data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_organizations/when_using_auth_token/returns_the_organization_the_auth_token_belongs_to.yml +14 -27
  58. data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_organizations/when_using_user_credentials/returns_users_organizations.yml +17 -31
  59. data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_projects/when_using_auth_token/lists_current_user_s_projects_in_the_organization.yml +34 -28
  60. data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_projects/when_using_user_credentials/lists_current_user_s_projects_in_the_organization.yml +37 -32
  61. data/spec/cassettes/Bugsnag_Api_Client_Errors/_error/returns_a_single_error.yml +14 -28
  62. data/spec/cassettes/Bugsnag_Api_Client_Errors/_errors/returns_errors_on_the_project.yml +16 -30
  63. data/spec/cassettes/Bugsnag_Api_Client_Errors/_update_errors/updates_and_returns_the_updated_errors.yml +13 -25
  64. data/spec/cassettes/Bugsnag_Api_Client_Events/_error_events/lists_all_error_events.yml +19 -30
  65. data/spec/cassettes/Bugsnag_Api_Client_Events/_event/returns_the_specified_event.yml +16 -199
  66. data/spec/cassettes/Bugsnag_Api_Client_Events/_events/returns_the_a_list_of_project_errors.yml +19 -30
  67. data/spec/cassettes/Bugsnag_Api_Client_Events/_latest_event/returns_the_last_event_on_an_error.yml +16 -199
  68. data/spec/cassettes/Bugsnag_Api_Client_Organizations/_create_organization/creates_a_new_organization.yml +17 -30
  69. data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_delete_organization/deletes_the_organization.yml +32 -58
  70. data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_organization/returns_the_requested_organization.yml +35 -61
  71. data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_update_organization/updates_and_returns_the_organization.yml +35 -61
  72. data/spec/cassettes/Bugsnag_Api_Client_Projects/_create_project/creates_a_new_project.yml +14 -26
  73. data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_delete_project/deletes_the_project.yml +26 -50
  74. data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_project/returns_the_requested_project.yml +29 -53
  75. 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
  76. data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_update_project/updates_and_returns_the_project.yml +29 -53
  77. data/spec/cassettes/Bugsnag_Api_Client_Releases/_release/gets_a_single_release.yml +87 -0
  78. data/spec/cassettes/Bugsnag_Api_Client_Releases/_release_groups/accepts_parameters.yml +90 -0
  79. data/spec/cassettes/Bugsnag_Api_Client_Releases/_release_groups/gets_releases_in_a_release_group.yml +87 -0
  80. data/spec/cassettes/Bugsnag_Api_Client_Releases/_releases/accepts_parameters.yml +92 -0
  81. data/spec/cassettes/Bugsnag_Api_Client_Releases/_releases/gets_as_list_of_releases.yml +91 -0
  82. data/spec/cassettes/Bugsnag_Api_Client_Stability/_stability_trend/gets_the_stability_trend.yml +87 -0
  83. data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_buckets/returns_a_list_of_error_trends_in_bucket_form.yml +14 -26
  84. data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_buckets/returns_a_list_of_project_trends_in_bucket_form.yml +14 -26
  85. data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_resolution/returns_a_list_of_project_trends_in_resolution_form.yml +14 -26
  86. data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_resolution/returns_a_list_of_trends_in_resolution_form.yml +14 -26
  87. data/spec/spec_helper.rb +35 -7
  88. metadata +67 -24
  89. data/.travis.yml +0 -17
@@ -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:02 GMT
31
29
  Content-Type:
32
30
  - application/json; charset=utf-8
33
31
  Etag:
34
- - W/"38f18a7425e71222d55f823df81196b2"
32
+ - W/"e94ed6494dc2680a7e5e80bfcb8fb1ee"
35
33
  Cache-Control:
36
34
  - max-age=0, private, must-revalidate
37
35
  X-Request-Id:
38
- - 55cdfa19-4141-42a8-9ba9-7db16ec9fb96
36
+ - bab2c7b5-1be8-4967-8064-42bd7df65430
39
37
  X-Runtime:
40
- - '0.473145'
38
+ - '0.357678'
41
39
  Vary:
42
40
  - Origin
43
- X-Ratelimit-Limit:
44
- - '10'
45
- X-Ratelimit-Remaining:
46
- - '7'
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":"59db8591901da0001b1eb516","slug":"testproject-19","name":"testProject","api_key":"7d4b8ece0f1cc1f134117ff52a6114ac","type":"other","is_full_view":true,"release_stages":[],"language":null,"created_at":"2017-10-09T14:20:02.028Z","updated_at":"2017-10-09T14:20:02.028Z","errors_url":"https://api.bugsnag.com/projects/59db8591901da0001b1eb516/errors","events_url":"https://api.bugsnag.com/projects/59db8591901da0001b1eb516/events","url":"https://api.bugsnag.com/projects/59db8591901da0001b1eb516","html_url":"https://app.bugsnag.com/testorg-6/testproject-19","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":"5a2fc37cd1befa003981d5b3","slug":"testproject-6","name":"testProject","api_key":"5329778c8dafb6b594f3aab77dab3089","type":"other","is_full_view":true,"release_stages":[],"language":null,"created_at":"2017-12-12T11:54:36.671Z","updated_at":"2017-12-12T11:54:36.671Z","errors_url":"https://api.bugsnag.com/projects/5a2fc37cd1befa003981d5b3/errors","events_url":"https://api.bugsnag.com/projects/5a2fc37cd1befa003981d5b3/events","url":"https://api.bugsnag.com/projects/5a2fc37cd1befa003981d5b3","html_url":"https://api.bugsnag.com/bugsnag/testproject-6","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:01 GMT
67
+ recorded_at: Tue, 12 Dec 2017 11:54:25 GMT
80
68
  - request:
81
69
  method: delete
82
- uri: https://api.bugsnag.com/projects/59db8591901da0001b1eb516
70
+ uri: https://api.bugsnag.com/projects/5a2fc37cd1befa003981d5b3
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,27 +91,21 @@ http_interactions:
101
91
  code: 204
102
92
  message: No Content
103
93
  headers:
104
- Server:
105
- - nginx
106
- Date:
107
- - Mon, 09 Oct 2017 14:20:02 GMT
108
94
  Cache-Control:
109
95
  - no-cache
110
96
  X-Request-Id:
111
- - 1b8c916c-bad4-4fe5-b949-192559e8cdee
97
+ - 66753d44-6990-45d7-b8d0-5ee9cb38b738
112
98
  X-Runtime:
113
- - '0.415988'
99
+ - '0.470776'
114
100
  Vary:
115
101
  - Origin
116
- X-Ratelimit-Limit:
117
- - '10'
118
- X-Ratelimit-Remaining:
119
- - '6'
102
+ X-Rack-Cors:
103
+ - miss; no-origin
120
104
  Content-Security-Policy:
121
105
  - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
122
- connect-src ''self'' https://api.bugsnag.com https://*.stripe.com https://bugsnag.zendesk.com
123
- https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com; img-src
124
- ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
106
+ connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
107
+ https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
108
+ img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
125
109
  script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
126
110
  https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
127
111
  https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
@@ -135,17 +119,9 @@ http_interactions:
135
119
  - none
136
120
  X-Xss-Protection:
137
121
  - 1; mode=block
138
- X-Robots-Tag:
139
- - noindex, nofollow
140
- Strict-Transport-Security:
141
- - max-age=31536000
142
- Via:
143
- - 1.1 google
144
- Alt-Svc:
145
- - clear
146
122
  body:
147
123
  encoding: UTF-8
148
124
  string: ''
149
125
  http_version:
150
- recorded_at: Mon, 09 Oct 2017 14:20:01 GMT
126
+ recorded_at: Tue, 12 Dec 2017 11:54:26 GMT
151
127
  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: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