lifeboat 0.4.0 → 0.5.0

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 +1 -1
  3. data/lifeboat.gemspec +1 -1
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{lifeboat}
8
- s.version = "0.4.0"
8
+ s.version = "0.5.0"
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: 15
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 4
8
+ - 5
9
9
  - 0
10
- version: 0.4.0
10
+ version: 0.5.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ivan Acosta-Rubio