stomp_actors 0.1.1 → 0.1.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.
@@ -11,8 +11,8 @@ module StompActors
11
11
  async.connect
12
12
  end
13
13
 
14
- def emit(msg)
15
- client.send(queue, msg)
14
+ def emit(msg, opts = {})
15
+ client.send(queue, msg, opts)
16
16
  end
17
17
 
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module StompActors
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -32,5 +32,14 @@ describe StompActors::Producer do
32
32
  sleep 0.5
33
33
  }.to change { Dir["#{message_dir}/*.msg"].to_a.length }.by(1)
34
34
  end
35
+
36
+ it "should send message with options" do
37
+ producer = MyProducer.new
38
+ expect {
39
+ producer.emit("message", persistent: true)
40
+ sleep 0.5
41
+ }.to change { Dir["#{message_dir}/*.msg"].to_a.length }.by(1)
42
+ end
43
+
35
44
  end
36
45
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stomp_actors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-15 00:00:00.000000000 Z
12
+ date: 2013-05-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler