carnivore-sqs 0.1.6 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/carnivore-sqs-0.1.6.gem +0 -0
- data/lib/carnivore-sqs/sqs.rb +2 -4
- data/lib/carnivore-sqs/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d18821d4df609a76e6ce67c9123f70562abae9b6
|
4
|
+
data.tar.gz: da458502ed82039ab1b1c7cef97615a5b03a9ad0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26cba90adad20792881ae67843583f4363a698347d2d93c6ea6c84a807085a4fb0e811e5d5aee30aa12000bae1fb45191f7de4abf016126af7358ff8ab8b3928
|
7
|
+
data.tar.gz: d5f0941a84a9199f1c21f3dacc428f16994de956e2ebd7c6ca3fe5913f949d6d582849b52ce0ae30f7bedcad56a4f396ac9fd23426ccb507f2f50ca56f360bdc
|
data/CHANGELOG.md
CHANGED
Binary file
|
data/lib/carnivore-sqs/sqs.rb
CHANGED
@@ -60,15 +60,13 @@ module Carnivore
|
|
60
60
|
msgs = queues.map do |q|
|
61
61
|
begin
|
62
62
|
m = @fog.receive_message(q, 'MaxNumberOfMessages' => n).body['Message']
|
63
|
+
m.merge('SourceQueue' => q)
|
63
64
|
rescue Excon::Errors::Error => e
|
64
65
|
error "SQS received an unexpected error. Pausing and running retry (#{e.class}: #{e})"
|
65
66
|
debug "SQS ERROR TRACE: #{e.class}: #{e}\n#{e.backtrace.join("\n")}"
|
66
67
|
sleep Carnivore::Config.get(:carnivore, :sqs, :retry_wait) || 5
|
67
68
|
retry
|
68
69
|
end
|
69
|
-
m.map! do |msg|
|
70
|
-
msg.merge('SourceQueue' => q)
|
71
|
-
end
|
72
70
|
end.flatten.compact
|
73
71
|
@receive_timeout.reset
|
74
72
|
if(msgs.empty?)
|
@@ -83,7 +81,7 @@ module Carnivore
|
|
83
81
|
end
|
84
82
|
count += 1
|
85
83
|
end
|
86
|
-
msgs.map{|m| pre_process(m) }
|
84
|
+
msgs.flatten.compact.map{|m| pre_process(m) }
|
87
85
|
end
|
88
86
|
|
89
87
|
def transmit(message, original=nil)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carnivore-sqs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Roberts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: carnivore
|
@@ -48,6 +48,7 @@ files:
|
|
48
48
|
- CONTRIBUTING.md
|
49
49
|
- LICENSE
|
50
50
|
- README.md
|
51
|
+
- carnivore-sqs-0.1.6.gem
|
51
52
|
- carnivore-sqs.gemspec
|
52
53
|
- lib/carnivore-sqs.rb
|
53
54
|
- lib/carnivore-sqs/sqs.rb
|