utilio 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -2
- data/lib/utilio/database.rb +2 -2
- data/lib/utilio/version.rb +1 -1
- data/spec/utilio/database_spec.rb +3 -3
- data/utilio.gemspec +1 -1
- metadata +4 -5
data/Gemfile.lock
CHANGED
data/lib/utilio/database.rb
CHANGED
data/lib/utilio/version.rb
CHANGED
@@ -10,7 +10,7 @@ describe Utilio::Database do
|
|
10
10
|
|
11
11
|
it "should allow you to load a db configuration" do
|
12
12
|
lambda {
|
13
|
-
Utilio::Database.config(file
|
13
|
+
Utilio::Database.config(:file => config_file).should_not be_nil
|
14
14
|
}.should_not raise_error
|
15
15
|
end
|
16
16
|
|
@@ -20,11 +20,11 @@ describe Utilio::Database do
|
|
20
20
|
|
21
21
|
it "should load the correct env data" do
|
22
22
|
%w( development test production ).each do |env|
|
23
|
-
Utilio::Database.config(environment
|
23
|
+
Utilio::Database.config(:environment => env)['database'].should == env
|
24
24
|
end
|
25
25
|
|
26
26
|
%w( bogus not_there ).each do |env|
|
27
|
-
Utilio::Database.config(environment
|
27
|
+
Utilio::Database.config(:environment => env).should be_nil
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
data/utilio.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.rubyforge_project = 'utilio'
|
17
17
|
|
18
18
|
s.add_development_dependency 'bundler', '>= 1.0.0.rc.5'
|
19
|
-
s.add_development_dependency 'rspec', '>= 2.0.0.
|
19
|
+
s.add_development_dependency 'rspec', '>= 2.0.0.rc'
|
20
20
|
|
21
21
|
s.files = `git ls-files`.split("\n")
|
22
22
|
s.require_path = 'lib'
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 4
|
9
|
+
version: 0.0.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- BJ Neilsen
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-10-
|
18
|
+
date: 2010-10-07 00:00:00 -06:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -47,9 +47,8 @@ dependencies:
|
|
47
47
|
- 2
|
48
48
|
- 0
|
49
49
|
- 0
|
50
|
-
- beta
|
51
50
|
- rc
|
52
|
-
version: 2.0.0.
|
51
|
+
version: 2.0.0.rc
|
53
52
|
type: :development
|
54
53
|
version_requirements: *id002
|
55
54
|
description: A general collection of application utilities for dealing with paths and active_record and security
|