oni 4.1.0 → 4.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/oni/daemons/sqs.rb +7 -2
- data/lib/oni/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59968bb1d29726b7e1873d4e9f02acdcb08d8ec7
|
4
|
+
data.tar.gz: f20e65fea419ee6d373f653bfdd388c333040a86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1739573764a64a54417954ef88d953975a44ba110712c1e12240b6b307210a0a3a6341eb7c41342b4f642af2e475ab4966d9c926163851e1ba0f1220ef49acc
|
7
|
+
data.tar.gz: c31f01c2e7b50b79dd1ba42474a95bd5581cc4d5cb60ffde7184ffd8f3cb181798c20fd2c2136087b2b7cca92e4024d8911b331ada458a3eff44e08f079f01dc
|
data/lib/oni/daemons/sqs.rb
CHANGED
@@ -20,6 +20,7 @@ module Oni
|
|
20
20
|
# information on the available options.
|
21
21
|
#
|
22
22
|
class SQS < Daemon
|
23
|
+
|
23
24
|
##
|
24
25
|
# Checks if the `queue_name` option is set.
|
25
26
|
#
|
@@ -31,8 +32,12 @@ module Oni
|
|
31
32
|
# Polls an SQS queue for a message and processes it.
|
32
33
|
#
|
33
34
|
def receive
|
34
|
-
|
35
|
-
|
35
|
+
poll_options.merge! max_number_of_messages: 10
|
36
|
+
|
37
|
+
queue.poll poll_options do |messages|
|
38
|
+
messages.each do |message|
|
39
|
+
yield message
|
40
|
+
end
|
36
41
|
end
|
37
42
|
end
|
38
43
|
|
data/lib/oni/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oni
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yorick Peterse
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-06-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -149,8 +149,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
version: '0'
|
150
150
|
requirements: []
|
151
151
|
rubyforge_project:
|
152
|
-
rubygems_version: 2.6.
|
152
|
+
rubygems_version: 2.6.14
|
153
153
|
signing_key:
|
154
154
|
specification_version: 4
|
155
155
|
summary: Framework for building concurrent daemons in Ruby.
|
156
156
|
test_files: []
|
157
|
+
has_rdoc: yard
|