bugsnag-api 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.rspec +2 -0
- data/.travis.yml +8 -0
- data/.yardopts +4 -0
- data/CHANGELOG.md +11 -0
- data/README.md +12 -4
- data/Rakefile +9 -0
- data/bugsnag-api.gemspec +5 -0
- data/lib/bugsnag/api.rb +20 -4
- data/lib/bugsnag/api/client.rb +47 -42
- data/lib/bugsnag/api/client/accounts.rb +8 -1
- data/lib/bugsnag/api/client/comments.rb +1 -1
- data/lib/bugsnag/api/client/errors.rb +1 -1
- data/lib/bugsnag/api/client/events.rb +3 -3
- data/lib/bugsnag/api/client/projects.rb +15 -4
- data/lib/bugsnag/api/client/users.rb +22 -4
- data/lib/bugsnag/api/configuration.rb +9 -6
- data/lib/bugsnag/api/error.rb +11 -1
- data/lib/bugsnag/api/version.rb +1 -1
- data/spec/bugsnag/api/client/accounts_spec.rb +45 -0
- data/spec/bugsnag/api/client/comments_spec.rb +58 -0
- data/spec/bugsnag/api/client/errors_spec.rb +69 -0
- data/spec/bugsnag/api/client/events_spec.rb +52 -0
- data/spec/bugsnag/api/client/projects_spec.rb +87 -0
- data/spec/bugsnag/api/client/users_spec.rb +105 -0
- data/spec/bugsnag/api/client_spec.rb +130 -0
- data/spec/bugsnag/api_spec.rb +44 -0
- data/spec/cassettes/Bugsnag_Api_Client/_get/handles_query_params.yml +56 -0
- data/spec/cassettes/Bugsnag_Api_Client/_last_response/caches_the_last_agent_response.yml +56 -0
- data/spec/cassettes/Bugsnag_Api_Client_Accounts/_account/returns_the_requested_account.yml +49 -0
- data/spec/cassettes/Bugsnag_Api_Client_Accounts/_account/when_using_account_credentials/returns_the_account.yml +51 -0
- data/spec/cassettes/Bugsnag_Api_Client_Accounts/_accounts/returns_all_accounts.yml +49 -0
- data/spec/cassettes/Bugsnag_Api_Client_Comments/_comments/returns_all_comments_on_an_error.yml +107 -0
- data/spec/cassettes/Bugsnag_Api_Client_Comments/_create_comment/created_a_comment.yml +51 -0
- data/spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_comment/returns_a_comment.yml +97 -0
- data/spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_delete_comment/deletes_an_existing_comment.yml +92 -0
- data/spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_update_comment/updates_an_existing_comment.yml +97 -0
- data/spec/cassettes/Bugsnag_Api_Client_Errors/_errors/returns_all_errors_on_an_project.yml +48 -0
- data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_error/returns_an_error.yml +48 -0
- data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_reopen_error/reopens_the_error.yml +48 -0
- data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_resolve_error/resolves_the_error.yml +48 -0
- data/spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_update_error/updates_the_error.yml +48 -0
- data/spec/cassettes/Bugsnag_Api_Client_Events/_error_events/returns_all_events_on_an_error.yml +64 -0
- data/spec/cassettes/Bugsnag_Api_Client_Events/_project_events/returns_all_events_on_a_project.yml +64 -0
- data/spec/cassettes/Bugsnag_Api_Client_Events/with_event/_event/returns_an_event.yml +56 -0
- data/spec/cassettes/Bugsnag_Api_Client_Projects/_account_projects/returns_all_projects_on_an_account.yml +61 -0
- data/spec/cassettes/Bugsnag_Api_Client_Projects/_account_projects/when_using_account_credentials/returns_all_projects.yml +63 -0
- data/spec/cassettes/Bugsnag_Api_Client_Projects/_create_project/creates_a_project_on_an_account.yml +50 -0
- data/spec/cassettes/Bugsnag_Api_Client_Projects/_user_projects/returns_all_projects_for_a_user.yml +61 -0
- data/spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_delete_project/deletes_an_existing_project.yml +91 -0
- data/spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_project/returns_a_project.yml +95 -0
- data/spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_update_project/updates_an_existing_project.yml +95 -0
- data/spec/cassettes/Bugsnag_Api_Client_Users/_account_users/returns_all_users_on_an_account.yml +49 -0
- data/spec/cassettes/Bugsnag_Api_Client_Users/_account_users/when_using_account_credentials/returns_all_users.yml +51 -0
- data/spec/cassettes/Bugsnag_Api_Client_Users/_invite_user/invites_a_user_to_an_account.yml +48 -0
- data/spec/cassettes/Bugsnag_Api_Client_Users/_project_users/returns_all_users_for_a_project.yml +49 -0
- data/spec/cassettes/Bugsnag_Api_Client_Users/_user/returns_a_user.yml +48 -0
- data/spec/cassettes/Bugsnag_Api_Client_Users/_user/when_using_user_credentials/returns_the_authed_user.yml +48 -0
- data/spec/cassettes/Bugsnag_Api_Client_Users/with_user/_remove_user/removes_a_user_from_an_account.yml +89 -0
- data/spec/cassettes/Bugsnag_Api_Client_Users/with_user/_update_user_permissions/updates_a_users_permissions.yml +93 -0
- data/spec/spec_helper.rb +122 -0
- metadata +161 -4
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: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sawyer
|
@@ -52,6 +52,76 @@ dependencies:
|
|
52
52
|
- - '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: webmock
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: faker
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: vcr
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: json
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
55
125
|
description: Bugsnag API toolkit for ruby
|
56
126
|
email:
|
57
127
|
- james@bugsnag.com
|
@@ -60,6 +130,10 @@ extensions: []
|
|
60
130
|
extra_rdoc_files: []
|
61
131
|
files:
|
62
132
|
- .gitignore
|
133
|
+
- .rspec
|
134
|
+
- .travis.yml
|
135
|
+
- .yardopts
|
136
|
+
- CHANGELOG.md
|
63
137
|
- Gemfile
|
64
138
|
- LICENSE.txt
|
65
139
|
- README.md
|
@@ -77,6 +151,48 @@ files:
|
|
77
151
|
- lib/bugsnag/api/error.rb
|
78
152
|
- lib/bugsnag/api/response/raise_error.rb
|
79
153
|
- lib/bugsnag/api/version.rb
|
154
|
+
- spec/bugsnag/api/client/accounts_spec.rb
|
155
|
+
- spec/bugsnag/api/client/comments_spec.rb
|
156
|
+
- spec/bugsnag/api/client/errors_spec.rb
|
157
|
+
- spec/bugsnag/api/client/events_spec.rb
|
158
|
+
- spec/bugsnag/api/client/projects_spec.rb
|
159
|
+
- spec/bugsnag/api/client/users_spec.rb
|
160
|
+
- spec/bugsnag/api/client_spec.rb
|
161
|
+
- spec/bugsnag/api_spec.rb
|
162
|
+
- spec/cassettes/Bugsnag_Api_Client/_get/handles_query_params.yml
|
163
|
+
- spec/cassettes/Bugsnag_Api_Client/_last_response/caches_the_last_agent_response.yml
|
164
|
+
- spec/cassettes/Bugsnag_Api_Client_Accounts/_account/returns_the_requested_account.yml
|
165
|
+
- spec/cassettes/Bugsnag_Api_Client_Accounts/_account/when_using_account_credentials/returns_the_account.yml
|
166
|
+
- spec/cassettes/Bugsnag_Api_Client_Accounts/_accounts/returns_all_accounts.yml
|
167
|
+
- spec/cassettes/Bugsnag_Api_Client_Comments/_comments/returns_all_comments_on_an_error.yml
|
168
|
+
- spec/cassettes/Bugsnag_Api_Client_Comments/_create_comment/created_a_comment.yml
|
169
|
+
- spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_comment/returns_a_comment.yml
|
170
|
+
- spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_delete_comment/deletes_an_existing_comment.yml
|
171
|
+
- spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_update_comment/updates_an_existing_comment.yml
|
172
|
+
- spec/cassettes/Bugsnag_Api_Client_Errors/_errors/returns_all_errors_on_an_project.yml
|
173
|
+
- spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_error/returns_an_error.yml
|
174
|
+
- spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_reopen_error/reopens_the_error.yml
|
175
|
+
- spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_resolve_error/resolves_the_error.yml
|
176
|
+
- spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_update_error/updates_the_error.yml
|
177
|
+
- spec/cassettes/Bugsnag_Api_Client_Events/_error_events/returns_all_events_on_an_error.yml
|
178
|
+
- spec/cassettes/Bugsnag_Api_Client_Events/_project_events/returns_all_events_on_a_project.yml
|
179
|
+
- spec/cassettes/Bugsnag_Api_Client_Events/with_event/_event/returns_an_event.yml
|
180
|
+
- spec/cassettes/Bugsnag_Api_Client_Projects/_account_projects/returns_all_projects_on_an_account.yml
|
181
|
+
- spec/cassettes/Bugsnag_Api_Client_Projects/_account_projects/when_using_account_credentials/returns_all_projects.yml
|
182
|
+
- spec/cassettes/Bugsnag_Api_Client_Projects/_create_project/creates_a_project_on_an_account.yml
|
183
|
+
- spec/cassettes/Bugsnag_Api_Client_Projects/_user_projects/returns_all_projects_for_a_user.yml
|
184
|
+
- spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_delete_project/deletes_an_existing_project.yml
|
185
|
+
- spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_project/returns_a_project.yml
|
186
|
+
- spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_update_project/updates_an_existing_project.yml
|
187
|
+
- spec/cassettes/Bugsnag_Api_Client_Users/_account_users/returns_all_users_on_an_account.yml
|
188
|
+
- spec/cassettes/Bugsnag_Api_Client_Users/_account_users/when_using_account_credentials/returns_all_users.yml
|
189
|
+
- spec/cassettes/Bugsnag_Api_Client_Users/_invite_user/invites_a_user_to_an_account.yml
|
190
|
+
- spec/cassettes/Bugsnag_Api_Client_Users/_project_users/returns_all_users_for_a_project.yml
|
191
|
+
- spec/cassettes/Bugsnag_Api_Client_Users/_user/returns_a_user.yml
|
192
|
+
- spec/cassettes/Bugsnag_Api_Client_Users/_user/when_using_user_credentials/returns_the_authed_user.yml
|
193
|
+
- spec/cassettes/Bugsnag_Api_Client_Users/with_user/_remove_user/removes_a_user_from_an_account.yml
|
194
|
+
- spec/cassettes/Bugsnag_Api_Client_Users/with_user/_update_user_permissions/updates_a_users_permissions.yml
|
195
|
+
- spec/spec_helper.rb
|
80
196
|
homepage: https://github.com/bugsnag/bugsnag-api-ruby
|
81
197
|
licenses:
|
82
198
|
- MIT
|
@@ -101,5 +217,46 @@ rubygems_version: 2.0.14
|
|
101
217
|
signing_key:
|
102
218
|
specification_version: 4
|
103
219
|
summary: Bugsnag API toolkit for ruby
|
104
|
-
test_files:
|
105
|
-
|
220
|
+
test_files:
|
221
|
+
- spec/bugsnag/api/client/accounts_spec.rb
|
222
|
+
- spec/bugsnag/api/client/comments_spec.rb
|
223
|
+
- spec/bugsnag/api/client/errors_spec.rb
|
224
|
+
- spec/bugsnag/api/client/events_spec.rb
|
225
|
+
- spec/bugsnag/api/client/projects_spec.rb
|
226
|
+
- spec/bugsnag/api/client/users_spec.rb
|
227
|
+
- spec/bugsnag/api/client_spec.rb
|
228
|
+
- spec/bugsnag/api_spec.rb
|
229
|
+
- spec/cassettes/Bugsnag_Api_Client/_get/handles_query_params.yml
|
230
|
+
- spec/cassettes/Bugsnag_Api_Client/_last_response/caches_the_last_agent_response.yml
|
231
|
+
- spec/cassettes/Bugsnag_Api_Client_Accounts/_account/returns_the_requested_account.yml
|
232
|
+
- spec/cassettes/Bugsnag_Api_Client_Accounts/_account/when_using_account_credentials/returns_the_account.yml
|
233
|
+
- spec/cassettes/Bugsnag_Api_Client_Accounts/_accounts/returns_all_accounts.yml
|
234
|
+
- spec/cassettes/Bugsnag_Api_Client_Comments/_comments/returns_all_comments_on_an_error.yml
|
235
|
+
- spec/cassettes/Bugsnag_Api_Client_Comments/_create_comment/created_a_comment.yml
|
236
|
+
- spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_comment/returns_a_comment.yml
|
237
|
+
- spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_delete_comment/deletes_an_existing_comment.yml
|
238
|
+
- spec/cassettes/Bugsnag_Api_Client_Comments/with_comment/_update_comment/updates_an_existing_comment.yml
|
239
|
+
- spec/cassettes/Bugsnag_Api_Client_Errors/_errors/returns_all_errors_on_an_project.yml
|
240
|
+
- spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_error/returns_an_error.yml
|
241
|
+
- spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_reopen_error/reopens_the_error.yml
|
242
|
+
- spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_resolve_error/resolves_the_error.yml
|
243
|
+
- spec/cassettes/Bugsnag_Api_Client_Errors/with_error/_update_error/updates_the_error.yml
|
244
|
+
- spec/cassettes/Bugsnag_Api_Client_Events/_error_events/returns_all_events_on_an_error.yml
|
245
|
+
- spec/cassettes/Bugsnag_Api_Client_Events/_project_events/returns_all_events_on_a_project.yml
|
246
|
+
- spec/cassettes/Bugsnag_Api_Client_Events/with_event/_event/returns_an_event.yml
|
247
|
+
- spec/cassettes/Bugsnag_Api_Client_Projects/_account_projects/returns_all_projects_on_an_account.yml
|
248
|
+
- spec/cassettes/Bugsnag_Api_Client_Projects/_account_projects/when_using_account_credentials/returns_all_projects.yml
|
249
|
+
- spec/cassettes/Bugsnag_Api_Client_Projects/_create_project/creates_a_project_on_an_account.yml
|
250
|
+
- spec/cassettes/Bugsnag_Api_Client_Projects/_user_projects/returns_all_projects_for_a_user.yml
|
251
|
+
- spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_delete_project/deletes_an_existing_project.yml
|
252
|
+
- spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_project/returns_a_project.yml
|
253
|
+
- spec/cassettes/Bugsnag_Api_Client_Projects/with_project/_update_project/updates_an_existing_project.yml
|
254
|
+
- spec/cassettes/Bugsnag_Api_Client_Users/_account_users/returns_all_users_on_an_account.yml
|
255
|
+
- spec/cassettes/Bugsnag_Api_Client_Users/_account_users/when_using_account_credentials/returns_all_users.yml
|
256
|
+
- spec/cassettes/Bugsnag_Api_Client_Users/_invite_user/invites_a_user_to_an_account.yml
|
257
|
+
- spec/cassettes/Bugsnag_Api_Client_Users/_project_users/returns_all_users_for_a_project.yml
|
258
|
+
- spec/cassettes/Bugsnag_Api_Client_Users/_user/returns_a_user.yml
|
259
|
+
- spec/cassettes/Bugsnag_Api_Client_Users/_user/when_using_user_credentials/returns_the_authed_user.yml
|
260
|
+
- spec/cassettes/Bugsnag_Api_Client_Users/with_user/_remove_user/removes_a_user_from_an_account.yml
|
261
|
+
- spec/cassettes/Bugsnag_Api_Client_Users/with_user/_update_user_permissions/updates_a_users_permissions.yml
|
262
|
+
- spec/spec_helper.rb
|