philotic 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/philotic/subscriber.rb +6 -8
- data/lib/philotic/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: b48912fb851c78acf1621da8c01dae3a40cc2125
|
4
|
+
data.tar.gz: 5edf6462910182e40715a2417c9cd886236170de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40512e9bbb3cd523aed937adc3cfdcd778093173802ee269a31f6f18d0082a74bc48918881cf28b2cecc3fe128fafdfbe0ad7a4890c3316030ea61033d154eb2
|
7
|
+
data.tar.gz: 0b12bbe96f006671dba904d49f8fd311dc998222e803d1d24452d41055e9d94d46756612a44ed10f147c01978f58269160f18dca66996921a782232539bd96a7
|
data/lib/philotic/subscriber.rb
CHANGED
@@ -23,7 +23,7 @@ module Philotic
|
|
23
23
|
lambda do |delivery_info, metadata, payload|
|
24
24
|
hash_payload = Philotic::Serialization::Serializer.load(payload, metadata)
|
25
25
|
|
26
|
-
message
|
26
|
+
message = Class.new(Philotic::Message).new(metadata[:headers], hash_payload)
|
27
27
|
message.delivery_info = delivery_info
|
28
28
|
|
29
29
|
instance_exec(message, &block)
|
@@ -69,10 +69,10 @@ module Philotic
|
|
69
69
|
queue_options[:auto_delete] ||= true if queue_name == ''
|
70
70
|
|
71
71
|
{
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
72
|
+
queue_name: queue_name,
|
73
|
+
queue_options: queue_options,
|
74
|
+
arguments: arguments,
|
75
|
+
subscribe_options: subscribe_options,
|
76
76
|
}
|
77
77
|
end
|
78
78
|
|
@@ -91,9 +91,7 @@ module Philotic
|
|
91
91
|
end
|
92
92
|
|
93
93
|
def endure
|
94
|
-
|
95
|
-
Thread.pass
|
96
|
-
end
|
94
|
+
Thread.stop
|
97
95
|
end
|
98
96
|
end
|
99
97
|
end
|
data/lib/philotic/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: philotic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Keyes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|