failbot 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/failbot.rb +18 -0
- data/lib/failbot/version.rb +1 -1
- metadata +17 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f668202c2f67a5b46e2ab742f00f173e58f8f4d
|
4
|
+
data.tar.gz: 3ca18fe7d1d48e8bea33a91c8e2037e78bba2e1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55fa453972efb9dbd6d5703e1f45eeef5d2235f3778cbf56041a3ba6f7dd62650764d9505f63ce190789aafeada5a353da7b48a49e7c3b8255cd79c4b541cdb4
|
7
|
+
data.tar.gz: 63baf5464539e8fb6639ceb625a3d0cdd2dcc25291c7b273eb0948b190479b9362430086e40ded78e0ac0c9e1390ed953d36322ce239a50eb2a34ba35d066ea8
|
data/lib/failbot.rb
CHANGED
@@ -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,
|
data/lib/failbot/version.rb
CHANGED
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.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
-
|
9
|
-
-
|
7
|
+
- "@rtomayko"
|
8
|
+
- "@atmos"
|
9
|
+
- "@sr"
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
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.
|
110
|
+
rubygems_version: 2.5.2
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: Deliver exceptions to Haystack
|