bugsnag-api 1.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) 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 +2 -0
  10. data/.rubocop_todo.yml +271 -0
  11. data/CHANGELOG.md +59 -0
  12. data/CONTRIBUTING.md +40 -0
  13. data/Gemfile +9 -0
  14. data/README.md +178 -109
  15. data/bugsnag-api.gemspec +42 -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.rb +32 -10
  20. data/lib/bugsnag/api/client/collaborators.rb +86 -0
  21. data/lib/bugsnag/api/client/comments.rb +31 -40
  22. data/lib/bugsnag/api/client/currentuser.rb +32 -0
  23. data/lib/bugsnag/api/client/errors.rb +48 -53
  24. data/lib/bugsnag/api/client/eventfields.rb +49 -0
  25. data/lib/bugsnag/api/client/events.rb +37 -32
  26. data/lib/bugsnag/api/client/organizations.rb +45 -0
  27. data/lib/bugsnag/api/client/pivots.rb +42 -0
  28. data/lib/bugsnag/api/client/projects.rb +36 -63
  29. data/lib/bugsnag/api/client/trends.rb +41 -0
  30. data/lib/bugsnag/api/configuration.rb +1 -1
  31. data/lib/bugsnag/api/error.rb +5 -1
  32. data/lib/bugsnag/api/response/raise_error.rb +0 -2
  33. data/lib/bugsnag/api/version.rb +1 -1
  34. data/scripts/license_finder.sh +4 -0
  35. data/spec/bugsnag/api/client/collaborators_spec.rb +101 -0
  36. data/spec/bugsnag/api/client/comments_spec.rb +42 -30
  37. data/spec/bugsnag/api/client/currentuser_spec.rb +57 -0
  38. data/spec/bugsnag/api/client/errors_spec.rb +44 -41
  39. data/spec/bugsnag/api/client/eventfields_spec.rb +56 -0
  40. data/spec/bugsnag/api/client/events_spec.rb +41 -29
  41. data/spec/bugsnag/api/client/organizations_spec.rb +53 -0
  42. data/spec/bugsnag/api/client/pivots_spec.rb +49 -0
  43. data/spec/bugsnag/api/client/projects_spec.rb +35 -59
  44. data/spec/bugsnag/api/client/trends_spec.rb +44 -0
  45. data/spec/bugsnag/api/client_spec.rb +76 -9
  46. data/spec/bugsnag/api_spec.rb +2 -0
  47. data/spec/cassettes/Bugsnag_Api_Client/_get/handles_query_params.yml +36 -26
  48. data/spec/cassettes/Bugsnag_Api_Client/_last_response/caches_the_last_agent_response.yml +36 -26
  49. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/_invitecollaborator/creates_and_returns_a_collaborator.yml +68 -0
  50. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/_invitecollaborator/invites_multiple_collaborators.yml +68 -0
  51. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborator/returns_a_collaborator.yml +133 -0
  52. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborators/returns_a_list_of_all_organization_collaborators.yml +135 -0
  53. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborators/returns_a_list_of_all_project_collaborators.yml +135 -0
  54. 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 +68 -0
  55. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_delete_collaborator/deletes_a_collaborator.yml +68 -0
  56. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_update_collaborator_permissions/updates_and_returns_the_collaborator.yml +133 -0
  57. data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_view_collaborator_projects/returns_a_list_of_projects_belonging_to_the_collaborator.yml +153 -0
  58. data/spec/cassettes/Bugsnag_Api_Client_Comments/_create_comment/creates_a_comment_on_the_error.yml +70 -0
  59. data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_comment/retrieves_the_comment_specified.yml +135 -0
  60. data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_comments/retrieves_all_comments_on_an_error.yml +137 -0
  61. data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_delete_comment/deletes_the_comment_and_returns_true.yml +70 -0
  62. data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_update_comment/updates_the_message_on_a_comment.yml +135 -0
  63. data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_organizations/when_using_auth_token/returns_the_organization_the_auth_token_belongs_to.yml +68 -0
  64. data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_organizations/when_using_user_credentials/returns_users_organizations.yml +71 -0
  65. data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_projects/when_using_auth_token/lists_current_user_s_projects_in_the_organization.yml +88 -0
  66. data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_projects/when_using_user_credentials/lists_current_user_s_projects_in_the_organization.yml +91 -0
  67. data/spec/cassettes/Bugsnag_Api_Client_Errors/_error/returns_a_single_error.yml +68 -0
  68. data/spec/cassettes/Bugsnag_Api_Client_Errors/_errors/returns_errors_on_the_project.yml +70 -0
  69. data/spec/cassettes/Bugsnag_Api_Client_Errors/_update_errors/updates_and_returns_the_updated_errors.yml +68 -0
  70. data/spec/cassettes/Bugsnag_Api_Client_Events/_error_events/lists_all_error_events.yml +73 -0
  71. data/spec/cassettes/Bugsnag_Api_Client_Events/_event/returns_the_specified_event.yml +70 -0
  72. data/spec/cassettes/Bugsnag_Api_Client_Events/_events/returns_the_a_list_of_project_errors.yml +73 -0
  73. data/spec/cassettes/Bugsnag_Api_Client_Events/_latest_event/returns_the_last_event_on_an_error.yml +70 -0
  74. data/spec/cassettes/Bugsnag_Api_Client_Organizations/_create_organization/creates_a_new_organization.yml +71 -0
  75. data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_delete_organization/deletes_the_organization.yml +133 -0
  76. data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_organization/returns_the_requested_organization.yml +139 -0
  77. data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_update_organization/updates_and_returns_the_organization.yml +139 -0
  78. data/spec/cassettes/Bugsnag_Api_Client_Projects/_create_project/creates_a_new_project.yml +68 -0
  79. data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_delete_project/deletes_the_project.yml +127 -0
  80. data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_project/returns_the_requested_project.yml +133 -0
  81. 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 +133 -0
  82. data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_update_project/updates_and_returns_the_project.yml +133 -0
  83. data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_buckets/returns_a_list_of_error_trends_in_bucket_form.yml +68 -0
  84. data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_buckets/returns_a_list_of_project_trends_in_bucket_form.yml +68 -0
  85. data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_resolution/returns_a_list_of_project_trends_in_resolution_form.yml +68 -0
  86. data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_resolution/returns_a_list_of_trends_in_resolution_form.yml +68 -0
  87. data/spec/spec_helper.rb +32 -30
  88. metadata +167 -115
  89. data/.travis.yml +0 -9
  90. data/lib/bugsnag/api/client/accounts.rb +0 -44
  91. data/lib/bugsnag/api/client/users.rb +0 -99
  92. data/spec/bugsnag/api/client/accounts_spec.rb +0 -45
  93. data/spec/bugsnag/api/client/users_spec.rb +0 -105
  94. data/spec/cassettes/Bugsnag_Api_Client_Accounts/_account/returns_the_requested_account.yml +0 -49
  95. data/spec/cassettes/Bugsnag_Api_Client_Accounts/_account/when_using_account_credentials/returns_the_account.yml +0 -51
  96. data/spec/cassettes/Bugsnag_Api_Client_Accounts/_accounts/returns_all_accounts.yml +0 -49
  97. data/spec/cassettes/Bugsnag_Api_Client_Comments/_comments/returns_all_comments_on_an_error.yml +0 -107
  98. data/spec/cassettes/Bugsnag_Api_Client_Comments/_create_comment/created_a_comment.yml +0 -51
  99. data/spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_comment/returns_a_comment.yml +0 -97
  100. data/spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_delete_comment/deletes_an_existing_comment.yml +0 -92
  101. data/spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_update_comment/updates_an_existing_comment.yml +0 -97
  102. data/spec/cassettes/Bugsnag_Api_Client_Errors/_errors/returns_all_errors_on_an_project.yml +0 -48
  103. data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_error/returns_an_error.yml +0 -48
  104. data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_reopen_error/reopens_the_error.yml +0 -48
  105. data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_resolve_error/resolves_the_error.yml +0 -48
  106. data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_update_error/updates_the_error.yml +0 -48
  107. data/spec/cassettes/Bugsnag_Api_Client_Events/_error_events/returns_all_events_on_an_error.yml +0 -64
  108. data/spec/cassettes/Bugsnag_Api_Client_Events/_project_events/returns_all_events_on_a_project.yml +0 -64
  109. data/spec/cassettes/Bugsnag_Api_Client_Events/with_event/_event/returns_an_event.yml +0 -56
  110. data/spec/cassettes/Bugsnag_Api_Client_Projects/_account_projects/returns_all_projects_on_an_account.yml +0 -61
  111. data/spec/cassettes/Bugsnag_Api_Client_Projects/_account_projects/when_using_account_credentials/returns_all_projects.yml +0 -63
  112. data/spec/cassettes/Bugsnag_Api_Client_Projects/_create_project/creates_a_project_on_an_account.yml +0 -50
  113. data/spec/cassettes/Bugsnag_Api_Client_Projects/_user_projects/returns_all_projects_for_a_user.yml +0 -61
  114. data/spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_delete_project/deletes_an_existing_project.yml +0 -91
  115. data/spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_project/returns_a_project.yml +0 -95
  116. data/spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_update_project/updates_an_existing_project.yml +0 -95
  117. data/spec/cassettes/Bugsnag_Api_Client_Users/_account_users/returns_all_users_on_an_account.yml +0 -49
  118. data/spec/cassettes/Bugsnag_Api_Client_Users/_account_users/when_using_account_credentials/returns_all_users.yml +0 -51
  119. data/spec/cassettes/Bugsnag_Api_Client_Users/_invite_user/invites_a_user_to_an_account.yml +0 -48
  120. data/spec/cassettes/Bugsnag_Api_Client_Users/_project_users/returns_all_users_for_a_project.yml +0 -49
  121. data/spec/cassettes/Bugsnag_Api_Client_Users/_user/returns_a_user.yml +0 -48
  122. data/spec/cassettes/Bugsnag_Api_Client_Users/_user/when_using_user_credentials/returns_the_authed_user.yml +0 -48
  123. data/spec/cassettes/Bugsnag_Api_Client_Users/with_user/_remove_user/removes_a_user_from_an_account.yml +0 -89
  124. data/spec/cassettes/Bugsnag_Api_Client_Users/with_user/_update_user_permissions/updates_a_users_permissions.yml +0 -93
@@ -0,0 +1,133 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.bugsnag.com/organizations/BUGSNAG_ORG_ID/projects
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"testProject","type":"other"}'
9
+ headers:
10
+ User-Agent:
11
+ - Bugsnag API Ruby Gem 2.0.1
12
+ Content-Type:
13
+ - application/json
14
+ X-Version:
15
+ - '2'
16
+ X-Bugsnag-Api:
17
+ - 'true'
18
+ Authorization:
19
+ - token BUGSNAG_AUTH_TOKEN
20
+ Accept-Encoding:
21
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
22
+ Accept:
23
+ - "*/*"
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Etag:
32
+ - W/"a718c58755261748996c427384415a78"
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Request-Id:
36
+ - f1dc483d-7238-4587-8794-df4dbefb2b70
37
+ X-Runtime:
38
+ - '0.325349'
39
+ Vary:
40
+ - Origin
41
+ X-Rack-Cors:
42
+ - miss; no-origin
43
+ Content-Security-Policy:
44
+ - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
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;
48
+ script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
49
+ https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
50
+ https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
51
+ X-Content-Type-Options:
52
+ - nosniff
53
+ X-Download-Options:
54
+ - noopen
55
+ X-Frame-Options:
56
+ - DENY
57
+ X-Permitted-Cross-Domain-Policies:
58
+ - none
59
+ X-Xss-Protection:
60
+ - 1; mode=block
61
+ Transfer-Encoding:
62
+ - chunked
63
+ body:
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}'
66
+ http_version:
67
+ recorded_at: Tue, 12 Dec 2017 11:54:24 GMT
68
+ - request:
69
+ method: get
70
+ uri: https://api.bugsnag.com/projects/5a2fc37bd1befa003981d5b1
71
+ body:
72
+ encoding: US-ASCII
73
+ string: ''
74
+ headers:
75
+ User-Agent:
76
+ - Bugsnag API Ruby Gem 2.0.1
77
+ Content-Type:
78
+ - application/json
79
+ X-Version:
80
+ - '2'
81
+ X-Bugsnag-Api:
82
+ - 'true'
83
+ Authorization:
84
+ - token BUGSNAG_AUTH_TOKEN
85
+ Accept-Encoding:
86
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
87
+ Accept:
88
+ - "*/*"
89
+ response:
90
+ status:
91
+ code: 200
92
+ message: OK
93
+ headers:
94
+ Content-Type:
95
+ - application/json; charset=utf-8
96
+ Etag:
97
+ - W/"a718c58755261748996c427384415a78"
98
+ Cache-Control:
99
+ - max-age=0, private, must-revalidate
100
+ X-Request-Id:
101
+ - 9134a8c8-dfa2-4ccf-87b6-991d7529c848
102
+ X-Runtime:
103
+ - '0.338688'
104
+ Vary:
105
+ - Origin
106
+ X-Rack-Cors:
107
+ - miss; no-origin
108
+ Content-Security-Policy:
109
+ - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
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;
113
+ script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
114
+ https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
115
+ https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
116
+ X-Content-Type-Options:
117
+ - nosniff
118
+ X-Download-Options:
119
+ - noopen
120
+ X-Frame-Options:
121
+ - DENY
122
+ X-Permitted-Cross-Domain-Policies:
123
+ - none
124
+ X-Xss-Protection:
125
+ - 1; mode=block
126
+ Transfer-Encoding:
127
+ - chunked
128
+ body:
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}'
131
+ http_version:
132
+ recorded_at: Tue, 12 Dec 2017 11:54:25 GMT
133
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,133 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.bugsnag.com/organizations/BUGSNAG_ORG_ID/projects
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"testProject","type":"other"}'
9
+ headers:
10
+ User-Agent:
11
+ - Bugsnag API Ruby Gem 2.0.1
12
+ Content-Type:
13
+ - application/json
14
+ X-Version:
15
+ - '2'
16
+ X-Bugsnag-Api:
17
+ - 'true'
18
+ Authorization:
19
+ - token BUGSNAG_AUTH_TOKEN
20
+ Accept-Encoding:
21
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
22
+ Accept:
23
+ - "*/*"
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Etag:
32
+ - W/"1fa5dbcc17d8576d983efb0e7561460f"
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Request-Id:
36
+ - 1947e297-5223-440c-a92e-c5d4645276af
37
+ X-Runtime:
38
+ - '0.400105'
39
+ Vary:
40
+ - Origin
41
+ X-Rack-Cors:
42
+ - miss; no-origin
43
+ Content-Security-Policy:
44
+ - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
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;
48
+ script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
49
+ https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
50
+ https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
51
+ X-Content-Type-Options:
52
+ - nosniff
53
+ X-Download-Options:
54
+ - noopen
55
+ X-Frame-Options:
56
+ - DENY
57
+ X-Permitted-Cross-Domain-Policies:
58
+ - none
59
+ X-Xss-Protection:
60
+ - 1; mode=block
61
+ Transfer-Encoding:
62
+ - chunked
63
+ body:
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}'
66
+ http_version:
67
+ recorded_at: Tue, 12 Dec 2017 11:54:27 GMT
68
+ - request:
69
+ method: delete
70
+ uri: https://api.bugsnag.com/projects/5a2fc37ed1befa003981d5b6/api_key
71
+ body:
72
+ encoding: UTF-8
73
+ string: "{}"
74
+ headers:
75
+ User-Agent:
76
+ - Bugsnag API Ruby Gem 2.0.1
77
+ Content-Type:
78
+ - application/json
79
+ X-Version:
80
+ - '2'
81
+ X-Bugsnag-Api:
82
+ - 'true'
83
+ Authorization:
84
+ - token BUGSNAG_AUTH_TOKEN
85
+ Accept-Encoding:
86
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
87
+ Accept:
88
+ - "*/*"
89
+ response:
90
+ status:
91
+ code: 200
92
+ message: OK
93
+ headers:
94
+ Content-Type:
95
+ - application/json; charset=utf-8
96
+ Etag:
97
+ - W/"3f94f34e72fea6b248e66a46305069c3"
98
+ Cache-Control:
99
+ - max-age=0, private, must-revalidate
100
+ X-Request-Id:
101
+ - f720c863-211e-4276-9015-faf2fd1848c0
102
+ X-Runtime:
103
+ - '0.367331'
104
+ Vary:
105
+ - Origin
106
+ X-Rack-Cors:
107
+ - miss; no-origin
108
+ Content-Security-Policy:
109
+ - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
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;
113
+ script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
114
+ https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
115
+ https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
116
+ X-Content-Type-Options:
117
+ - nosniff
118
+ X-Download-Options:
119
+ - noopen
120
+ X-Frame-Options:
121
+ - DENY
122
+ X-Permitted-Cross-Domain-Policies:
123
+ - none
124
+ X-Xss-Protection:
125
+ - 1; mode=block
126
+ Transfer-Encoding:
127
+ - chunked
128
+ body:
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}'
131
+ http_version:
132
+ recorded_at: Tue, 12 Dec 2017 11:54:27 GMT
133
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,133 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.bugsnag.com/organizations/BUGSNAG_ORG_ID/projects
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"testProject","type":"other"}'
9
+ headers:
10
+ User-Agent:
11
+ - Bugsnag API Ruby Gem 2.0.1
12
+ Content-Type:
13
+ - application/json
14
+ X-Version:
15
+ - '2'
16
+ X-Bugsnag-Api:
17
+ - 'true'
18
+ Authorization:
19
+ - token BUGSNAG_AUTH_TOKEN
20
+ Accept-Encoding:
21
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
22
+ Accept:
23
+ - "*/*"
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Etag:
32
+ - W/"6e906125889381351185c27cbfa63c2a"
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Request-Id:
36
+ - 1d2a23f4-72e0-4368-bbb5-451d0e277a26
37
+ X-Runtime:
38
+ - '0.411130'
39
+ Vary:
40
+ - Origin
41
+ X-Rack-Cors:
42
+ - miss; no-origin
43
+ Content-Security-Policy:
44
+ - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
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;
48
+ script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
49
+ https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
50
+ https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
51
+ X-Content-Type-Options:
52
+ - nosniff
53
+ X-Download-Options:
54
+ - noopen
55
+ X-Frame-Options:
56
+ - DENY
57
+ X-Permitted-Cross-Domain-Policies:
58
+ - none
59
+ X-Xss-Protection:
60
+ - 1; mode=block
61
+ Transfer-Encoding:
62
+ - chunked
63
+ body:
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}'
66
+ http_version:
67
+ recorded_at: Tue, 12 Dec 2017 11:54:26 GMT
68
+ - request:
69
+ method: patch
70
+ uri: https://api.bugsnag.com/projects/5a2fc37dd1befa002881d59d
71
+ body:
72
+ encoding: UTF-8
73
+ string: '{"name":"otherName"}'
74
+ headers:
75
+ User-Agent:
76
+ - Bugsnag API Ruby Gem 2.0.1
77
+ Content-Type:
78
+ - application/json
79
+ X-Version:
80
+ - '2'
81
+ X-Bugsnag-Api:
82
+ - 'true'
83
+ Authorization:
84
+ - token BUGSNAG_AUTH_TOKEN
85
+ Accept-Encoding:
86
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
87
+ Accept:
88
+ - "*/*"
89
+ response:
90
+ status:
91
+ code: 200
92
+ message: OK
93
+ headers:
94
+ Content-Type:
95
+ - application/json; charset=utf-8
96
+ Etag:
97
+ - W/"95dc67919f2d0df48dc2bfea2269fef6"
98
+ Cache-Control:
99
+ - max-age=0, private, must-revalidate
100
+ X-Request-Id:
101
+ - 53943c17-51db-4bb5-a997-f0c2c6dd5bdc
102
+ X-Runtime:
103
+ - '0.424156'
104
+ Vary:
105
+ - Origin
106
+ X-Rack-Cors:
107
+ - miss; no-origin
108
+ Content-Security-Policy:
109
+ - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
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;
113
+ script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
114
+ https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
115
+ https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
116
+ X-Content-Type-Options:
117
+ - nosniff
118
+ X-Download-Options:
119
+ - noopen
120
+ X-Frame-Options:
121
+ - DENY
122
+ X-Permitted-Cross-Domain-Policies:
123
+ - none
124
+ X-Xss-Protection:
125
+ - 1; mode=block
126
+ Transfer-Encoding:
127
+ - chunked
128
+ body:
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}'
131
+ http_version:
132
+ recorded_at: Tue, 12 Dec 2017 11:54:26 GMT
133
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,68 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.bugsnag.com/projects/BUGSNAG_PROJECT_ID/errors/BUGSNAG_ERROR_ID/trend?buckets_count=5
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Bugsnag API Ruby Gem 2.0.1
12
+ Content-Type:
13
+ - application/json
14
+ X-Version:
15
+ - '2'
16
+ X-Bugsnag-Api:
17
+ - 'true'
18
+ Authorization:
19
+ - token BUGSNAG_AUTH_TOKEN
20
+ Accept-Encoding:
21
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
22
+ Accept:
23
+ - "*/*"
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Etag:
32
+ - W/"b9eabf97ace2e4fdf949bafcea30f1d9"
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Request-Id:
36
+ - e37452c4-e7d1-4cbc-8d46-727ae5a04fd4
37
+ X-Runtime:
38
+ - '0.623912'
39
+ Vary:
40
+ - Origin
41
+ X-Rack-Cors:
42
+ - miss; no-origin
43
+ Content-Security-Policy:
44
+ - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
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;
48
+ script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
49
+ https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
50
+ https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
51
+ X-Content-Type-Options:
52
+ - nosniff
53
+ X-Download-Options:
54
+ - noopen
55
+ X-Frame-Options:
56
+ - DENY
57
+ X-Permitted-Cross-Domain-Policies:
58
+ - none
59
+ X-Xss-Protection:
60
+ - 1; mode=block
61
+ Transfer-Encoding:
62
+ - chunked
63
+ body:
64
+ encoding: UTF-8
65
+ string: '[{"from":"2017-12-12T10:58:49Z","to":"2017-12-12T11:10:12Z","events_count":475},{"from":"2017-12-12T11:10:12Z","to":"2017-12-12T11:21:35Z","events_count":0},{"from":"2017-12-12T11:21:35Z","to":"2017-12-12T11:32:58Z","events_count":0},{"from":"2017-12-12T11:32:58Z","to":"2017-12-12T11:44:21Z","events_count":0},{"from":"2017-12-12T11:44:21Z","to":"2017-12-12T11:55:44Z","events_count":0}]'
66
+ http_version:
67
+ recorded_at: Tue, 12 Dec 2017 11:55:31 GMT
68
+ recorded_with: VCR 2.9.3