lifeboat 0.1.2 → 0.2.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/README.md +8 -1
- data/VERSION +1 -1
- data/lib/lifeboat.rb +4 -1
- data/lifeboat.gemspec +1 -1
- 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
|
-
**
|
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
|
+
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.
|
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
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: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
- 1
|
9
8
|
- 2
|
10
|
-
|
9
|
+
- 0
|
10
|
+
version: 0.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ivan Acosta-Rubio
|