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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7593091ddf6b7678b721fb4e52ab991e08299d5a
4
- data.tar.gz: 791f39b51753b05cf68a7506ad059dc17e44193f
3
+ metadata.gz: 110369476f565253c6a81d6bf8b1a93f3757042f
4
+ data.tar.gz: 4200110c0597b3579f6f046db0981630f0d5abcf
5
5
  SHA512:
6
- metadata.gz: 456e19fe8e5abb3496d5f9139574d6ac337131cdcc87f3f82b82550ebeac3dac59d41fe3c84c525307c4122dcd1609ca336226a3139c165f3346f35e0c333dd0
7
- data.tar.gz: d24ef181af37e4bcfcf0f91427f255461c8910dedf736baf764637e3bff7211356023bd55af57407ed29479bb14ed47e8b9a6f8d2088b02f3450d0769680e9da
6
+ metadata.gz: 4447d7be586ed19904b7a4a206515df3009673637a65561361beb2883687722c2bd3733d0010f8d1ef1faa8a92e599ba5276f3618b0b1fdb03f15abfb1e1d7cc
7
+ data.tar.gz: 022a38149ce80d75da06f016d460a393cf08f7949f0f10deebccdf0165c736fcc0e30d1862496cee7b2d94290c591d33459a8a93f32f50acdbd4cff9741b6f59
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Rdm
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -20,4 +20,4 @@ Gem::Specification.new do |spec|
20
20
  spec.add_development_dependency "rake"
21
21
  spec.add_development_dependency "rspec"
22
22
  spec.add_dependency "activesupport"
23
- end
23
+ end
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.2
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-21 00:00:00.000000000 Z
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.2.2
140
+ rubygems_version: 2.4.3
141
141
  signing_key:
142
142
  specification_version: 4
143
143
  summary: Ruby Dependency Manager