lifeboat 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -6,7 +6,7 @@ source "http://rubygems.org"
6
6
  # Add dependencies to develop your gem here.
7
7
  # Include everything needed to run rake, tests, features, etc.
8
8
  #
9
- gem 'right_aws', '1.10.0'
9
+ gem 'right_aws', '>= 1.10.0'
10
10
  gem 'activerecord', '2.1.2'
11
11
 
12
12
  group :development do
data/Gemfile.lock CHANGED
@@ -33,6 +33,6 @@ DEPENDENCIES
33
33
  bundler (~> 1.0.0)
34
34
  jeweler (~> 1.5.2)
35
35
  rcov
36
- right_aws (= 1.10.0)
36
+ right_aws (>= 1.10.0)
37
37
  rspec (= 2.5.0)
38
38
  shoulda
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
data/lib/lifeboat.rb CHANGED
@@ -3,6 +3,17 @@ require 'right_aws'
3
3
  require 'active_record'
4
4
  require 'yaml'
5
5
 
6
+ class AWS
7
+ def self.root
8
+ if Rails.root
9
+ YAML::load(IO.read(Rails.root + "/config/aws.yml"))
10
+ else
11
+ YAML::load(IO.read(File.dirname(__FILE__) + '/../config/aws.yml'))
12
+ end
13
+ end
14
+ end
15
+
16
+
6
17
 
7
18
  class Credentials
8
19
  def initialize
@@ -13,10 +24,10 @@ class Credentials
13
24
  end
14
25
 
15
26
  def self.key
16
- Rails.root['test']['key']
27
+ AWS.root['test']['key']
17
28
  end
18
29
  def self.secret
19
- Rails.root['test']['secret']
30
+ AWS.root['test']['secret']
20
31
  end
21
32
  end
22
33
 
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.1.0"
8
+ s.version = "0.1.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-27}
12
+ s.date = %q{2011-04-28}
13
13
  s.description = %q{ }
14
14
  s.email = %q{ivan@bakedweb.net}
15
15
  s.extra_rdoc_files = [
@@ -44,7 +44,7 @@ Gem::Specification.new do |s|
44
44
  s.specification_version = 3
45
45
 
46
46
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
47
- s.add_runtime_dependency(%q<right_aws>, ["= 1.10.0"])
47
+ s.add_runtime_dependency(%q<right_aws>, [">= 1.10.0"])
48
48
  s.add_runtime_dependency(%q<activerecord>, ["= 2.1.2"])
49
49
  s.add_development_dependency(%q<rspec>, ["= 2.5.0"])
50
50
  s.add_development_dependency(%q<shoulda>, [">= 0"])
@@ -52,7 +52,7 @@ Gem::Specification.new do |s|
52
52
  s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
53
53
  s.add_development_dependency(%q<rcov>, [">= 0"])
54
54
  else
55
- s.add_dependency(%q<right_aws>, ["= 1.10.0"])
55
+ s.add_dependency(%q<right_aws>, [">= 1.10.0"])
56
56
  s.add_dependency(%q<activerecord>, ["= 2.1.2"])
57
57
  s.add_dependency(%q<rspec>, ["= 2.5.0"])
58
58
  s.add_dependency(%q<shoulda>, [">= 0"])
@@ -61,7 +61,7 @@ Gem::Specification.new do |s|
61
61
  s.add_dependency(%q<rcov>, [">= 0"])
62
62
  end
63
63
  else
64
- s.add_dependency(%q<right_aws>, ["= 1.10.0"])
64
+ s.add_dependency(%q<right_aws>, [">= 1.10.0"])
65
65
  s.add_dependency(%q<activerecord>, ["= 2.1.2"])
66
66
  s.add_dependency(%q<rspec>, ["= 2.5.0"])
67
67
  s.add_dependency(%q<shoulda>, [">= 0"])
@@ -44,11 +44,10 @@ end
44
44
 
45
45
  class Rails
46
46
  def self.root
47
- @credentials = YAML::load(IO.read(File.dirname(__FILE__) + '/../config/aws.yml'))
47
+ ''
48
48
  end
49
49
  end
50
50
 
51
-
52
51
  describe "An simple object " do
53
52
  it "raises for not having callbacks" do
54
53
  lambda{ class BadModel ; include LifeBoat ; end }.should raise_error
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ivan Acosta-Rubio
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-27 00:00:00 -05:00
18
+ date: 2011-04-28 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -23,7 +23,7 @@ dependencies:
23
23
  version_requirements: &id001 !ruby/object:Gem::Requirement
24
24
  none: false
25
25
  requirements:
26
- - - "="
26
+ - - ">="
27
27
  - !ruby/object:Gem::Version
28
28
  hash: 63
29
29
  segments: