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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b4738a5669401fa905d283e4edd281aa7887747
4
- data.tar.gz: 0b961cee5c6dfb02026cf774ed36a1e787923a59
3
+ metadata.gz: 59968bb1d29726b7e1873d4e9f02acdcb08d8ec7
4
+ data.tar.gz: f20e65fea419ee6d373f653bfdd388c333040a86
5
5
  SHA512:
6
- metadata.gz: fd755fdced951be0b3f71fee761f720de550533939d83e5c02e39b7b29c01f8b49ad1d340c3c13a5369c36b74780c63f1578726713a38a5f9f675c3177d4a540
7
- data.tar.gz: 5e6330b01276fbf0efe9dda7f97e54dd7fe6819250e2caa889ff7a8c735b0944c2af0a1d9a00a2e74c2c66f49bc9674e5675c85472cb02ccc13847ca179725a7
6
+ metadata.gz: c1739573764a64a54417954ef88d953975a44ba110712c1e12240b6b307210a0a3a6341eb7c41342b4f642af2e475ab4966d9c926163851e1ba0f1220ef49acc
7
+ data.tar.gz: c31f01c2e7b50b79dd1ba42474a95bd5581cc4d5cb60ffde7184ffd8f3cb181798c20fd2c2136087b2b7cca92e4024d8911b331ada458a3eff44e08f079f01dc
@@ -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
- queue.poll(poll_options) do |message|
35
- yield message
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
 
@@ -1,3 +1,3 @@
1
1
  module Oni
2
- VERSION = '4.1.0'
2
+ VERSION = '4.1.1'
3
3
  end # Oni
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.0
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: 2017-09-26 00:00:00.000000000 Z
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.13
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