txbr 2.0.2 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/txbr/config.rb +7 -2
- data/lib/txbr/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0af5a82fdcc638eeaee500df97b3efc439ff1e33ca7456a2821b17c6fa034371
|
4
|
+
data.tar.gz: 2eafcee938226f9b76d30a7b4c4f5fcc8af2729acef66128d6b9a470d6d5c1f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8240b01efe2d044bd2e046969d31c95b737e3ef834d3dd58b6a3a8976e5ceccb010044be7ab225653716c7913f5ebe79d9013270a5d08a2efd48bb415187ba82
|
7
|
+
data.tar.gz: 9995936f91b74e61542d9fa2b56c8231e82f1a945685c39d50974d945215604b9a01b7deb58598354a81c1be74db10e388b2ac4c05aa8a648df1391b892b2842
|
data/lib/txbr/config.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'erb'
|
1
2
|
require 'yaml'
|
2
3
|
|
3
4
|
module Txbr
|
@@ -29,11 +30,15 @@ module Txbr
|
|
29
30
|
end
|
30
31
|
|
31
32
|
def load_file(payload)
|
32
|
-
deep_symbolize_keys(
|
33
|
+
deep_symbolize_keys(parse(File.read(payload)))
|
33
34
|
end
|
34
35
|
|
35
36
|
def load_raw(payload)
|
36
|
-
deep_symbolize_keys(
|
37
|
+
deep_symbolize_keys(parse(payload))
|
38
|
+
end
|
39
|
+
|
40
|
+
def parse(str)
|
41
|
+
YAML.load(ERB.new(str).result(binding))
|
37
42
|
end
|
38
43
|
|
39
44
|
def deep_symbolize_keys(obj)
|
data/lib/txbr/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: txbr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cameron Dutro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: abroad
|