lifeboat 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/lifeboat.rb +6 -6
  3. data/lifeboat.gemspec +1 -1
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
data/lib/lifeboat.rb CHANGED
@@ -64,15 +64,15 @@ module LifeBoat
64
64
  @cue = RightAws::SqsGen2.new(Credentials.key, Credentials.secret)
65
65
  end
66
66
 
67
- begin
68
- [:create, :update, :destroy ].each do |action|
69
- define_method(action.to_s + "_lifeboat") do
67
+ [:create, :update, :destroy ].each do |action|
68
+ define_method(action.to_s + "_lifeboat") do
69
+ begin
70
70
  q = RightAws::SqsGen2::Queue.create(@cue, action.to_s+"_"+ self.class.to_s.downcase, true)
71
71
  q.send_message(self.attributes.to_json)
72
+ rescue RightAws::AwsError => e
73
+ puts "LifeBoat RightAws::AwsError TIMEOUT"
74
+ puts e
72
75
  end
73
76
  end
74
- rescue RightAws::AwsError
75
- puts "LifeBoat RightAws::AwsError TIMEOUT"
76
77
  end
77
-
78
78
  end
data/lifeboat.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{lifeboat}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ivan Acosta-Rubio"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lifeboat
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ivan Acosta-Rubio