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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a60ac5e8053afb45e0459396f2b03ddf13a24f59
4
- data.tar.gz: daed056c818497be3ac3990bee70c236df0f197a
3
+ metadata.gz: 4b6c5ea9acde32413d17038555e1d6d4a47584f5
4
+ data.tar.gz: 064a0af07b4f685a58bb4c7a4016ac929a4ff338
5
5
  SHA512:
6
- metadata.gz: 169e1c7a78948103445daff4d1fe69d6caad5851180f842b26ff5d4d0d35a3804b240b99a0ce9d22a532803f30362e1c1949fd5a4cf67cc6c3a28d300d4c359c
7
- data.tar.gz: 4bf8d7a2832ffa99f0633e8f18693c24d31eb7eaff8789bdc409a8f7bd14c0329e540ec6e6477b72d728fad1eb51131c74f51d34ee9ef7369e21e23ea8c53b0c
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, message|
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, message|
52
+ philotic.subscribe(header_key: 'header_1') do |message, metadata, queue|
53
53
  ap message[:attributes]
54
54
  end
55
55
 
@@ -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, message|
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, message|
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, message|
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, message|
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, message|
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, message|
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, message|
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, message|
14
+ Philotic.subscribe('male_queue') do |message, metadata, queue|
15
15
  ap message[:attributes]
16
16
  end
17
17
 
@@ -5,7 +5,7 @@ $stdout.sync = true
5
5
  require 'philotic'
6
6
  require 'awesome_print'
7
7
 
8
- Philotic.subscribe('test_queue') do |metadata, message|
8
+ Philotic.subscribe('test_queue') do |message, metadata, queue|
9
9
  ap message[:attributes]
10
10
  end
11
11
 
@@ -40,7 +40,7 @@ module Philotic
40
40
  DEFAULT_TIMESTAMP = nil
41
41
  DEFAULT_EXPIRATION = nil
42
42
  DEFAULT_CONNECTION_ATTEMPTS = 3
43
- DEFAULT_PREFETCH_COUNT = 1
43
+ DEFAULT_PREFETCH_COUNT = 0
44
44
 
45
45
  attr_accessor :connection
46
46
 
@@ -1,3 +1,3 @@
1
1
  module Philotic
2
- VERSION = '0.8.0'
2
+ VERSION = '0.8.1'
3
3
  end
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.0
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-01-08 00:00:00 Z
12
+ date: 2015-05-07 00:00:00 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: codeclimate-test-reporter