failbot 2.0.0 → 2.0.1

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 +4 -4
  2. data/lib/failbot.rb +18 -0
  3. data/lib/failbot/version.rb +1 -1
  4. metadata +17 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 821db12a4c407c74f28439cee04fd1bf85701172
4
- data.tar.gz: 18239eb96c3a72351625fa2767e902c65db0773f
3
+ metadata.gz: 5f668202c2f67a5b46e2ab742f00f173e58f8f4d
4
+ data.tar.gz: 3ca18fe7d1d48e8bea33a91c8e2037e78bba2e1b
5
5
  SHA512:
6
- metadata.gz: 395818a1e15b43bc2b1e7ba1494f14d50daf6554fd302b497d96585e722d998cc2d2d734f6f8667c5be66a03d8e7ac83de2984c9e865f1b5390569c88d0759ac
7
- data.tar.gz: 205027dd715082a0663df243d7dd9faffdeebaebeab5612d9170252b826ee662c44b1bfe2ba1ee348884161abc85606e467050d6f42565b0fd58a2021c6578ec
6
+ metadata.gz: 55fa453972efb9dbd6d5703e1f45eeef5d2235f3778cbf56041a3ba6f7dd62650764d9505f63ce190789aafeada5a353da7b48a49e7c3b8255cd79c4b541cdb4
7
+ data.tar.gz: 63baf5464539e8fb6639ceb625a3d0cdd2dcc25291c7b273eb0948b190479b9362430086e40ded78e0ac0c9e1390ed953d36322ce239a50eb2a34ba35d066ea8
@@ -125,6 +125,24 @@ module Failbot
125
125
  @context = [context[0]]
126
126
  end
127
127
 
128
+ # Loops through the stack of contexts and deletes the given key if it exists.
129
+ #
130
+ # key - Name of key to remove.
131
+ #
132
+ # Examples
133
+ #
134
+ # remove_from_report(:some_key)
135
+ #
136
+ # remove_from_report("another_key")
137
+ #
138
+ # Returns nothing.
139
+ def remove_from_report(key)
140
+ context.each do |hash|
141
+ hash.delete(key.to_s)
142
+ hash.delete(key.to_sym)
143
+ end
144
+ end
145
+
128
146
  # Public: your last chance to modify the context that is to be reported with an exception.
129
147
  #
130
148
  # The key value pairs that are returned from your block will get squashed into the context,
@@ -1,3 +1,3 @@
1
1
  module Failbot
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
metadata CHANGED
@@ -1,74 +1,74 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: failbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
- - '@rtomayko'
8
- - '@atmos'
9
- - '@sr'
7
+ - "@rtomayko"
8
+ - "@atmos"
9
+ - "@sr"
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-07-22 00:00:00.000000000 Z
13
+ date: 2017-05-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ~>
19
+ - - "~>"
20
20
  - !ruby/object:Gem::Version
21
21
  version: '10.0'
22
22
  type: :development
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - ~>
26
+ - - "~>"
27
27
  - !ruby/object:Gem::Version
28
28
  version: '10.0'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rack
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - ~>
33
+ - - "~>"
34
34
  - !ruby/object:Gem::Version
35
35
  version: 1.6.4
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - ~>
40
+ - - "~>"
41
41
  - !ruby/object:Gem::Version
42
42
  version: 1.6.4
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: rack-test
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ~>
47
+ - - "~>"
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0.6'
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - ~>
54
+ - - "~>"
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0.6'
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: minitest
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - '>='
61
+ - - ">="
62
62
  - !ruby/object:Gem::Version
63
63
  version: '5.0'
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - '>='
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '5.0'
71
- description: '...'
71
+ description: "..."
72
72
  email:
73
73
  - github+failbot@lists.github.com
74
74
  executables: []
@@ -97,17 +97,17 @@ require_paths:
97
97
  - lib
98
98
  required_ruby_version: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - '>='
100
+ - - ">="
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
- - - '>='
105
+ - - ">="
106
106
  - !ruby/object:Gem::Version
107
107
  version: 1.3.6
108
108
  requirements: []
109
109
  rubyforge_project:
110
- rubygems_version: 2.0.14.1
110
+ rubygems_version: 2.5.2
111
111
  signing_key:
112
112
  specification_version: 4
113
113
  summary: Deliver exceptions to Haystack