bugsnag-api 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -0
- data/.rubocop_todo.yml +271 -0
- data/.travis.yml +6 -3
- data/CHANGELOG.md +7 -0
- data/bugsnag-api.gemspec +1 -0
- data/lib/bugsnag/api/client.rb +12 -0
- data/lib/bugsnag/api/client/comments.rb +1 -1
- data/lib/bugsnag/api/client/errors.rb +3 -1
- data/lib/bugsnag/api/client/trends.rb +8 -4
- data/lib/bugsnag/api/configuration.rb +1 -1
- data/lib/bugsnag/api/version.rb +1 -1
- data/spec/bugsnag/api/client_spec.rb +69 -7
- data/spec/bugsnag/api_spec.rb +2 -0
- data/spec/cassettes/Bugsnag_Api_Client/_get/handles_query_params.yml +13 -21
- data/spec/cassettes/Bugsnag_Api_Client/_last_response/caches_the_last_agent_response.yml +13 -21
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/_invitecollaborator/creates_and_returns_a_collaborator.yml +14 -26
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/_invitecollaborator/invites_multiple_collaborators.yml +14 -26
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborator/returns_a_collaborator.yml +29 -53
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborators/returns_a_list_of_all_organization_collaborators.yml +30 -55
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_collaborators/returns_a_list_of_all_project_collaborators.yml +30 -55
- 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
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_delete_collaborator/deletes_a_collaborator.yml +14 -26
- data/spec/cassettes/Bugsnag_Api_Client_Collaborators/given_a_collaborator_exists/_update_collaborator_permissions/updates_and_returns_the_collaborator.yml +29 -53
- 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
- data/spec/cassettes/Bugsnag_Api_Client_Comments/_create_comment/creates_a_comment_on_the_error.yml +17 -29
- data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_comment/retrieves_the_comment_specified.yml +32 -56
- data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_comments/retrieves_all_comments_on_an_error.yml +33 -57
- data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_delete_comment/deletes_the_comment_and_returns_true.yml +17 -29
- data/spec/cassettes/Bugsnag_Api_Client_Comments/given_a_comment_has_been_created/_update_comment/updates_the_message_on_a_comment.yml +32 -56
- data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_organizations/when_using_auth_token/returns_the_organization_the_auth_token_belongs_to.yml +14 -27
- data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_organizations/when_using_user_credentials/returns_users_organizations.yml +17 -31
- data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_projects/when_using_auth_token/lists_current_user_s_projects_in_the_organization.yml +34 -28
- data/spec/cassettes/Bugsnag_Api_Client_CurrentUser/_list_projects/when_using_user_credentials/lists_current_user_s_projects_in_the_organization.yml +37 -32
- data/spec/cassettes/Bugsnag_Api_Client_Errors/_error/returns_a_single_error.yml +14 -28
- data/spec/cassettes/Bugsnag_Api_Client_Errors/_errors/returns_errors_on_the_project.yml +16 -30
- data/spec/cassettes/Bugsnag_Api_Client_Errors/_update_errors/updates_and_returns_the_updated_errors.yml +13 -25
- data/spec/cassettes/Bugsnag_Api_Client_Events/_error_events/lists_all_error_events.yml +19 -30
- data/spec/cassettes/Bugsnag_Api_Client_Events/_event/returns_the_specified_event.yml +16 -199
- data/spec/cassettes/Bugsnag_Api_Client_Events/_events/returns_the_a_list_of_project_errors.yml +19 -30
- data/spec/cassettes/Bugsnag_Api_Client_Events/_latest_event/returns_the_last_event_on_an_error.yml +16 -199
- data/spec/cassettes/Bugsnag_Api_Client_Organizations/_create_organization/creates_a_new_organization.yml +17 -30
- data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_delete_organization/deletes_the_organization.yml +32 -58
- data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_organization/returns_the_requested_organization.yml +35 -61
- data/spec/cassettes/Bugsnag_Api_Client_Organizations/with_organization/_update_organization/updates_and_returns_the_organization.yml +35 -61
- data/spec/cassettes/Bugsnag_Api_Client_Projects/_create_project/creates_a_new_project.yml +14 -26
- data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_delete_project/deletes_the_project.yml +26 -50
- data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_project/returns_the_requested_project.yml +29 -53
- 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
- data/spec/cassettes/Bugsnag_Api_Client_Projects/given_a_project/_update_project/updates_and_returns_the_project.yml +29 -53
- data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_buckets/returns_a_list_of_error_trends_in_bucket_form.yml +14 -26
- data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_buckets/returns_a_list_of_project_trends_in_bucket_form.yml +14 -26
- data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_resolution/returns_a_list_of_project_trends_in_resolution_form.yml +14 -26
- data/spec/cassettes/Bugsnag_Api_Client_Trends/_trends_resolution/returns_a_list_of_trends_in_resolution_form.yml +14 -26
- data/spec/spec_helper.rb +3 -3
- metadata +18 -2
@@ -8,11 +8,13 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Bugsnag API Ruby Gem
|
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:56 GMT
|
31
29
|
Content-Type:
|
32
30
|
- application/json; charset=utf-8
|
33
31
|
Etag:
|
34
|
-
- W/"
|
32
|
+
- W/"b9eabf97ace2e4fdf949bafcea30f1d9"
|
35
33
|
Cache-Control:
|
36
34
|
- max-age=0, private, must-revalidate
|
37
35
|
X-Request-Id:
|
38
|
-
-
|
36
|
+
- e37452c4-e7d1-4cbc-8d46-727ae5a04fd4
|
39
37
|
X-Runtime:
|
40
|
-
- '0.
|
38
|
+
- '0.623912'
|
41
39
|
Vary:
|
42
40
|
- Origin
|
43
|
-
X-
|
44
|
-
-
|
45
|
-
X-Ratelimit-Remaining:
|
46
|
-
- '5'
|
41
|
+
X-Rack-Cors:
|
42
|
+
- miss; no-origin
|
47
43
|
Content-Security-Policy:
|
48
44
|
- 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
|
49
|
-
connect-src ''self'' https://api.bugsnag.com https
|
50
|
-
https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
|
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,19 +58,11 @@ http_interactions:
|
|
62
58
|
- none
|
63
59
|
X-Xss-Protection:
|
64
60
|
- 1; mode=block
|
65
|
-
X-Robots-Tag:
|
66
|
-
- noindex, nofollow
|
67
|
-
Strict-Transport-Security:
|
68
|
-
- max-age=31536000
|
69
|
-
Via:
|
70
|
-
- 1.1 google
|
71
|
-
Alt-Svc:
|
72
|
-
- clear
|
73
61
|
Transfer-Encoding:
|
74
62
|
- chunked
|
75
63
|
body:
|
76
|
-
encoding:
|
77
|
-
string: '[{"from":"2017-
|
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}]'
|
78
66
|
http_version:
|
79
|
-
recorded_at:
|
67
|
+
recorded_at: Tue, 12 Dec 2017 11:55:31 GMT
|
80
68
|
recorded_with: VCR 2.9.3
|
@@ -8,11 +8,13 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Bugsnag API Ruby Gem
|
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:56 GMT
|
31
29
|
Content-Type:
|
32
30
|
- application/json; charset=utf-8
|
33
31
|
Etag:
|
34
|
-
- W/"
|
32
|
+
- W/"b9eabf97ace2e4fdf949bafcea30f1d9"
|
35
33
|
Cache-Control:
|
36
34
|
- max-age=0, private, must-revalidate
|
37
35
|
X-Request-Id:
|
38
|
-
-
|
36
|
+
- a8d39325-e71e-49bc-8417-a17b88d57e3e
|
39
37
|
X-Runtime:
|
40
|
-
- '0.
|
38
|
+
- '0.476384'
|
41
39
|
Vary:
|
42
40
|
- Origin
|
43
|
-
X-
|
44
|
-
-
|
45
|
-
X-Ratelimit-Remaining:
|
46
|
-
- '6'
|
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
|
50
|
-
https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
|
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,19 +58,11 @@ http_interactions:
|
|
62
58
|
- none
|
63
59
|
X-Xss-Protection:
|
64
60
|
- 1; mode=block
|
65
|
-
X-Robots-Tag:
|
66
|
-
- noindex, nofollow
|
67
|
-
Strict-Transport-Security:
|
68
|
-
- max-age=31536000
|
69
|
-
Via:
|
70
|
-
- 1.1 google
|
71
|
-
Alt-Svc:
|
72
|
-
- clear
|
73
61
|
Transfer-Encoding:
|
74
62
|
- chunked
|
75
63
|
body:
|
76
|
-
encoding:
|
77
|
-
string: '[{"from":"2017-
|
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}]'
|
78
66
|
http_version:
|
79
|
-
recorded_at:
|
67
|
+
recorded_at: Tue, 12 Dec 2017 11:55:32 GMT
|
80
68
|
recorded_with: VCR 2.9.3
|
@@ -8,11 +8,13 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Bugsnag API Ruby Gem
|
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:55 GMT
|
31
29
|
Content-Type:
|
32
30
|
- application/json; charset=utf-8
|
33
31
|
Etag:
|
34
|
-
- W/"
|
32
|
+
- W/"be3e4e83c25536aebcf78248c64806aa"
|
35
33
|
Cache-Control:
|
36
34
|
- max-age=0, private, must-revalidate
|
37
35
|
X-Request-Id:
|
38
|
-
-
|
36
|
+
- e6e0f54b-7526-4db9-bff2-7bc80ed05e28
|
39
37
|
X-Runtime:
|
40
|
-
- '0.
|
38
|
+
- '0.494850'
|
41
39
|
Vary:
|
42
40
|
- Origin
|
43
|
-
X-
|
44
|
-
-
|
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
|
50
|
-
https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
|
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,19 +58,11 @@ http_interactions:
|
|
62
58
|
- none
|
63
59
|
X-Xss-Protection:
|
64
60
|
- 1; mode=block
|
65
|
-
X-Robots-Tag:
|
66
|
-
- noindex, nofollow
|
67
|
-
Strict-Transport-Security:
|
68
|
-
- max-age=31536000
|
69
|
-
Via:
|
70
|
-
- 1.1 google
|
71
|
-
Alt-Svc:
|
72
|
-
- clear
|
73
61
|
Transfer-Encoding:
|
74
62
|
- chunked
|
75
63
|
body:
|
76
|
-
encoding:
|
77
|
-
string: '[{"from":"2017-
|
64
|
+
encoding: UTF-8
|
65
|
+
string: '[{"from":"2017-12-12T00:00:00Z","to":"2017-12-12T12:00:00Z","events_count":475}]'
|
78
66
|
http_version:
|
79
|
-
recorded_at:
|
67
|
+
recorded_at: Tue, 12 Dec 2017 11:55:33 GMT
|
80
68
|
recorded_with: VCR 2.9.3
|
@@ -8,11 +8,13 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Bugsnag API Ruby Gem
|
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:54 GMT
|
31
29
|
Content-Type:
|
32
30
|
- application/json; charset=utf-8
|
33
31
|
Etag:
|
34
|
-
- W/"
|
32
|
+
- W/"be3e4e83c25536aebcf78248c64806aa"
|
35
33
|
Cache-Control:
|
36
34
|
- max-age=0, private, must-revalidate
|
37
35
|
X-Request-Id:
|
38
|
-
-
|
36
|
+
- 8131ca4e-080d-4b01-a60c-133f7a7fed71
|
39
37
|
X-Runtime:
|
40
|
-
- '0.
|
38
|
+
- '0.624348'
|
41
39
|
Vary:
|
42
40
|
- Origin
|
43
|
-
X-
|
44
|
-
-
|
45
|
-
X-Ratelimit-Remaining:
|
46
|
-
- '8'
|
41
|
+
X-Rack-Cors:
|
42
|
+
- miss; no-origin
|
47
43
|
Content-Security-Policy:
|
48
44
|
- 'default-src ''self''; child-src https://*.stripe.com headway-widget.net;
|
49
|
-
connect-src ''self'' https://api.bugsnag.com https
|
50
|
-
https://api.lever.co; font-src ''self'' https://maxcdn.bootstrapcdn.com;
|
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,19 +58,11 @@ http_interactions:
|
|
62
58
|
- none
|
63
59
|
X-Xss-Protection:
|
64
60
|
- 1; mode=block
|
65
|
-
X-Robots-Tag:
|
66
|
-
- noindex, nofollow
|
67
|
-
Strict-Transport-Security:
|
68
|
-
- max-age=31536000
|
69
|
-
Via:
|
70
|
-
- 1.1 google
|
71
|
-
Alt-Svc:
|
72
|
-
- clear
|
73
61
|
Transfer-Encoding:
|
74
62
|
- chunked
|
75
63
|
body:
|
76
|
-
encoding:
|
77
|
-
string: '[{"from":"2017-
|
64
|
+
encoding: UTF-8
|
65
|
+
string: '[{"from":"2017-12-12T00:00:00Z","to":"2017-12-12T12:00:00Z","events_count":475}]'
|
78
66
|
http_version:
|
79
|
-
recorded_at:
|
67
|
+
recorded_at: Tue, 12 Dec 2017 11:55:33 GMT
|
80
68
|
recorded_with: VCR 2.9.3
|
data/spec/spec_helper.rb
CHANGED
@@ -28,7 +28,7 @@ VCR.configure do |c|
|
|
28
28
|
:match_requests_on => [:method, :path]
|
29
29
|
}
|
30
30
|
|
31
|
-
c.filter_sensitive_data("https://api.bugsnag.com") {
|
31
|
+
c.filter_sensitive_data("https://api.bugsnag.com") { test_bugsnag_endpoint }
|
32
32
|
c.filter_sensitive_data("api.bugsnag.com") { URI.parse(Bugsnag::Api.configuration.endpoint).host }
|
33
33
|
c.filter_sensitive_data("BUGSNAG_AUTH_TOKEN") { test_bugsnag_auth_token }
|
34
34
|
c.filter_sensitive_data("BUGSNAG_LOGIN") { CGI::escape(test_bugsnag_email) }
|
@@ -66,11 +66,11 @@ def basic_auth_client
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def bugsnag_url(path)
|
69
|
-
URI.join(
|
69
|
+
URI.join(test_bugsnag_endpoint, path).to_s
|
70
70
|
end
|
71
71
|
|
72
72
|
def basic_bugsnag_url(path, options = {})
|
73
|
-
url = File.join(
|
73
|
+
url = File.join(test_bugsnag_endpoint, path)
|
74
74
|
uri = Addressable::URI.parse(url)
|
75
75
|
|
76
76
|
uri.user = options.fetch(:login, test_bugsnag_email)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bugsnag-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sawyer
|
@@ -122,6 +122,20 @@ dependencies:
|
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rubocop
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.52.1
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.52.1
|
125
139
|
description: Bugsnag API toolkit for ruby
|
126
140
|
email:
|
127
141
|
- james@bugsnag.com
|
@@ -131,6 +145,8 @@ extra_rdoc_files: []
|
|
131
145
|
files:
|
132
146
|
- ".gitignore"
|
133
147
|
- ".rspec"
|
148
|
+
- ".rubocop.yml"
|
149
|
+
- ".rubocop_todo.yml"
|
134
150
|
- ".travis.yml"
|
135
151
|
- ".yardopts"
|
136
152
|
- CHANGELOG.md
|