cpi-event-connector 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -10,11 +10,10 @@ module Cpi
|
|
10
10
|
def transmit(message)
|
11
11
|
begin
|
12
12
|
start
|
13
|
-
@exchange.publish(message, :key => @queue_name)
|
13
|
+
@exchange.publish(message, :key => @queue_name, :persistent => true)
|
14
14
|
@bunny.tx_commit
|
15
15
|
rescue Bunny::ServerDownError, Bunny::ForcedConnectionCloseError, Bunny::ConnectionError
|
16
16
|
@started = false
|
17
|
-
start
|
18
17
|
retry
|
19
18
|
end
|
20
19
|
end
|
data/spec/connector_spec.rb
CHANGED
@@ -67,7 +67,7 @@ describe Cpi::Connector do
|
|
67
67
|
end
|
68
68
|
|
69
69
|
it "sends a message to an amqp server" do
|
70
|
-
exchange.should_receive(:publish).with(event, :key => "cpi")
|
70
|
+
exchange.should_receive(:publish).with(event, :key => "cpi", :persistent => true)
|
71
71
|
|
72
72
|
connector.transmit(event)
|
73
73
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cpi-event-connector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 7
|
10
|
+
version: 0.0.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Nulogy
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-03-
|
18
|
+
date: 2012-03-29 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rspec
|
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
146
|
requirements: []
|
147
147
|
|
148
148
|
rubyforge_project:
|
149
|
-
rubygems_version: 1.8.
|
149
|
+
rubygems_version: 1.8.15
|
150
150
|
signing_key:
|
151
151
|
specification_version: 3
|
152
152
|
summary: Sends events to CPI
|