trouble 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/lib/trouble/version.rb +1 -1
  3. data/lib/trouble.rb +7 -0
  4. metadata +17 -25
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 385a1d14bba43650b0d1eab6242c2bbc2ef5518e
4
+ data.tar.gz: 2c70dd8eaa6b16d4ea536fbef4c613ecc3457241
5
+ SHA512:
6
+ metadata.gz: 7259cd4af52683080e9219b5422f8f6da4566c7bc0bc514d011c68932e8011952a24b6708ccbf33045cf6e6a3eb9dacedf8bd86370e0312e7ccbab583c6e674f
7
+ data.tar.gz: 6a865df007417556510d93166712d87e9763ca1d97354c82fd29a457cdd2821c791e786ddcb4ab631329a88a858052ca452c7c08874a9c21ff87ffa7587e2a35
@@ -2,7 +2,7 @@ module Trouble
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 7
5
+ TINY = 8
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
8
8
  end
data/lib/trouble.rb CHANGED
@@ -19,6 +19,7 @@ module Trouble
19
19
  def self.notify(exception, metadata = nil)
20
20
  exception.set_backtrace(caller) unless exception.backtrace
21
21
  notify! exception, metadata
22
+ increment_metric
22
23
  end
23
24
 
24
25
  private
@@ -29,6 +30,12 @@ module Trouble
29
30
  log(exception, metadata) if config.logger
30
31
  Bugsnag.notify(exception, metadata) if defined?(Bugsnag)
31
32
  end
33
+
34
+ # Internal: track exceptions metric
35
+ #
36
+ def self.increment_metric
37
+ Meter.increment('exceptions') if defined?(Meter)
38
+ end
32
39
 
33
40
  # Internal: Log to the current Logger.
34
41
  #
metadata CHANGED
@@ -1,62 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trouble
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
5
- prerelease:
4
+ version: 0.0.8
6
5
  platform: ruby
7
6
  authors:
8
7
  - bukowskis
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-13 00:00:00.000000000 Z
11
+ date: 2015-02-05 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: guard-rspec
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rb-fsevent
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  description: A generic abstraction layer for reporting errors and Exceptions. This
@@ -67,38 +60,37 @@ executables: []
67
60
  extensions: []
68
61
  extra_rdoc_files: []
69
62
  files:
63
+ - LICENSE
64
+ - README.md
65
+ - lib/trouble.rb
70
66
  - lib/trouble/configuration.rb
71
67
  - lib/trouble/version.rb
72
- - lib/trouble.rb
73
68
  - spec/lib/trouble_spec.rb
74
69
  - spec/spec_helper.rb
75
- - README.md
76
- - LICENSE
77
70
  homepage: https://github.com/bukowskis/trouble
78
71
  licenses:
79
72
  - MIT
73
+ metadata: {}
80
74
  post_install_message:
81
75
  rdoc_options:
82
- - --encoding
76
+ - "--encoding"
83
77
  - UTF-8
84
78
  require_paths:
85
79
  - lib
86
80
  required_ruby_version: !ruby/object:Gem::Requirement
87
- none: false
88
81
  requirements:
89
- - - ! '>='
82
+ - - ">="
90
83
  - !ruby/object:Gem::Version
91
84
  version: '0'
92
85
  required_rubygems_version: !ruby/object:Gem::Requirement
93
- none: false
94
86
  requirements:
95
- - - ! '>='
87
+ - - ">="
96
88
  - !ruby/object:Gem::Version
97
89
  version: '0'
98
90
  requirements: []
99
91
  rubyforge_project:
100
- rubygems_version: 1.8.23
92
+ rubygems_version: 2.2.2
101
93
  signing_key:
102
- specification_version: 3
94
+ specification_version: 4
103
95
  summary: A generic abstraction layer for reporting errors and Exceptions.
104
96
  test_files: []