shoryuken 3.1.11 → 3.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/shoryuken/fetcher.rb +1 -1
- data/lib/shoryuken/version.rb +1 -1
- data/spec/shoryuken/fetcher_spec.rb +16 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5912d18563bfe2b5faee9c5a3c53bab7c947e987
|
4
|
+
data.tar.gz: 5198cea875f0c80902db6d9e6a179a22669a0bce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75d6d4830a0ea38043606775ba2cabb67be5774bfa7d0409516284f9e99e05ed0f9b4411c56118e65082eebcf97fba08b47d0f99252a4b7145a5a707b09d6685
|
7
|
+
data.tar.gz: 1932b9297951e87759162a31ab4fd7dbb849e1d3cbcfb1a5d7e14fe6f5a7f97fcd2daab15923628692979882548c9358caae57827536565f2b5ffd4e28a61de8
|
data/CHANGELOG.md
CHANGED
data/lib/shoryuken/fetcher.rb
CHANGED
@@ -16,7 +16,7 @@ module Shoryuken
|
|
16
16
|
|
17
17
|
sqs_msgs = Array(receive_messages(queue, [FETCH_LIMIT, limit].min))
|
18
18
|
|
19
|
-
logger.
|
19
|
+
logger.debug { "Found #{sqs_msgs.size} messages for #{queue.name}" } unless sqs_msgs.empty?
|
20
20
|
logger.debug { "Fetcher for #{queue} completed in #{elapsed(started_at)} ms" }
|
21
21
|
|
22
22
|
sqs_msgs
|
data/lib/shoryuken/version.rb
CHANGED
@@ -38,6 +38,22 @@ RSpec.describe Shoryuken::Fetcher do
|
|
38
38
|
subject.fetch(queue_config, limit)
|
39
39
|
end
|
40
40
|
|
41
|
+
it 'logs debug only' do
|
42
|
+
# See https://github.com/phstc/shoryuken/issues/435
|
43
|
+
logger = double 'logger'
|
44
|
+
|
45
|
+
allow(subject).to receive(:logger).and_return(logger)
|
46
|
+
|
47
|
+
expect(Shoryuken::Client).to receive(:queues).with(queue_name).and_return(queue)
|
48
|
+
|
49
|
+
expect(queue).to receive(:receive_messages).and_return([double('SQS Msg')])
|
50
|
+
|
51
|
+
expect(logger).to receive(:debug).exactly(3).times
|
52
|
+
expect(logger).to_not receive(:info)
|
53
|
+
|
54
|
+
subject.fetch(queue_config, limit)
|
55
|
+
end
|
56
|
+
|
41
57
|
context 'when receive options per queue' do
|
42
58
|
let(:limit) { 5 }
|
43
59
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shoryuken
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pablo Cantero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -221,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
221
221
|
version: '0'
|
222
222
|
requirements: []
|
223
223
|
rubyforge_project:
|
224
|
-
rubygems_version: 2.6.
|
224
|
+
rubygems_version: 2.6.13
|
225
225
|
signing_key:
|
226
226
|
specification_version: 4
|
227
227
|
summary: Shoryuken is a super efficient AWS SQS thread based message processor
|