lifeboat 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/lifeboat.rb +1 -1
- data/lifeboat.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.5.0
|
data/lib/lifeboat.rb
CHANGED
|
@@ -46,7 +46,6 @@ module LifeBoat
|
|
|
46
46
|
def has_lifeboat(options={})
|
|
47
47
|
include LifeBoat::Queues
|
|
48
48
|
|
|
49
|
-
return unless (RAILS_ENV == "production") or (RAILS_ENV == "testing")
|
|
50
49
|
|
|
51
50
|
|
|
52
51
|
if options[:format] == :xml
|
|
@@ -58,6 +57,7 @@ module LifeBoat
|
|
|
58
57
|
[:create, :update, :destroy ].each do |action|
|
|
59
58
|
define_method(action.to_s + "_lifeboat") do
|
|
60
59
|
begin
|
|
60
|
+
return unless (RAILS_ENV == "production") or (RAILS_ENV == "testing")
|
|
61
61
|
@cue = RightAws::SqsGen2.new(Credentials.key, Credentials.secret)
|
|
62
62
|
queue_name = action.to_s+"_"+ self.class.to_s.downcase + "_" + RAILS_ENV
|
|
63
63
|
q = RightAws::SqsGen2::Queue.create(@cue, queue_name, true, 1000)
|
data/lifeboat.gemspec
CHANGED
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:
|
|
4
|
+
hash: 11
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
8
|
+
- 5
|
|
9
9
|
- 0
|
|
10
|
-
version: 0.
|
|
10
|
+
version: 0.5.0
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Ivan Acosta-Rubio
|