lifeboat 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Gemfile.lock +1 -1
- data/README.md +20 -15
- data/VERSION +1 -1
- data/lifeboat.gemspec +4 -4
- metadata +5 -7
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -44,29 +44,34 @@ Quick Start
|
|
44
44
|
|
45
45
|
Include Lifeboat in your model class:
|
46
46
|
|
47
|
-
|
48
|
-
|
49
|
-
|
47
|
+
class AnyObject < ActiveRecord::Base
|
48
|
+
include LifeBoat
|
49
|
+
end
|
50
50
|
|
51
51
|
This will serialize your active record object to json and send it to the
|
52
52
|
queue automatically. Moreover, we do XML too.
|
53
53
|
|
54
|
-
|
55
|
-
|
56
|
-
|
54
|
+
test:
|
55
|
+
access_key_id: YOURSECRETACCESSID
|
56
|
+
secret_access_key: YOUR-secRE/TACCe\ssKEy
|
57
57
|
|
58
|
+
development:
|
59
|
+
access_key_id: YOURSECRETACCESSID
|
60
|
+
secret_access_key: YOUR-secRE/TACCe\ssKEy
|
58
61
|
|
59
|
-
|
62
|
+
production:
|
63
|
+
access_key_id: YOURSECRETACCESSID
|
64
|
+
secret_access_key: YOUR-secRE/TACCe\ssKEy
|
60
65
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
** action_model **
|
65
|
-
|
66
|
-
** Where: ** action can be: create, update and delete
|
67
|
-
** Where: ** model can be the name of any model we include lifeboat on.
|
66
|
+
Lifeboat will then automatically create queue messages each time any instance of the model
|
67
|
+
class is created, updated, or deleted.
|
68
68
|
|
69
|
+
Naming conventions for Lifeboat message queues
|
70
|
+
----------------------------------------------
|
69
71
|
|
72
|
+
Lifeboat will generate three different message queues for each model that you configure
|
73
|
+
it for: create_MODEL, update_MODEL, and delete_MODEL. For example, if your model is named
|
74
|
+
Sale, then Lifeboat will generate message queues named create_sale, update_sale, and delete_sale.
|
70
75
|
|
71
76
|
Hot-Swap Slaves
|
72
77
|
---------------
|
@@ -106,4 +111,4 @@ Buit by Ivan.
|
|
106
111
|
|
107
112
|
Designed by Ivan & Ryan.
|
108
113
|
|
109
|
-
Inspired by Amazon. (And not in a good way.)
|
114
|
+
Inspired by Amazon. ([And not in a good way.](http://www.businessinsider.com/amazon-lost-data-2011-4))
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.1
|
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.6.
|
8
|
+
s.version = "0.6.1"
|
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"]
|
@@ -48,7 +48,7 @@ Gem::Specification.new do |s|
|
|
48
48
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
49
49
|
s.add_runtime_dependency(%q<right_aws>, [">= 1.10.0"])
|
50
50
|
s.add_runtime_dependency(%q<activerecord>, [">= 2.1.2"])
|
51
|
-
s.add_runtime_dependency(%q<mysql>, ["
|
51
|
+
s.add_runtime_dependency(%q<mysql>, [">= 0"])
|
52
52
|
s.add_development_dependency(%q<rspec>, ["= 2.5.0"])
|
53
53
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
54
54
|
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
@@ -58,7 +58,7 @@ Gem::Specification.new do |s|
|
|
58
58
|
else
|
59
59
|
s.add_dependency(%q<right_aws>, [">= 1.10.0"])
|
60
60
|
s.add_dependency(%q<activerecord>, [">= 2.1.2"])
|
61
|
-
s.add_dependency(%q<mysql>, ["
|
61
|
+
s.add_dependency(%q<mysql>, [">= 0"])
|
62
62
|
s.add_dependency(%q<rspec>, ["= 2.5.0"])
|
63
63
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
64
64
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
@@ -69,7 +69,7 @@ Gem::Specification.new do |s|
|
|
69
69
|
else
|
70
70
|
s.add_dependency(%q<right_aws>, [">= 1.10.0"])
|
71
71
|
s.add_dependency(%q<activerecord>, [">= 2.1.2"])
|
72
|
-
s.add_dependency(%q<mysql>, ["
|
72
|
+
s.add_dependency(%q<mysql>, [">= 0"])
|
73
73
|
s.add_dependency(%q<rspec>, ["= 2.5.0"])
|
74
74
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
75
75
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 6
|
8
|
-
-
|
9
|
-
version: 0.6.
|
8
|
+
- 1
|
9
|
+
version: 0.6.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Ivan Acosta-Rubio
|
@@ -49,13 +49,11 @@ dependencies:
|
|
49
49
|
type: :runtime
|
50
50
|
version_requirements: &id003 !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
segments:
|
55
|
-
-
|
56
|
-
|
57
|
-
- 1
|
58
|
-
version: 2.8.1
|
55
|
+
- 0
|
56
|
+
version: "0"
|
59
57
|
requirement: *id003
|
60
58
|
name: mysql
|
61
59
|
prerelease: false
|