brm_client 0.3.1 → 0.3.2

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
data/brm_client.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{brm_client}
8
- s.version = "0.3.1"
8
+ s.version = "0.3.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Stephane Bellity"]
@@ -7,15 +7,16 @@ module BrmClient
7
7
 
8
8
  def initialize opts
9
9
  hosts = opts[:hosts] || [ opts[:host] ]
10
- @client = Stomp::Client.new({ :hosts => hosts })
11
- @queue = @connection.queue "reactor.#{opts[:application]}"
10
+ hosts.map! &:to_options
11
+ @client = ::Stomp::Client.new({ :hosts => hosts })
12
+ @queue = "/queue/#{opts[:application]}"
12
13
  end
13
14
 
14
15
  def disconnect
15
16
  end
16
17
 
17
18
  def send_event e
18
- @client.send(@queue, e.to_json)
19
+ @client.publish(@queue, e.to_json)
19
20
  end
20
21
 
21
22
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 1
9
- version: 0.3.1
8
+ - 2
9
+ version: 0.3.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Stephane Bellity