lifeboat 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.md +8 -1
  2. data/VERSION +1 -1
  3. data/lib/lifeboat.rb +4 -1
  4. data/lifeboat.gemspec +1 -1
  5. metadata +3 -3
data/README.md CHANGED
@@ -42,17 +42,24 @@ Include the gem in your Gemfile:
42
42
  Quick Start
43
43
  -----------
44
44
 
45
+ Include Lifeboat in your model class:
46
+
45
47
  class AnyObject < ActiveRecord::Base
46
48
  include LifeBoat
47
49
  end
48
50
 
51
+ Provide your AWS credentials in config/aws.yml
52
+
53
+ access_key_id: YOURSECRETACCESSID
54
+ secret_access_key: YOUR-secRE/TACCe\ssKEy
55
+
49
56
 
50
57
  ** We will then automatically create queue messages each time any instance of the model class is created, updated, or deleted. **
51
58
 
52
59
  How did we named the queues
53
60
  ---------------------------
54
61
 
55
- ** ction_model **
62
+ ** action_model **
56
63
 
57
64
  ** Where: ** action can be: create, update and delete
58
65
  ** Where: ** model can be the name of any model we include lifeboat on.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.2.0
data/lib/lifeboat.rb CHANGED
@@ -5,9 +5,12 @@ require 'yaml'
5
5
 
6
6
  class AWS
7
7
  def self.root
8
- if Rails.root
8
+ if Rails.version == "2.1.2"
9
9
  YAML::load(IO.read(Rails.root + "/config/aws.yml"))
10
+ elsif Rails.version == "2.3.8"
11
+ YAML::load(IO.read(Rails.root + "config/aws.yml"))
10
12
  else
13
+ raise "Email ivan@bakedweb.net with this error"
11
14
  YAML::load(IO.read(File.dirname(__FILE__) + '/../config/aws.yml'))
12
15
  end
13
16
  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.1.2"
8
+ s.version = "0.2.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: 31
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
9
8
  - 2
10
- version: 0.1.2
9
+ - 0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ivan Acosta-Rubio