monorm 0.1.0 → 0.1.1

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: d7664f3cda4ded213163e60352cc72779a217c85
4
- data.tar.gz: 5360e29578d4474a74365697ae4ea1e169aee84a
3
+ metadata.gz: 70e55e28e97f452652e044fbe3b22b9036b5d370
4
+ data.tar.gz: f5928c6292f3b27e2357b9e122402de48919fd0b
5
5
  SHA512:
6
- metadata.gz: df145d1b83b37bcefb642ef344a8ad7902024b3a17f7fa85249fa0a45bfdffa9a6a8b659442a488e88974493fad61e845ee598a1c48368d3c568e284e74f0e2b
7
- data.tar.gz: cf5119a729ce3531438c72bddf782a1a0d6a345b939a649ca09944263289f99e251b60476d0b074270969afd628382420eaf7cd9efea400446baa956c3480978
6
+ metadata.gz: de45839dc3f0e8a65a9974eb911c4fe738d8815d9e69ba274df2350d766a8aeb7d5bf5b1e08cac6acff8e8bd01bb37a6375e1c48f82dc3c6dc8420544a212196
7
+ data.tar.gz: 52329bbb20d82f1e17301ab88c3f7124566cc60edb707af3a23699b7f74be44371142123779d6d663565f153df39b3aadcb6bc3dc4ed625296dc5d18d49c8368
data/README.md CHANGED
@@ -33,7 +33,7 @@ MonoRM was designed to work with several configuration files to allow for user c
33
33
  The following files are required:
34
34
  - config folder
35
35
  - database.yml - This file contains relevant configuration for the database
36
- - boot.rb - This file (name not enforced) should call `MonoRM::DBInitializer.load_db_adapter`, which loads the appropriate database adapter file in the gem.
36
+ - boot.rb - This file (name not enforced) should define a constant named `PROJECT_ROOT_DIR` to represent the root directory of the _project_. It should also call `MonoRM::DBInitializer.load_db_adapter`, which loads the appropriate database adapter file in the gem.
37
37
  - model_loader.rb - This file (optional, but recommended), that loads all the models in the model directory that will be used in the application.
38
38
  - bin folder
39
39
  - There should be a file that requires `bundler/setup` and your choice of Ruby console to interact with the application, as well as the boot file from the config folder. Be sure to run the initialization methods from boot before startup, and then start the console
@@ -1,3 +1,3 @@
1
1
  module MonoRM
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/monorm.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'yaml'
2
+ require 'erb'
2
3
 
3
4
  require "monorm/version"
4
5
 
@@ -34,8 +35,8 @@ module MonoRM
34
35
  def self.monorm
35
36
  File.join lib, 'monorm'
36
37
  end
37
-
38
- DB_CONFIG = YAML.load(File.open("#{self.db_config}"))
38
+ DB_CONFIG = YAML.load ERB.new(IO.read("#{self.db_config}")).result
39
+ # DB_CONFIG = YAML.load(File.open("#{self.db_config}"))
39
40
 
40
41
  class MonoRM::DBInitializer
41
42
  def self.load_db_adapter
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monorm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Chilton
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-27 00:00:00.000000000 Z
11
+ date: 2017-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler