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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a3f3095ae4f380fd51d0b978a1dd17bbd483221
4
- data.tar.gz: 25fca51c271b8005ed69e52f50419951faf2200b
3
+ metadata.gz: 90900f0e587b869635641f3493b4e2031b7e3ff8
4
+ data.tar.gz: e4a842b6be117d1ae0f2ab253af9463b0d32285f
5
5
  SHA512:
6
- metadata.gz: d03493bb735e490af1521077c7219d578855e9642c74bae84b0d2c01ed95feae3d522b4e7a7ae0538af77167b6e116952a62efc83b643238a3cd0b89aa3249eb
7
- data.tar.gz: 3a92a72da3ea355a7aecb66552fb3ef76ea1683bbddf67c07a62af340227da30c2329451464db3f8bc33bd42a0e9ab9e165ee3773d58fbd7453e8086f65c9f0c
6
+ metadata.gz: cfe06781991be9396a122455632d93f40c9c1b8e6574e399a276b3f64162470a8a01fbd199c012fb4c29368cb69cdabe4b9d0f36ee3bfc1b3827b9125cb023be
7
+ data.tar.gz: 1a92cefa9d3018bdf4a54b39307e47751008dd28d61f1ed5948de046b6e5d212d685f7780ef851a5c4c2b1635241642940796f36dd3a6e63800e44b074ab73e0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.1.12
2
+ * Feature: Add #touch support
3
+
1
4
  # v0.1.10
2
5
  * Fix: Loop messages for source queue merge
3
6
 
@@ -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}>"
@@ -1,5 +1,5 @@
1
1
  module Carnivore
2
2
  module Sqs
3
- VERSION = Gem::Version.new('0.1.10')
3
+ VERSION = Gem::Version.new('0.1.12')
4
4
  end
5
5
  end
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.10
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-06-17 00:00:00.000000000 Z
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:
Binary file
Binary file