mack-orm_common 0.5.1 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ module Mack
16
16
  end
17
17
 
18
18
  def db_directory
19
- File.join(MACK_ROOT, "db")
19
+ File.join(Mack::Configuration.root, "db")
20
20
  end
21
21
 
22
22
  def migrations_directory
@@ -1,3 +1,13 @@
1
1
  require File.join(File.dirname(__FILE__), 'genosaurus_helpers')
2
2
  require File.join(File.dirname(__FILE__), 'model_column')
3
3
  require File.join(File.dirname(__FILE__), 'errors')
4
+
5
+ module Mack
6
+ module Configuration
7
+
8
+ def self.database_configurations
9
+ YAML::load(Erubis::Eruby.new(IO.read(File.join(Mack::Configuration.config_directory, "database.yml"))).result)
10
+ end
11
+
12
+ end # Configuration
13
+ end # Mack
@@ -1,6 +1,6 @@
1
1
  require File.dirname(__FILE__) + '/test_helper.rb'
2
2
 
3
- class Mack-ormCommonTest < Test::Unit::TestCase
3
+ class MackOrmCommonTest < Test::Unit::TestCase
4
4
 
5
5
  def setup
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mack-orm_common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - markbates
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-05-04 00:00:00 -04:00
12
+ date: 2008-05-21 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15