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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e68b6d96d14a6a1ac817c9632c6441ecfd6601dd
4
- data.tar.gz: ff5bd3fd15826fad319394dfe1e5ed756b07cfe6
3
+ metadata.gz: d18821d4df609a76e6ce67c9123f70562abae9b6
4
+ data.tar.gz: da458502ed82039ab1b1c7cef97615a5b03a9ad0
5
5
  SHA512:
6
- metadata.gz: 85741f99a97c942340611c0366dd925feb21ddf7cb29f06dc2bfa18c4e8beeaa7c59053e87b1e201ed708094d1dd793ed42b68745c820e75b29f1cf638366be6
7
- data.tar.gz: ea7fd2127f64ec44a728733147e277a4dc68a97c0311fbc3c92563056a87707eb60c4f9bb9415f57880a0034491034983ddcd3c79a20adadeae916ab31b7f665
6
+ metadata.gz: 26cba90adad20792881ae67843583f4363a698347d2d93c6ea6c84a807085a4fb0e811e5d5aee30aa12000bae1fb45191f7de4abf016126af7358ff8ab8b3928
7
+ data.tar.gz: d5f0941a84a9199f1c21f3dacc428f16994de956e2ebd7c6ca3fe5913f949d6d582849b52ce0ae30f7bedcad56a4f396ac9fd23426ccb507f2f50ca56f360bdc
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.1.8
2
+ * Fix: Set source queue within read loop
3
+
1
4
  # v0.1.6
2
5
  * Fix: create new strings on queue name format
3
6
 
Binary file
@@ -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)
@@ -1,5 +1,5 @@
1
1
  module Carnivore
2
2
  module Sqs
3
- VERSION = Gem::Version.new('0.1.6')
3
+ VERSION = Gem::Version.new('0.1.8')
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.6
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-10 00:00:00.000000000 Z
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