hubble 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -134,7 +134,7 @@ module Hubble
134
134
 
135
135
  def report!(e, other = {})
136
136
  data = squash_context(exception_info(e), other)
137
- cast(data)
137
+ backend.report(data)
138
138
  rescue Object => i
139
139
  # don't fail for any reason
140
140
  logger.debug "Hubble: #{data.inspect}" rescue nil
@@ -206,16 +206,6 @@ module Hubble
206
206
  res
207
207
  end
208
208
 
209
- # Send the exception data to the relay service using
210
- # a non-waiting cast call.
211
- #
212
- # data - Hash of string key => string value pairs.
213
- #
214
- # Returns nothing.
215
- def cast(data)
216
- backend.report(data)
217
- end
218
-
219
209
  # Load and initialize the exception reporting backend as specified by
220
210
  # the 'backend' configuration option.
221
211
  #
@@ -284,26 +274,4 @@ module Hubble
284
274
  end
285
275
 
286
276
  extend self
287
-
288
- ##
289
- # Deprecated
290
-
291
- def service
292
- warn "Hubble.service is deprecated. #{caller[0]}"
293
- @service ||= BERTRPC::Service.new(config['host'], config['port'])
294
- end
295
-
296
- alias svc service
297
-
298
- def fail
299
- raise "failure failure!"
300
- end
301
-
302
- def default_options
303
- context[0]
304
- end
305
-
306
- def default_options=(hash)
307
- context[0] = hash
308
- end
309
277
  end
@@ -1,5 +1,5 @@
1
- module Hubble::Client
2
- class MemoryBackend
1
+ module Hubble::Backend
2
+ class Memory
3
3
  def initialize
4
4
  @reports = []
5
5
  @fail = false
@@ -1,3 +1,3 @@
1
1
  module Hubble
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubble
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - GitHub Inc.