rails_g_database 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90fde1cd4c6959ca3b581503579c72b0b6ecc94c
4
- data.tar.gz: c58648c338475da3841202dd8783e530a72f3b40
3
+ metadata.gz: 3f6e5cbf0a8a50f3b080f05efce20389b20084ae
4
+ data.tar.gz: 46a9c26694d15526e14b91a47ec7c03795458a2e
5
5
  SHA512:
6
- metadata.gz: 863551e9a47bab45b075b1435785b9834ae038c1614b31317cc9838a7d742308ce7b5fba166d0e6b7402176cdfc9f9a1e423a67c0e26f0c5b400351a1ea42126
7
- data.tar.gz: dfefa8a1c3bdd4c13484856e2ea69676b08b7333fd25defa7777d21736a30e1ee21dc0413ec91dfeb98d922cf05077d05573acdcc3a7b175a3b86c515c9a7c74
6
+ metadata.gz: ee22d5701f0827ebc12cff74ea7e4910b201dc5a78d5a800951f6a8b0dc070a84304cdfc143b0299b258c0bbc5e518a6dc100e3f6e9de77e3cef4f4729f32071
7
+ data.tar.gz: 02ce7227d09919b7f385544676b46c99bb74265b14f1704e05c0f58d43f3181714cb4150ad412324ac7685adf62af662ce3f5f03f4ee327c0afe7882470c3d9d
@@ -9,7 +9,7 @@ module <%= class_name %>
9
9
  # since this class is only used to add custom config for AR
10
10
  self.abstract_class = true
11
11
 
12
- databases = YAML::load(IO.read('config/database_<%= file_name %>.yml'))
12
+ databases = YAML::load(ERB.new(File.read('config/database_<%= file_name %>.yml')).result)
13
13
  establish_connection(databases[Rails.env])
14
14
 
15
15
  end
@@ -1,3 +1,3 @@
1
1
  module RailsGDatabase
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_g_database
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - redrick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-12 00:00:00.000000000 Z
11
+ date: 2013-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails