philotic 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/examples/simple_instance.rb +1 -1
- data/examples/simple_singleton.rb +1 -1
- data/examples/subscribing/acks.rb +3 -3
- data/examples/subscribing/anonymous_queue.rb +1 -1
- data/examples/subscribing/multiple_named_queues.rb +2 -2
- data/examples/subscribing/named_queue.rb +1 -1
- data/lib/philotic/config.rb +1 -1
- 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: 4b6c5ea9acde32413d17038555e1d6d4a47584f5
|
4
|
+
data.tar.gz: 064a0af07b4f685a58bb4c7a4016ac929a4ff338
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c4bdeeeaab84fe4033d1f2df512677b4a5400c82cb01903b539b37d249285b4a6b33060153359154a87a0e3167936eeaf51a892a427128a658fca88356844fc
|
7
|
+
data.tar.gz: e2894d10d9de9fd0186cfefcbbdabaa48863a8f3ac99fb4d18317338df5fc5bd383b7c0a09d9828f703dae1a97ca6faefea615c02a23da9cf424e82a42233f31
|
data/README.md
CHANGED
@@ -20,7 +20,7 @@ Philotic.config.message_return_handler = lambda do |basic_return, metadata, mess
|
|
20
20
|
Philotic.logger.warn { "Message returned. reply_text: #{basic_return.reply_text}" }
|
21
21
|
end
|
22
22
|
|
23
|
-
Philotic.subscribe(header_key: 'header_1') do |metadata,
|
23
|
+
Philotic.subscribe(header_key: 'header_1') do |message, metadata, queue|
|
24
24
|
ap message[:attributes]
|
25
25
|
end
|
26
26
|
|
@@ -49,7 +49,7 @@ philotic.config.message_return_handler = lambda do |basic_return, metadata, mess
|
|
49
49
|
philotic.logger.warn { "Message returned. reply_text: #{basic_return.reply_text}" }
|
50
50
|
end
|
51
51
|
|
52
|
-
philotic.subscribe(header_key: 'header_1') do |metadata,
|
52
|
+
philotic.subscribe(header_key: 'header_1') do |message, metadata, queue|
|
53
53
|
ap message[:attributes]
|
54
54
|
end
|
55
55
|
|
data/examples/simple_instance.rb
CHANGED
@@ -12,7 +12,7 @@ philotic.config.message_return_handler = lambda do |basic_return, metadata, mess
|
|
12
12
|
philotic.logger.warn { "Message returned. reply_text: #{basic_return.reply_text}" }
|
13
13
|
end
|
14
14
|
|
15
|
-
philotic.subscribe(header_key: 'header_1') do |metadata,
|
15
|
+
philotic.subscribe(header_key: 'header_1') do |message, metadata, queue|
|
16
16
|
ap message[:attributes]
|
17
17
|
end
|
18
18
|
|
@@ -10,7 +10,7 @@ Philotic.config.message_return_handler = lambda do |basic_return, metadata, mess
|
|
10
10
|
Philotic.logger.warn { "Message returned. reply_text: #{basic_return.reply_text}" }
|
11
11
|
end
|
12
12
|
|
13
|
-
Philotic.subscribe(header_key: 'header_1') do |metadata,
|
13
|
+
Philotic.subscribe(header_key: 'header_1') do |message, metadata, queue|
|
14
14
|
ap message[:attributes]
|
15
15
|
end
|
16
16
|
|
@@ -6,19 +6,19 @@ require 'philotic'
|
|
6
6
|
require 'awesome_print'
|
7
7
|
|
8
8
|
# sometimes ack
|
9
|
-
Philotic.subscribe('flaky_queue', ack: true) do |metadata,
|
9
|
+
Philotic.subscribe('flaky_queue', ack: true) do |message, metadata, queue|
|
10
10
|
ap message[:attributes]
|
11
11
|
[true, false].sample ? acknowledge(message) : reject(message)
|
12
12
|
end
|
13
13
|
|
14
14
|
# always ack
|
15
|
-
Philotic.subscribe('flaky_queue', ack: true) do |metadata,
|
15
|
+
Philotic.subscribe('flaky_queue', ack: true) do |message, metadata, queue|
|
16
16
|
ap message[:attributes]
|
17
17
|
acknowledge(message, true)
|
18
18
|
end
|
19
19
|
|
20
20
|
# always reject
|
21
|
-
Philotic.subscribe('flaky_queue', ack: true) do |metadata,
|
21
|
+
Philotic.subscribe('flaky_queue', ack: true) do |message, metadata, queue|
|
22
22
|
ap message[:attributes]
|
23
23
|
reject message
|
24
24
|
end
|
@@ -7,7 +7,7 @@ require 'awesome_print'
|
|
7
7
|
|
8
8
|
Philotic.config.load_file(File.join(File.dirname(__FILE__), '../../', 'Philotic.yml.example'))
|
9
9
|
|
10
|
-
Philotic.subscribe(philotic_firehose: true) do |metadata,
|
10
|
+
Philotic.subscribe(philotic_firehose: true) do |message, metadata, queue|
|
11
11
|
ap message[:attributes]
|
12
12
|
end
|
13
13
|
|
@@ -7,11 +7,11 @@ require 'awesome_print'
|
|
7
7
|
|
8
8
|
Philotic.config.load_file(File.join(File.dirname(__FILE__), '../../', 'Philotic.yml.example'))
|
9
9
|
|
10
|
-
Philotic.subscribe('female_queue') do |metadata,
|
10
|
+
Philotic.subscribe('female_queue') do |message, metadata, queue|
|
11
11
|
ap message[:attributes]
|
12
12
|
end
|
13
13
|
|
14
|
-
Philotic.subscribe('male_queue') do |metadata,
|
14
|
+
Philotic.subscribe('male_queue') do |message, metadata, queue|
|
15
15
|
ap message[:attributes]
|
16
16
|
end
|
17
17
|
|
data/lib/philotic/config.rb
CHANGED
data/lib/philotic/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: philotic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Keyes
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-05-07 00:00:00 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: codeclimate-test-reporter
|