airbrake-api 4.1.2 → 4.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +10 -4
- data/lib/airbrake-api/notice.rb +1 -1
- data/lib/airbrake-api/version.rb +2 -2
- metadata +4 -4
data/README.md
CHANGED
@@ -11,7 +11,7 @@ has lost it's ActiveRecord-like syntax for a more concise and simple API. Inste
|
|
11
11
|
of using classes such as `AirbrakeAPI::Error`, the entire API is contained within
|
12
12
|
`AirbrakeAPI::Client`.
|
13
13
|
|
14
|
-
The following classes are now deprecated:
|
14
|
+
The following classes and their methods are now deprecated:
|
15
15
|
|
16
16
|
* `AirbrakeAPI::Error`
|
17
17
|
* `AirbrakeAPI::Notice`
|
@@ -33,6 +33,8 @@ or via a block:
|
|
33
33
|
config.secure = true
|
34
34
|
end
|
35
35
|
|
36
|
+
**Note:** Airbrake's API utilizes a separate 'auth_token' than the API Key that is used to configure the Airbrake tracker. Your 'auth_token' is found on the bottom of the user settings page.
|
37
|
+
|
36
38
|
## Finding Errors
|
37
39
|
|
38
40
|
Errors are paginated, the API responds with 25 at a time, pass an optional params hash for additional pages:
|
@@ -51,6 +53,10 @@ Find *all* notices of an error:
|
|
51
53
|
|
52
54
|
AirbrakeAPI.notices(error_id)
|
53
55
|
|
56
|
+
Notices may be paginated. If you don't want to retrieve all notices and merely want a specific page:
|
57
|
+
|
58
|
+
AirbrakeAPI.notices(error_id, :page => 3)
|
59
|
+
|
54
60
|
Find an individual notice:
|
55
61
|
|
56
62
|
AirbrakeAPI.notice(notice_id, error_id)
|
@@ -77,7 +83,7 @@ To retrieve a list of projects:
|
|
77
83
|
|
78
84
|
## Deployments
|
79
85
|
|
80
|
-
To retrieve a list of deployments:
|
86
|
+
To retrieve a list of deployments:
|
81
87
|
|
82
88
|
AirbrakeAPI.deployments
|
83
89
|
|
@@ -87,9 +93,9 @@ While module-based configuration will work in most cases, if you'd like to simul
|
|
87
93
|
|
88
94
|
client = AirbrakeAPI::Client.new(:account => 'myaccount', :auth_token => 'abcdefg', :secure => true)
|
89
95
|
altclient = AirbrakeAPI::Client.new(:account => 'anotheraccount', :auth_token => '123456789', :secure => false)
|
90
|
-
|
96
|
+
|
91
97
|
client.errors
|
92
|
-
|
98
|
+
|
93
99
|
altclient.projects
|
94
100
|
|
95
101
|
## Responses
|
data/lib/airbrake-api/notice.rb
CHANGED
@@ -12,7 +12,7 @@ module AirbrakeAPI
|
|
12
12
|
|
13
13
|
# @deprecated Please use {AirbrakeAPI::Client::all_notices} instead
|
14
14
|
def self.find_all_by_error_id(error_id, notice_options = {}, &block)
|
15
|
-
deprecate('Notice.find_all_by_error_id has been deprecated; use AibrakeAPI::Client#
|
15
|
+
deprecate('Notice.find_all_by_error_id has been deprecated; use AibrakeAPI::Client#notices instead')
|
16
16
|
AirbrakeAPI::Client.new.notices(error_id, notice_options, &block)
|
17
17
|
end
|
18
18
|
|
data/lib/airbrake-api/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module AirbrakeAPI
|
2
|
-
VERSION = '4.1.
|
3
|
-
end
|
2
|
+
VERSION = '4.1.3'
|
3
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: airbrake-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: hashie
|
@@ -294,7 +294,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
294
294
|
version: '0'
|
295
295
|
segments:
|
296
296
|
- 0
|
297
|
-
hash: -
|
297
|
+
hash: -1574051260181618395
|
298
298
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
299
299
|
none: false
|
300
300
|
requirements:
|
@@ -303,7 +303,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
303
303
|
version: '0'
|
304
304
|
segments:
|
305
305
|
- 0
|
306
|
-
hash: -
|
306
|
+
hash: -1574051260181618395
|
307
307
|
requirements: []
|
308
308
|
rubyforge_project:
|
309
309
|
rubygems_version: 1.8.24
|