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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65ba755fc5a5e34f7b6e2ea0a93fea26ddf4c93d
4
- data.tar.gz: 8916ea0c8e439f34b526e754229f300eb7c0578f
3
+ metadata.gz: af1c963d4f2b9ac46ba01e74be5784ecf46d26aa
4
+ data.tar.gz: 1589ab1265853444568f03c4149a0594e2526274
5
5
  SHA512:
6
- metadata.gz: edbdec9e6b32fab8571888e4159cf9d8f87188e3201580963e5ce2f774f352885f154e900f0cd998f99187f4be850a52e3f501084f6c511975f1c040e7982e93
7
- data.tar.gz: 4f131e308bf0eaa0a47e8690f71238b0e7d098702dba0d52d6c44e06010e8a953961368fd26c1e35c32b30ae33a409116b9b81c6ba19da54f8b814b3841c9139
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.1)
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.4.1)
12
- rake (10.2.2)
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 :default_notifier, :silence_no_notifier_warning
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
@@ -2,7 +2,7 @@ module TestNotifier
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 0
5
- PATCH = 1
5
+ PATCH = 2
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
8
8
  end
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.1
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-12 00:00:00.000000000 Z
11
+ date: 2014-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: notifier