rdm 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rdm/config_manager.rb +4 -2
- data/lib/rdm/version.rb +1 -1
- data/rdm.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 110369476f565253c6a81d6bf8b1a93f3757042f
|
4
|
+
data.tar.gz: 4200110c0597b3579f6f046db0981630f0d5abcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4447d7be586ed19904b7a4a206515df3009673637a65561361beb2883687722c2bd3733d0010f8d1ef1faa8a92e599ba5276f3618b0b1fdb03f15abfb1e1d7cc
|
7
|
+
data.tar.gz: 022a38149ce80d75da06f016d460a393cf08f7949f0f10deebccdf0165c736fcc0e30d1862496cee7b2d94290c591d33459a8a93f32f50acdbd4cff9741b6f59
|
data/lib/rdm/config_manager.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
require 'yaml'
|
2
|
+
require 'erb'
|
3
|
+
|
2
4
|
class Rdm::ConfigManager
|
3
5
|
|
4
6
|
# Update configuration based on given config file
|
@@ -21,7 +23,7 @@ class Rdm::ConfigManager
|
|
21
23
|
# @return root scope [Rdm::ConfigScope] Updated root scope
|
22
24
|
def update_using_file(path, raise_if_missing: true)
|
23
25
|
if File.exists?(path)
|
24
|
-
compiled_file = ERB.new(File.read(path)).result
|
26
|
+
compiled_file = ::ERB.new(File.read(path)).result
|
25
27
|
hash = YAML.load(compiled_file)
|
26
28
|
update_using_hash(hash)
|
27
29
|
elsif raise_if_missing
|
@@ -63,4 +65,4 @@ class Rdm::ConfigManager
|
|
63
65
|
def root_scope
|
64
66
|
@root_scope ||= Rdm::ConfigScope.new
|
65
67
|
end
|
66
|
-
end
|
68
|
+
end
|
data/lib/rdm/version.rb
CHANGED
data/rdm.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Droid Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
137
|
version: '0'
|
138
138
|
requirements: []
|
139
139
|
rubyforge_project:
|
140
|
-
rubygems_version: 2.
|
140
|
+
rubygems_version: 2.4.3
|
141
141
|
signing_key:
|
142
142
|
specification_version: 4
|
143
143
|
summary: Ruby Dependency Manager
|