lagomorph 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2d20cf2cb1f8a168b4ebb17fc72be5fbf8a0e50
4
- data.tar.gz: 7031959395e7240bfa4949f36c882faf827cf500
3
+ metadata.gz: 2c5197f61b2a4201fda16493059d091f862f078c
4
+ data.tar.gz: 001bf438d51985cf3057a54ae3d97c959e76c170
5
5
  SHA512:
6
- metadata.gz: 56c80bb6be3859710bbd42f5dec9476ab69e497f905bad332cbb2a77d4ed3e46f2753b5f9eb5507aebbed3bfe271acb0e0f4d2154fd64e017b3e542b8bce5db9
7
- data.tar.gz: 147ec08b33614f341cda169b93adb711bea58d159fb79350a7c0e601effd4123142c597cae2f1d81e239a463c3218efb45916b4612edbd94f27465f3ad5c6b3e
6
+ metadata.gz: 98a0ee456ee2c00b4f818080c240450a2cacdb599f71bd2d8622f4bd2c8fbdafd835522df9b32e34aae77f731fe589868052c6aa66805e2a9d8338047e5af960
7
+ data.tar.gz: 687e57b4d9f90249a92a58fa0fd6607396d65ea3c96c6ca78030f78ccba65c07079ff5f2b7b6f2cc688d7c0edc0f0563a9ae881dddbdb5ad97d78463b37af693
@@ -1,6 +1,8 @@
1
1
  module Lagomorph
2
2
  class Session
3
3
 
4
+ attr_reader :connection
5
+
4
6
  CONNECTION_PARAM_KEYS = [
5
7
  :host,
6
8
  :heartbeat_interval,
@@ -53,4 +55,4 @@ module Lagomorph
53
55
  end
54
56
 
55
57
  end
56
- end
58
+ end
@@ -7,8 +7,11 @@ module Lagomorph
7
7
  @worker_class = worker_class
8
8
  end
9
9
 
10
- def subscribe(queue, channel)
11
- queue.subscribe(manual_ack: true, block: false) do |metadata, payload|
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
@@ -1,3 +1,3 @@
1
1
  module Lagomorph
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
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.7
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-21 00:00:00.000000000 Z
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