chef-notifier 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,6 @@
1
+ === v1.0.3
2
+ * Check that @args is hash before using
3
+
1
4
  === v1.0.2
2
5
  * Return self on setup
3
6
 
@@ -34,7 +34,7 @@ module ChefNotifier
34
34
  private
35
35
 
36
36
  def send_mail(message, subject=nil)
37
- if(@args[:recipients])
37
+ if(@args.respond_to?(:[]) && @args[:recipients])
38
38
  Pony.mail(
39
39
  :to => @args[:recipients],
40
40
  :subject => subject || "[Chef ERROR #{Socket.gethostname}]",
@@ -13,5 +13,5 @@ module ChefNotifier
13
13
  end
14
14
  end
15
15
 
16
- VERSION = Version.new('1.0.2')
16
+ VERSION = Version.new('1.0.3')
17
17
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-notifier
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Roberts