carnivore-sqs 0.1.10 → 0.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 +3 -0
- data/lib/carnivore-sqs/sqs.rb +15 -0
- data/lib/carnivore-sqs/version.rb +1 -1
- metadata +3 -4
- data/carnivore-sqs-0.1.6.gem +0 -0
- data/carnivore-sqs-0.1.8.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90900f0e587b869635641f3493b4e2031b7e3ff8
|
4
|
+
data.tar.gz: e4a842b6be117d1ae0f2ab253af9463b0d32285f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfe06781991be9396a122455632d93f40c9c1b8e6574e399a276b3f64162470a8a01fbd199c012fb4c29368cb69cdabe4b9d0f36ee3bfc1b3827b9125cb023be
|
7
|
+
data.tar.gz: 1a92cefa9d3018bdf4a54b39307e47751008dd28d61f1ed5948de046b6e5d212d685f7780ef851a5c4c2b1635241642940796f36dd3a6e63800e44b074ab73e0
|
data/CHANGELOG.md
CHANGED
data/lib/carnivore-sqs/sqs.rb
CHANGED
@@ -97,6 +97,21 @@ module Carnivore
|
|
97
97
|
end
|
98
98
|
end
|
99
99
|
|
100
|
+
def touch(message)
|
101
|
+
begin
|
102
|
+
queue = determine_queue(message)
|
103
|
+
debug "Source<#{name}> Touching message<#{message}> on Queue<#{queue}>"
|
104
|
+
m = message.is_a?(Message) ? message[:message] : message
|
105
|
+
if(m['ReceiptHandle'])
|
106
|
+
@fog.change_message_visibility(queue, m['ReceiptHandle'], 30)
|
107
|
+
else
|
108
|
+
debug "Message contained no receipt handle. Likely a looper #{message}"
|
109
|
+
end
|
110
|
+
rescue => e
|
111
|
+
error "Failed to touch message to reset timeout! #{message} - #{e.class}: #{e}"
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
100
115
|
def confirm(message)
|
101
116
|
queue = determine_queue(message)
|
102
117
|
debug "Source<#{name}> Confirming message<#{message}> on Queue<#{queue}>"
|
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.12
|
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-
|
11
|
+
date: 2015-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: carnivore
|
@@ -48,8 +48,6 @@ files:
|
|
48
48
|
- CONTRIBUTING.md
|
49
49
|
- LICENSE
|
50
50
|
- README.md
|
51
|
-
- carnivore-sqs-0.1.6.gem
|
52
|
-
- carnivore-sqs-0.1.8.gem
|
53
51
|
- carnivore-sqs.gemspec
|
54
52
|
- lib/carnivore-sqs.rb
|
55
53
|
- lib/carnivore-sqs/sqs.rb
|
@@ -79,3 +77,4 @@ signing_key:
|
|
79
77
|
specification_version: 4
|
80
78
|
summary: Message processing helper
|
81
79
|
test_files: []
|
80
|
+
has_rdoc:
|
data/carnivore-sqs-0.1.6.gem
DELETED
Binary file
|
data/carnivore-sqs-0.1.8.gem
DELETED
Binary file
|