simple_message_queue 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -62,12 +62,12 @@ module SimpleMessageQueue
62
62
  def send(message)
63
63
  begin
64
64
  queue.send_message(message)
65
- rescue
66
- logger.error "There was an error when sending an item to #{queue_name} at #{DateTime.now}."
65
+ rescue => error
66
+ logger.error "There was an error when sending an item to #{queue_name} at #{DateTime.now}. Error: #{error.to_s}"
67
67
 
68
68
  if defined?(SimpleMessageQueue.configuration.sns_notifications) && SimpleMessageQueue.configuration.sns_notifications == true
69
69
  topic = SimpleMessageQueue::Notification::Topic.new('send_message_failure')
70
- topic.send("There was an error when sending an item to #{queue_name} at #{DateTime.now}.", "SimpleMessageQueue: Send Message Failure")
70
+ topic.send("There was an error when sending an item to #{queue_name} at #{DateTime.now}. Error: #{error.to_s}", "SimpleMessageQueue: Send Message Failure")
71
71
  end
72
72
  end
73
73
  end
@@ -1,3 +1,3 @@
1
1
  module SimpleMessageQueue
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_message_queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-16 00:00:00.000000000 Z
12
+ date: 2013-08-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk
16
- requirement: &70212523769780 !ruby/object:Gem::Requirement
16
+ requirement: &70110136493320 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70212523769780
24
+ version_requirements: *70110136493320
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: minitest
27
- requirement: &70212523769360 !ruby/object:Gem::Requirement
27
+ requirement: &70110136492220 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70212523769360
35
+ version_requirements: *70110136492220
36
36
  description: SimpleMessageQueue is a simple interface for Amazon Web Service's SQS.
37
37
  email:
38
38
  - jim@jimsmithdesign.com