chef-jabber-snitch 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "chef-jabber-snitch"
3
- s.version = "0.0.2"
3
+ s.version = "0.0.3"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.authors = ["Alice Kaerast"]
6
6
  s.email = ["alice.kaerast@webanywhere.co.uk"]
@@ -5,7 +5,6 @@ require 'net/http'
5
5
  require 'uri'
6
6
  require 'json'
7
7
  require 'xmpp4r/client'
8
- include Jabber
9
8
 
10
9
  class JabberSnitch < Chef::Handler
11
10
 
@@ -39,7 +38,7 @@ class JabberSnitch < Chef::Handler
39
38
  Chef::Log.error("Chef run failed @ #{@timestamp}")
40
39
  Chef::Log.error("#{run_status.formatted_exception}")
41
40
  else
42
- Chef::Log.error("Chef run failed @ #{@timestamp}, snitchin' to chefs via IRC")
41
+ Chef::Log.error("Chef run failed @ #{@timestamp}, snitchin' to chefs via Jabber")
43
42
 
44
43
  gist_id = nil
45
44
  begin
@@ -62,6 +61,7 @@ class JabberSnitch < Chef::Handler
62
61
 
63
62
  begin
64
63
  timeout(10) do
64
+ include Jabber
65
65
  jid = Jid::new(@jabber_user)
66
66
  cl = Client::new(jid)
67
67
  cl.connect(@server,5222)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-jabber-snitch
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alice Kaerast