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,70 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.bugsnag.com/projects/BUGSNAG_PROJECT_ID/errors/BUGSNAG_ERROR_ID/comments
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"message":"test_message"}'
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: 201
27
+ message: Created
28
+ headers:
29
+ Location:
30
+ - https://api.bugsnag.com/comments/5a2fc39cd1befa002881d5a2
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Etag:
34
+ - W/"a4aeefbeb9f807ff126157d48b95f384"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - 36f7ecef-50fc-48c6-b3cb-0808ef1624d2
39
+ X-Runtime:
40
+ - '0.416214'
41
+ Vary:
42
+ - Origin
43
+ X-Rack-Cors:
44
+ - miss; no-origin
45
+ Content-Security-Policy:
46
+ - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
47
+ connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
48
+ https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
49
+ img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
50
+ script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
51
+ https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
52
+ https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
53
+ X-Content-Type-Options:
54
+ - nosniff
55
+ X-Download-Options:
56
+ - noopen
57
+ X-Frame-Options:
58
+ - DENY
59
+ X-Permitted-Cross-Domain-Policies:
60
+ - none
61
+ X-Xss-Protection:
62
+ - 1; mode=block
63
+ Transfer-Encoding:
64
+ - chunked
65
+ body:
66
+ encoding: UTF-8
67
+ string: '{"id":"5a2fc39cd1befa002881d5a2","message":"test_message","created_at":"2017-12-12T11:55:08.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}}'
68
+ http_version:
69
+ recorded_at: Tue, 12 Dec 2017 11:54:57 GMT
70
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,135 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.bugsnag.com/projects/BUGSNAG_PROJECT_ID/errors/BUGSNAG_ERROR_ID/comments
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"message":"message"}'
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: 201
27
+ message: Created
28
+ headers:
29
+ Location:
30
+ - https://api.bugsnag.com/comments/5a2fc39bd1befa003981d5c0
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Etag:
34
+ - W/"b84a9d3934d1eba2cff0252234149c26"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - bcc65e0e-9f01-4e0b-9089-1aa1c4748159
39
+ X-Runtime:
40
+ - '0.390049'
41
+ Vary:
42
+ - Origin
43
+ X-Rack-Cors:
44
+ - miss; no-origin
45
+ Content-Security-Policy:
46
+ - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
47
+ connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
48
+ https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
49
+ img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
50
+ script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
51
+ https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
52
+ https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
53
+ X-Content-Type-Options:
54
+ - nosniff
55
+ X-Download-Options:
56
+ - noopen
57
+ X-Frame-Options:
58
+ - DENY
59
+ X-Permitted-Cross-Domain-Policies:
60
+ - none
61
+ X-Xss-Protection:
62
+ - 1; mode=block
63
+ Transfer-Encoding:
64
+ - chunked
65
+ body:
66
+ encoding: UTF-8
67
+ string: '{"id":"5a2fc39bd1befa003981d5c0","message":"message","created_at":"2017-12-12T11:55:07.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}}'
68
+ http_version:
69
+ recorded_at: Tue, 12 Dec 2017 11:54:56 GMT
70
+ - request:
71
+ method: get
72
+ uri: https://api.bugsnag.com/comments/5a2fc39bd1befa003981d5c0
73
+ body:
74
+ encoding: US-ASCII
75
+ string: ''
76
+ headers:
77
+ User-Agent:
78
+ - Bugsnag API Ruby Gem 2.0.1
79
+ Content-Type:
80
+ - application/json
81
+ X-Version:
82
+ - '2'
83
+ X-Bugsnag-Api:
84
+ - 'true'
85
+ Authorization:
86
+ - token BUGSNAG_AUTH_TOKEN
87
+ Accept-Encoding:
88
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
89
+ Accept:
90
+ - "*/*"
91
+ response:
92
+ status:
93
+ code: 200
94
+ message: OK
95
+ headers:
96
+ Content-Type:
97
+ - application/json; charset=utf-8
98
+ Etag:
99
+ - W/"9394de93d9d8fe007ab97f2df6714c4e"
100
+ Cache-Control:
101
+ - max-age=0, private, must-revalidate
102
+ X-Request-Id:
103
+ - '084f7542-22ea-435f-9ae2-b9454056ef02'
104
+ X-Runtime:
105
+ - '0.594008'
106
+ Vary:
107
+ - Origin
108
+ X-Rack-Cors:
109
+ - miss; no-origin
110
+ Content-Security-Policy:
111
+ - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
112
+ connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
113
+ https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
114
+ img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
115
+ script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
116
+ https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
117
+ https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
118
+ X-Content-Type-Options:
119
+ - nosniff
120
+ X-Download-Options:
121
+ - noopen
122
+ X-Frame-Options:
123
+ - DENY
124
+ X-Permitted-Cross-Domain-Policies:
125
+ - none
126
+ X-Xss-Protection:
127
+ - 1; mode=block
128
+ Transfer-Encoding:
129
+ - chunked
130
+ body:
131
+ encoding: UTF-8
132
+ string: '{"id":"5a2fc39bd1befa003981d5c0","message":"message","created_at":"2017-12-12T11:55:07.000Z","user":{"id":"5a1589f0d1befa47553ffd5f","email":"BUGSNAG_USER_EMAIL","name":"Bugsnag","url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f","projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects"},"url":"https://api.bugsnag.com/comments/5a2fc39bd1befa003981d5c0"}'
133
+ http_version:
134
+ recorded_at: Tue, 12 Dec 2017 11:54:56 GMT
135
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,137 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.bugsnag.com/projects/BUGSNAG_PROJECT_ID/errors/BUGSNAG_ERROR_ID/comments
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"message":"message"}'
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: 201
27
+ message: Created
28
+ headers:
29
+ Location:
30
+ - https://api.bugsnag.com/comments/5a2fc399d1befa003981d5be
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Etag:
34
+ - W/"a7d078685ed511be5bf79d4c4367a855"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - 5a11fc47-8f3e-460e-be50-4b75274a219a
39
+ X-Runtime:
40
+ - '0.288868'
41
+ Vary:
42
+ - Origin
43
+ X-Rack-Cors:
44
+ - miss; no-origin
45
+ Content-Security-Policy:
46
+ - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
47
+ connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
48
+ https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
49
+ img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
50
+ script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
51
+ https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
52
+ https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
53
+ X-Content-Type-Options:
54
+ - nosniff
55
+ X-Download-Options:
56
+ - noopen
57
+ X-Frame-Options:
58
+ - DENY
59
+ X-Permitted-Cross-Domain-Policies:
60
+ - none
61
+ X-Xss-Protection:
62
+ - 1; mode=block
63
+ Transfer-Encoding:
64
+ - chunked
65
+ body:
66
+ encoding: UTF-8
67
+ string: '{"id":"5a2fc399d1befa003981d5be","message":"message","created_at":"2017-12-12T11:55:05.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}}'
68
+ http_version:
69
+ recorded_at: Tue, 12 Dec 2017 11:54:54 GMT
70
+ - request:
71
+ method: get
72
+ uri: https://api.bugsnag.com/projects/BUGSNAG_PROJECT_ID/errors/BUGSNAG_ERROR_ID/comments
73
+ body:
74
+ encoding: US-ASCII
75
+ string: ''
76
+ headers:
77
+ User-Agent:
78
+ - Bugsnag API Ruby Gem 2.0.1
79
+ Content-Type:
80
+ - application/json
81
+ X-Version:
82
+ - '2'
83
+ X-Bugsnag-Api:
84
+ - 'true'
85
+ Authorization:
86
+ - token BUGSNAG_AUTH_TOKEN
87
+ Accept-Encoding:
88
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
89
+ Accept:
90
+ - "*/*"
91
+ response:
92
+ status:
93
+ code: 200
94
+ message: OK
95
+ headers:
96
+ X-Total-Count:
97
+ - '10'
98
+ Content-Type:
99
+ - application/json; charset=utf-8
100
+ Etag:
101
+ - W/"2cf020eae65823e1953183ba3825d976"
102
+ Cache-Control:
103
+ - max-age=0, private, must-revalidate
104
+ X-Request-Id:
105
+ - 1bef26f4-ff72-4166-a226-7644fe20400b
106
+ X-Runtime:
107
+ - '0.279841'
108
+ Vary:
109
+ - Origin
110
+ X-Rack-Cors:
111
+ - miss; no-origin
112
+ Content-Security-Policy:
113
+ - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
114
+ connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
115
+ https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
116
+ img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
117
+ script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
118
+ https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
119
+ https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
120
+ X-Content-Type-Options:
121
+ - nosniff
122
+ X-Download-Options:
123
+ - noopen
124
+ X-Frame-Options:
125
+ - DENY
126
+ X-Permitted-Cross-Domain-Policies:
127
+ - none
128
+ X-Xss-Protection:
129
+ - 1; mode=block
130
+ Transfer-Encoding:
131
+ - chunked
132
+ body:
133
+ encoding: UTF-8
134
+ string: '[{"id":"5a2fc399d1befa003981d5be","message":"message","created_at":"2017-12-12T11:55:05.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}},{"id":"5a2fc06dd1befa002881d598","message":"updated","created_at":"2017-12-12T11:41:33.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}},{"id":"5a2fc06cd1befa003981d5a2","message":"message","created_at":"2017-12-12T11:41:32.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}},{"id":"5a2fc06cd1befa002881d597","message":"message","created_at":"2017-12-12T11:41:32.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}},{"id":"5a2fc06bd1befa003981d5a1","message":"message","created_at":"2017-12-12T11:41:31.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}},{"id":"5a2fc06ad1befa003981d5a0","message":"test_message","created_at":"2017-12-12T11:41:30.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}},{"id":"5a2fbe86d1befa002881d57f","message":"test_message","created_at":"2017-12-12T11:33:26.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}},{"id":"5a2fbe85d1befa003981d581","message":"updated","created_at":"2017-12-12T11:33:25.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}},{"id":"5a2fbe84d1befa001781d581","message":"message","created_at":"2017-12-12T11:33:24.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}},{"id":"5a2fbe82d1befa001781d57f","message":"message","created_at":"2017-12-12T11:33:22.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}}]'
135
+ http_version:
136
+ recorded_at: Tue, 12 Dec 2017 11:54:54 GMT
137
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,70 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.bugsnag.com/projects/BUGSNAG_PROJECT_ID/errors/BUGSNAG_ERROR_ID/comments
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"message":"message"}'
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: 201
27
+ message: Created
28
+ headers:
29
+ Location:
30
+ - https://api.bugsnag.com/comments/5a2fc39bd1befa002881d5a1
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Etag:
34
+ - W/"88be4edd9cd811f0a19b3aa29c894348"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - d683b128-83ff-441e-bc0b-88fe39cd1afd
39
+ X-Runtime:
40
+ - '0.416889'
41
+ Vary:
42
+ - Origin
43
+ X-Rack-Cors:
44
+ - miss; no-origin
45
+ Content-Security-Policy:
46
+ - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
47
+ connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
48
+ https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
49
+ img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
50
+ script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
51
+ https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
52
+ https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
53
+ X-Content-Type-Options:
54
+ - nosniff
55
+ X-Download-Options:
56
+ - noopen
57
+ X-Frame-Options:
58
+ - DENY
59
+ X-Permitted-Cross-Domain-Policies:
60
+ - none
61
+ X-Xss-Protection:
62
+ - 1; mode=block
63
+ Transfer-Encoding:
64
+ - chunked
65
+ body:
66
+ encoding: UTF-8
67
+ string: '{"id":"5a2fc39bd1befa002881d5a1","message":"message","created_at":"2017-12-12T11:55:07.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}}'
68
+ http_version:
69
+ recorded_at: Tue, 12 Dec 2017 11:54:55 GMT
70
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,135 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.bugsnag.com/projects/BUGSNAG_PROJECT_ID/errors/BUGSNAG_ERROR_ID/comments
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"message":"message"}'
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: 201
27
+ message: Created
28
+ headers:
29
+ Location:
30
+ - https://api.bugsnag.com/comments/5a2fc39ad1befa003981d5bf
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Etag:
34
+ - W/"f2bcc20f1f502d8591829cc8abf9466c"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - bace0efc-3882-4e06-bad8-c05266663efc
39
+ X-Runtime:
40
+ - '0.369118'
41
+ Vary:
42
+ - Origin
43
+ X-Rack-Cors:
44
+ - miss; no-origin
45
+ Content-Security-Policy:
46
+ - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
47
+ connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
48
+ https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
49
+ img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
50
+ script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
51
+ https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
52
+ https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
53
+ X-Content-Type-Options:
54
+ - nosniff
55
+ X-Download-Options:
56
+ - noopen
57
+ X-Frame-Options:
58
+ - DENY
59
+ X-Permitted-Cross-Domain-Policies:
60
+ - none
61
+ X-Xss-Protection:
62
+ - 1; mode=block
63
+ Transfer-Encoding:
64
+ - chunked
65
+ body:
66
+ encoding: UTF-8
67
+ string: '{"id":"5a2fc39ad1befa003981d5bf","message":"message","created_at":"2017-12-12T11:55:06.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}}'
68
+ http_version:
69
+ recorded_at: Tue, 12 Dec 2017 11:54:55 GMT
70
+ - request:
71
+ method: patch
72
+ uri: https://api.bugsnag.com/comments/5a2fc39ad1befa003981d5bf
73
+ body:
74
+ encoding: UTF-8
75
+ string: '{"message":"updated"}'
76
+ headers:
77
+ User-Agent:
78
+ - Bugsnag API Ruby Gem 2.0.1
79
+ Content-Type:
80
+ - application/json
81
+ X-Version:
82
+ - '2'
83
+ X-Bugsnag-Api:
84
+ - 'true'
85
+ Authorization:
86
+ - token BUGSNAG_AUTH_TOKEN
87
+ Accept-Encoding:
88
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
89
+ Accept:
90
+ - "*/*"
91
+ response:
92
+ status:
93
+ code: 200
94
+ message: OK
95
+ headers:
96
+ Content-Type:
97
+ - application/json; charset=utf-8
98
+ Etag:
99
+ - W/"b27dcfe48fa067d90084af4ae32d321f"
100
+ Cache-Control:
101
+ - max-age=0, private, must-revalidate
102
+ X-Request-Id:
103
+ - f914a7a8-e9b6-465b-93dc-a82504dbdebb
104
+ X-Runtime:
105
+ - '0.346181'
106
+ Vary:
107
+ - Origin
108
+ X-Rack-Cors:
109
+ - miss; no-origin
110
+ Content-Security-Policy:
111
+ - 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
112
+ connect-src ''self'' https://api.bugsnag.com https://notify.bugsnag.com https://*.stripe.com
113
+ https://bugsnag.zendesk.com https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
114
+ img-src ''self'' data: https://notify.bugsnag.com https://*.stripe.com https://maxcdn.bootstrapcdn.com;
115
+ script-src ''self'' https://d2wy8f7a9ursnm.cloudfront.net https://*.stripe.com
116
+ https://maxcdn.bootstrapcdn.com https://code.jquery.com https://assets.zendesk.com
117
+ https://cdn.headwayapp.co; style-src ''self'' ''unsafe-inline'' https://maxcdn.bootstrapcdn.com'
118
+ X-Content-Type-Options:
119
+ - nosniff
120
+ X-Download-Options:
121
+ - noopen
122
+ X-Frame-Options:
123
+ - DENY
124
+ X-Permitted-Cross-Domain-Policies:
125
+ - none
126
+ X-Xss-Protection:
127
+ - 1; mode=block
128
+ Transfer-Encoding:
129
+ - chunked
130
+ body:
131
+ encoding: UTF-8
132
+ string: '{"id":"5a2fc39ad1befa003981d5bf","message":"updated","created_at":"2017-12-12T11:55:06.000Z","collaborator":{"id":"5a1589f0d1befa47553ffd5f","name":"Bugsnag","email":"BUGSNAG_USER_EMAIL","two_factor_enabled":false,"two_factor_enabled_on":null,"BUGSNAG_PASSWORD_updated_on":"2017-12-06T16:40:04.011Z","show_time_in_utc":true,"projects_url":"https://api.bugsnag.com/users/5a1589f0d1befa47553ffd5f/projects","heroku":false,"recovery_codes_remaining":0}}'
133
+ http_version:
134
+ recorded_at: Tue, 12 Dec 2017 11:54:55 GMT
135
+ recorded_with: VCR 2.9.3