omnibot 0.0.7 → 0.0.8

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.
@@ -2,7 +2,6 @@ require 'yaml'
2
2
  require 'logger'
3
3
 
4
4
  require 'amqp'
5
- require 'mq'
6
5
  require 'eventmachine'
7
6
  require 'xmpp4r'
8
7
  require 'xmpp4r/client'
@@ -17,7 +17,7 @@ module OmniBot
17
17
 
18
18
  def amqp_loop
19
19
  # setup amqp
20
- mq = MQ.new
20
+ mq = AMQP::Channel.new
21
21
  exchange = mq.direct(Helpers::amqp_exchange_name)
22
22
  queue = mq.queue("omnibot-consumerqueue", :exclusive => true)
23
23
  queue.bind(exchange)
@@ -14,7 +14,7 @@ module OmniBot
14
14
  Signal.trap('INT') { AMQP.stop{ EM.stop } }
15
15
 
16
16
  AMQP.start do
17
- mq = MQ.new
17
+ mq = AMQP::Channel.new
18
18
  exchange = mq.direct(Helpers::amqp_exchange_name)
19
19
  exchange.publish(data)
20
20
  puts 'sent'
@@ -1,3 +1,3 @@
1
1
  module OmniBot
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omnibot
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - theirix