lifeboat 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/Gemfile +1 -1
  2. data/Gemfile.lock +1 -1
  3. data/README.md +20 -15
  4. data/VERSION +1 -1
  5. data/lifeboat.gemspec +4 -4
  6. metadata +5 -7
data/Gemfile CHANGED
@@ -8,7 +8,7 @@ source "http://rubygems.org"
8
8
  #
9
9
  gem 'right_aws', '>= 1.10.0'
10
10
  gem 'activerecord', '>=2.1.2'
11
- gem 'mysql', '2.8.1'
11
+ gem 'mysql'
12
12
 
13
13
  group :development do
14
14
  gem "rspec", "2.5.0"
data/Gemfile.lock CHANGED
@@ -37,7 +37,7 @@ DEPENDENCIES
37
37
  autotest
38
38
  bundler (~> 1.0.0)
39
39
  jeweler (~> 1.5.2)
40
- mysql (= 2.8.1)
40
+ mysql
41
41
  rcov
42
42
  right_aws (>= 1.10.0)
43
43
  rspec (= 2.5.0)
data/README.md CHANGED
@@ -44,29 +44,34 @@ Quick Start
44
44
 
45
45
  Include Lifeboat in your model class:
46
46
 
47
- class AnyObject < ActiveRecord::Base
48
- has_lifeboat
49
- end
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
- class XMLObject < ActiveRecord::Base
55
- has_lifeboat :format => :xml
56
- end
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
- ** We will then automatically create queue messages each time any instance of the model class is created, updated, or deleted. **
62
+ production:
63
+ access_key_id: YOURSECRETACCESSID
64
+ secret_access_key: YOUR-secRE/TACCe\ssKEy
60
65
 
61
- How did we named the queues
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.0
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.0"
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>, ["= 2.8.1"])
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>, ["= 2.8.1"])
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>, ["= 2.8.1"])
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
- - 0
9
- version: 0.6.0
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
- - 2
56
- - 8
57
- - 1
58
- version: 2.8.1
55
+ - 0
56
+ version: "0"
59
57
  requirement: *id003
60
58
  name: mysql
61
59
  prerelease: false