lagomorph 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lagomorph/session.rb +3 -1
- data/lib/lagomorph/subscriber.rb +6 -3
- data/lib/lagomorph/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c5197f61b2a4201fda16493059d091f862f078c
|
4
|
+
data.tar.gz: 001bf438d51985cf3057a54ae3d97c959e76c170
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98a0ee456ee2c00b4f818080c240450a2cacdb599f71bd2d8622f4bd2c8fbdafd835522df9b32e34aae77f731fe589868052c6aa66805e2a9d8338047e5af960
|
7
|
+
data.tar.gz: 687e57b4d9f90249a92a58fa0fd6607396d65ea3c96c6ca78030f78ccba65c07079ff5f2b7b6f2cc688d7c0edc0f0563a9ae881dddbdb5ad97d78463b37af693
|
data/lib/lagomorph/session.rb
CHANGED
data/lib/lagomorph/subscriber.rb
CHANGED
@@ -7,8 +7,11 @@ module Lagomorph
|
|
7
7
|
@worker_class = worker_class
|
8
8
|
end
|
9
9
|
|
10
|
-
def subscribe(queue, channel)
|
11
|
-
|
10
|
+
def subscribe(queue, channel, opts={})
|
11
|
+
subscription_opts = opts.merge(durable: true,
|
12
|
+
manual_ack: true,
|
13
|
+
block: false)
|
14
|
+
queue.subscribe(subscription_opts) do |metadata, payload|
|
12
15
|
response = process_request(payload)
|
13
16
|
channel.ack(metadata.delivery_tag)
|
14
17
|
publish_response(channel, metadata, response)
|
@@ -45,4 +48,4 @@ module Lagomorph
|
|
45
48
|
end
|
46
49
|
|
47
50
|
end
|
48
|
-
end
|
51
|
+
end
|
data/lib/lagomorph/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lagomorph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Berardi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-11-
|
12
|
+
date: 2014-11-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|