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 +4 -4
- data/README.md +1 -1
- data/lib/monorm/version.rb +1 -1
- data/lib/monorm.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70e55e28e97f452652e044fbe3b22b9036b5d370
|
4
|
+
data.tar.gz: f5928c6292f3b27e2357b9e122402de48919fd0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/monorm/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|