opbeat 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +5 -5
- data/lib/opbeat.rb +3 -0
- data/lib/opbeat/version.rb +1 -1
- metadata +10 -10
data/README.md
CHANGED
@@ -108,7 +108,7 @@ Resque::Failure.backend = Resque::Failure::Multiple
|
|
108
108
|
|
109
109
|
It is possible to explicitely notify Opbeat. In the case of a simple message:
|
110
110
|
```
|
111
|
-
Opbeat.
|
111
|
+
Opbeat.capture_message("Not happy with the way things turned out")
|
112
112
|
```
|
113
113
|
|
114
114
|
If you want to catch and explicitely send an exception to Opbeat, this is the way to do it:
|
@@ -116,12 +116,12 @@ If you want to catch and explicitely send an exception to Opbeat, this is the wa
|
|
116
116
|
begin
|
117
117
|
faultyCall
|
118
118
|
rescue Exception => e
|
119
|
-
Opbeat.
|
119
|
+
Opbeat.capture_exception(e)
|
120
120
|
```
|
121
121
|
|
122
|
-
Both `Opbeat.
|
122
|
+
Both `Opbeat.capture_exception` and `Opbeat.capture_message` take additional `options`:
|
123
123
|
```ruby
|
124
|
-
Opbeat.
|
124
|
+
Opbeat.capture_message("Device registration error", :extra => {:device_id => my_device_id})
|
125
125
|
```
|
126
126
|
|
127
127
|
|
@@ -201,7 +201,7 @@ It is possible to set a context which be included an exceptions that are capture
|
|
201
201
|
```ruby
|
202
202
|
Opbeat.set_context :extra => {:device_id => my_device_id}
|
203
203
|
|
204
|
-
Opbeat.
|
204
|
+
Opbeat.capture_message("Hello world") # will include the context
|
205
205
|
```
|
206
206
|
|
207
207
|
|
data/lib/opbeat.rb
CHANGED
data/lib/opbeat/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opbeat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-08-
|
13
|
+
date: 2014-08-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: faraday
|
17
|
-
requirement: &
|
17
|
+
requirement: &8696640 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -25,10 +25,10 @@ dependencies:
|
|
25
25
|
version: '0.10'
|
26
26
|
type: :runtime
|
27
27
|
prerelease: false
|
28
|
-
version_requirements: *
|
28
|
+
version_requirements: *8696640
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: uuidtools
|
31
|
-
requirement: &
|
31
|
+
requirement: &8695880 !ruby/object:Gem::Requirement
|
32
32
|
none: false
|
33
33
|
requirements:
|
34
34
|
- - ~>
|
@@ -36,10 +36,10 @@ dependencies:
|
|
36
36
|
version: 2.1.4
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
|
-
version_requirements: *
|
39
|
+
version_requirements: *8695880
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: multi_json
|
42
|
-
requirement: &
|
42
|
+
requirement: &8695420 !ruby/object:Gem::Requirement
|
43
43
|
none: false
|
44
44
|
requirements:
|
45
45
|
- - ~>
|
@@ -47,10 +47,10 @@ dependencies:
|
|
47
47
|
version: '1.0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
|
-
version_requirements: *
|
50
|
+
version_requirements: *8695420
|
51
51
|
- !ruby/object:Gem::Dependency
|
52
52
|
name: hashie
|
53
|
-
requirement: &
|
53
|
+
requirement: &8694960 !ruby/object:Gem::Requirement
|
54
54
|
none: false
|
55
55
|
requirements:
|
56
56
|
- - ~>
|
@@ -58,7 +58,7 @@ dependencies:
|
|
58
58
|
version: 2.1.1
|
59
59
|
type: :runtime
|
60
60
|
prerelease: false
|
61
|
-
version_requirements: *
|
61
|
+
version_requirements: *8694960
|
62
62
|
description:
|
63
63
|
email: ron@opbeat.com
|
64
64
|
executables: []
|