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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f8dacbcd6becf58508ff0fe46d7c18b52ee23a02681a7edae00f544a615f6bc
4
- data.tar.gz: 8163181ccc35630717ed02b37cefd1c362f33f5eb2103bdd29102859f76e57b7
3
+ metadata.gz: 0af5a82fdcc638eeaee500df97b3efc439ff1e33ca7456a2821b17c6fa034371
4
+ data.tar.gz: 2eafcee938226f9b76d30a7b4c4f5fcc8af2729acef66128d6b9a470d6d5c1f8
5
5
  SHA512:
6
- metadata.gz: dedf015e174c01ea0cdc06f7aa1bb61e027511a4a48cd4d17593978acd94233d846b65931841cce0675c4b4467f63e59d87825f964209c9926f55094b5a99f35
7
- data.tar.gz: 19335aa18eff54773f99c34240ad36a880f29cc2bef113bbbbe0d1b5106d4ae0174c66df63e69bc631e60f6d7a48c319b191d392306a75c888d019453c4a6280
6
+ metadata.gz: 8240b01efe2d044bd2e046969d31c95b737e3ef834d3dd58b6a3a8976e5ceccb010044be7ab225653716c7913f5ebe79d9013270a5d08a2efd48bb415187ba82
7
+ data.tar.gz: 9995936f91b74e61542d9fa2b56c8231e82f1a945685c39d50974d945215604b9a01b7deb58598354a81c1be74db10e388b2ac4c05aa8a648df1391b892b2842
@@ -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(YAML.load_file(payload))
33
+ deep_symbolize_keys(parse(File.read(payload)))
33
34
  end
34
35
 
35
36
  def load_raw(payload)
36
- deep_symbolize_keys(YAML.load(payload))
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)
@@ -1,3 +1,3 @@
1
1
  module Txbr
2
- VERSION = '2.0.2'
2
+ VERSION = '2.1.0'
3
3
  end
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.2
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-01-18 00:00:00.000000000 Z
11
+ date: 2019-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: abroad