test_notifier 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/test_notifier.rb +5 -2
- data/lib/test_notifier/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af1c963d4f2b9ac46ba01e74be5784ecf46d26aa
|
4
|
+
data.tar.gz: 1589ab1265853444568f03c4149a0594e2526274
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 319b2550e892598195a65dff9d5a0ded54a126fef38fc4207d4b10038419b80ff63e2f25ae0f7e1b1644615c9c55eeb8d2416a87190f187edce427e5075eeda0
|
7
|
+
data.tar.gz: f3ec3e51057340042592a70e27af865d5cd0f843c76b001c76bb9bcb192123f685eb242bbec3c5c028c02674ca25a0292c8b1e6266152d23551c6cc712c6846a
|
data/Gemfile.lock
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
test_notifier (2.0.
|
4
|
+
test_notifier (2.0.2)
|
5
5
|
notifier
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
10
|
diff-lcs (1.2.5)
|
11
|
-
notifier (0.
|
12
|
-
rake (10.
|
11
|
+
notifier (0.5.0)
|
12
|
+
rake (10.3.1)
|
13
13
|
rspec (3.0.0.beta2)
|
14
14
|
rspec-core (= 3.0.0.beta2)
|
15
15
|
rspec-expectations (= 3.0.0.beta2)
|
data/lib/test_notifier.rb
CHANGED
@@ -2,7 +2,7 @@ require "notifier"
|
|
2
2
|
|
3
3
|
module TestNotifier
|
4
4
|
class << self
|
5
|
-
attr_accessor :
|
5
|
+
attr_accessor :silence_no_notifier_warning
|
6
6
|
end
|
7
7
|
|
8
8
|
extend self
|
@@ -27,6 +27,10 @@ module TestNotifier
|
|
27
27
|
:error => "red"
|
28
28
|
}
|
29
29
|
|
30
|
+
def default_notifier=(notifier)
|
31
|
+
Notifier.default_notifier = notifier
|
32
|
+
end
|
33
|
+
|
30
34
|
def notify(options)
|
31
35
|
options.merge!({
|
32
36
|
:title => TITLES[options[:status]],
|
@@ -38,7 +42,6 @@ module TestNotifier
|
|
38
42
|
end
|
39
43
|
|
40
44
|
def notifier
|
41
|
-
Notifier.default_notifier = default_notifier
|
42
45
|
notifier = Notifier.notifier
|
43
46
|
|
44
47
|
if notifier == Notifier::Placebo && !silence_no_notifier_warning
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test_notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nando Vieira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: notifier
|