opbeat 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +5 -5
  2. data/lib/opbeat.rb +3 -0
  3. data/lib/opbeat/version.rb +1 -1
  4. 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.captureMessage("Not happy with the way things turned out")
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.captureException(e)
119
+ Opbeat.capture_exception(e)
120
120
  ```
121
121
 
122
- Both `Opbeat.captureException` and `Opbeat.captureMessage` take additional `options`:
122
+ Both `Opbeat.capture_exception` and `Opbeat.capture_message` take additional `options`:
123
123
  ```ruby
124
- Opbeat.captureMessage("Device registration error", :extra => {:device_id => my_device_id})
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.captureMessage("Hello world") # will include the context
204
+ Opbeat.capture_message("Hello world") # will include the context
205
205
  ```
206
206
 
207
207
 
data/lib/opbeat.rb CHANGED
@@ -104,5 +104,8 @@ module Opbeat
104
104
  def set_context(options={})
105
105
  Event.set_context(options)
106
106
  end
107
+
108
+ alias :capture_exception :captureException
109
+ alias :capture_message :captureMessage
107
110
  end
108
111
  end
@@ -1,3 +1,3 @@
1
1
  module Opbeat
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
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.0
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-14 00:00:00.000000000 Z
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: &17054920 !ruby/object:Gem::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: *17054920
28
+ version_requirements: *8696640
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: uuidtools
31
- requirement: &17054160 !ruby/object:Gem::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: *17054160
39
+ version_requirements: *8695880
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: multi_json
42
- requirement: &17053700 !ruby/object:Gem::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: *17053700
50
+ version_requirements: *8695420
51
51
  - !ruby/object:Gem::Dependency
52
52
  name: hashie
53
- requirement: &17053240 !ruby/object:Gem::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: *17053240
61
+ version_requirements: *8694960
62
62
  description:
63
63
  email: ron@opbeat.com
64
64
  executables: []