lifeboat 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/Gemfile.lock +2 -0
- data/VERSION +1 -1
- data/lib/lifeboat.rb +14 -5
- data/lifeboat.gemspec +6 -3
- metadata +46 -32
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -10,6 +10,7 @@ GEM
|
|
10
10
|
bundler (~> 1.0.0)
|
11
11
|
git (>= 1.2.5)
|
12
12
|
rake
|
13
|
+
mysql (2.8.1)
|
13
14
|
rake (0.8.7)
|
14
15
|
rcov (0.9.9)
|
15
16
|
right_aws (1.10.0)
|
@@ -32,6 +33,7 @@ DEPENDENCIES
|
|
32
33
|
activerecord (>= 2.1.2)
|
33
34
|
bundler (~> 1.0.0)
|
34
35
|
jeweler (~> 1.5.2)
|
36
|
+
mysql (= 2.8.1)
|
35
37
|
rcov
|
36
38
|
right_aws (>= 1.10.0)
|
37
39
|
rspec (= 2.5.0)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/lib/lifeboat.rb
CHANGED
@@ -2,8 +2,13 @@ require 'rubygems'
|
|
2
2
|
require 'right_aws'
|
3
3
|
require 'active_record'
|
4
4
|
require 'yaml'
|
5
|
+
require 'fileutils'
|
6
|
+
require 'thread'
|
5
7
|
|
6
8
|
class AWS
|
9
|
+
|
10
|
+
# DUPLICATION IS RISING ON THE self.root METHOD
|
11
|
+
# MACHETE
|
7
12
|
def self.root
|
8
13
|
if Rails.version == "2.1.2"
|
9
14
|
YAML::load(IO.read(Rails.root + "/config/aws.yml"))
|
@@ -26,11 +31,15 @@ class Credentials
|
|
26
31
|
# TODO: RESEARCH HOW TO REFACTOR OUT
|
27
32
|
end
|
28
33
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
+
begin
|
35
|
+
def self.key
|
36
|
+
AWS.root[RAILS_ENV]['key']
|
37
|
+
end
|
38
|
+
def self.secret
|
39
|
+
AWS.root[RAILS_ENV]['secret']
|
40
|
+
end
|
41
|
+
rescue RightAws::AwsError
|
42
|
+
puts"LIFEBOAT : AWS Access Key Id needs a subscription for the service."
|
34
43
|
end
|
35
44
|
end
|
36
45
|
|
data/lifeboat.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{lifeboat}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.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"]
|
12
|
-
s.date = %q{2011-04
|
12
|
+
s.date = %q{2011-05-04}
|
13
13
|
s.description = %q{ }
|
14
14
|
s.email = %q{ivan@bakedweb.net}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
|
|
34
34
|
s.homepage = %q{http://github.com/ivanacostarubio/lifeboat}
|
35
35
|
s.licenses = ["MIT"]
|
36
36
|
s.require_paths = ["lib"]
|
37
|
-
s.rubygems_version = %q{1.
|
37
|
+
s.rubygems_version = %q{1.7.2}
|
38
38
|
s.summary = %q{sends messages to SQS}
|
39
39
|
s.test_files = [
|
40
40
|
"spec/lifeboat_spec.rb"
|
@@ -46,6 +46,7 @@ Gem::Specification.new do |s|
|
|
46
46
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
47
47
|
s.add_runtime_dependency(%q<right_aws>, [">= 1.10.0"])
|
48
48
|
s.add_runtime_dependency(%q<activerecord>, [">= 2.1.2"])
|
49
|
+
s.add_runtime_dependency(%q<mysql>, ["= 2.8.1"])
|
49
50
|
s.add_development_dependency(%q<rspec>, ["= 2.5.0"])
|
50
51
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
51
52
|
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
@@ -54,6 +55,7 @@ Gem::Specification.new do |s|
|
|
54
55
|
else
|
55
56
|
s.add_dependency(%q<right_aws>, [">= 1.10.0"])
|
56
57
|
s.add_dependency(%q<activerecord>, [">= 2.1.2"])
|
58
|
+
s.add_dependency(%q<mysql>, ["= 2.8.1"])
|
57
59
|
s.add_dependency(%q<rspec>, ["= 2.5.0"])
|
58
60
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
59
61
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
@@ -63,6 +65,7 @@ Gem::Specification.new do |s|
|
|
63
65
|
else
|
64
66
|
s.add_dependency(%q<right_aws>, [">= 1.10.0"])
|
65
67
|
s.add_dependency(%q<activerecord>, [">= 2.1.2"])
|
68
|
+
s.add_dependency(%q<mysql>, ["= 2.8.1"])
|
66
69
|
s.add_dependency(%q<rspec>, ["= 2.5.0"])
|
67
70
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
68
71
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
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: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ivan Acosta-Rubio
|
@@ -15,11 +15,9 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-04
|
19
|
-
default_executable:
|
18
|
+
date: 2011-05-04 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
|
-
type: :runtime
|
23
21
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
22
|
none: false
|
25
23
|
requirements:
|
@@ -31,11 +29,11 @@ dependencies:
|
|
31
29
|
- 10
|
32
30
|
- 0
|
33
31
|
version: 1.10.0
|
34
|
-
requirement: *id001
|
35
|
-
prerelease: false
|
36
32
|
name: right_aws
|
37
|
-
|
33
|
+
prerelease: false
|
38
34
|
type: :runtime
|
35
|
+
requirement: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
39
37
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
38
|
none: false
|
41
39
|
requirements:
|
@@ -47,12 +45,28 @@ dependencies:
|
|
47
45
|
- 1
|
48
46
|
- 2
|
49
47
|
version: 2.1.2
|
50
|
-
requirement: *id002
|
51
|
-
prerelease: false
|
52
48
|
name: activerecord
|
49
|
+
prerelease: false
|
50
|
+
type: :runtime
|
51
|
+
requirement: *id002
|
53
52
|
- !ruby/object:Gem::Dependency
|
54
|
-
type: :development
|
55
53
|
version_requirements: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - "="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 45
|
59
|
+
segments:
|
60
|
+
- 2
|
61
|
+
- 8
|
62
|
+
- 1
|
63
|
+
version: 2.8.1
|
64
|
+
name: mysql
|
65
|
+
prerelease: false
|
66
|
+
type: :runtime
|
67
|
+
requirement: *id003
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
56
70
|
none: false
|
57
71
|
requirements:
|
58
72
|
- - "="
|
@@ -63,12 +77,12 @@ dependencies:
|
|
63
77
|
- 5
|
64
78
|
- 0
|
65
79
|
version: 2.5.0
|
66
|
-
requirement: *id003
|
67
|
-
prerelease: false
|
68
80
|
name: rspec
|
69
|
-
|
81
|
+
prerelease: false
|
70
82
|
type: :development
|
71
|
-
|
83
|
+
requirement: *id004
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
72
86
|
none: false
|
73
87
|
requirements:
|
74
88
|
- - ">="
|
@@ -77,12 +91,12 @@ dependencies:
|
|
77
91
|
segments:
|
78
92
|
- 0
|
79
93
|
version: "0"
|
80
|
-
requirement: *id004
|
81
|
-
prerelease: false
|
82
94
|
name: shoulda
|
83
|
-
|
95
|
+
prerelease: false
|
84
96
|
type: :development
|
85
|
-
|
97
|
+
requirement: *id005
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
86
100
|
none: false
|
87
101
|
requirements:
|
88
102
|
- - ~>
|
@@ -93,12 +107,12 @@ dependencies:
|
|
93
107
|
- 0
|
94
108
|
- 0
|
95
109
|
version: 1.0.0
|
96
|
-
requirement: *id005
|
97
|
-
prerelease: false
|
98
110
|
name: bundler
|
99
|
-
|
111
|
+
prerelease: false
|
100
112
|
type: :development
|
101
|
-
|
113
|
+
requirement: *id006
|
114
|
+
- !ruby/object:Gem::Dependency
|
115
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
102
116
|
none: false
|
103
117
|
requirements:
|
104
118
|
- - ~>
|
@@ -109,12 +123,12 @@ dependencies:
|
|
109
123
|
- 5
|
110
124
|
- 2
|
111
125
|
version: 1.5.2
|
112
|
-
requirement: *id006
|
113
|
-
prerelease: false
|
114
126
|
name: jeweler
|
115
|
-
|
127
|
+
prerelease: false
|
116
128
|
type: :development
|
117
|
-
|
129
|
+
requirement: *id007
|
130
|
+
- !ruby/object:Gem::Dependency
|
131
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
118
132
|
none: false
|
119
133
|
requirements:
|
120
134
|
- - ">="
|
@@ -123,9 +137,10 @@ dependencies:
|
|
123
137
|
segments:
|
124
138
|
- 0
|
125
139
|
version: "0"
|
126
|
-
requirement: *id007
|
127
|
-
prerelease: false
|
128
140
|
name: rcov
|
141
|
+
prerelease: false
|
142
|
+
type: :development
|
143
|
+
requirement: *id008
|
129
144
|
description: " "
|
130
145
|
email: ivan@bakedweb.net
|
131
146
|
executables: []
|
@@ -149,7 +164,6 @@ files:
|
|
149
164
|
- lifeboat.gemspec
|
150
165
|
- spec/lifeboat_spec.rb
|
151
166
|
- support/lifeboat.png
|
152
|
-
has_rdoc: true
|
153
167
|
homepage: http://github.com/ivanacostarubio/lifeboat
|
154
168
|
licenses:
|
155
169
|
- MIT
|
@@ -179,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
179
193
|
requirements: []
|
180
194
|
|
181
195
|
rubyforge_project:
|
182
|
-
rubygems_version: 1.
|
196
|
+
rubygems_version: 1.7.2
|
183
197
|
signing_key:
|
184
198
|
specification_version: 3
|
185
199
|
summary: sends messages to SQS
|