txgh 6.7.1 → 6.8.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: 6aeeb71926f2cdd5890f98e3feb30735b50a2b9f37fb417ca7cbd32de6180115
4
- data.tar.gz: 8a413d76f06d03ce54610e77753dc2f0e2bec2d4da6231c7344d4c70a502c39a
3
+ metadata.gz: cb7acabd36a05473ecc43f546b2182cbd9e5f2fc1acd85bf1198056c9b2e15d2
4
+ data.tar.gz: ebdc29e94fea7746a431877bd8278022bafb18731b7ca8b4f9572df2f35cc517
5
5
  SHA512:
6
- metadata.gz: 0b7c68c5f6cb0159aa85c2e4362a8896e14773a45d44755e1d4518c7dc047892cf9dbc2cdf3bbd2009c131422021840d6afdcab1763d1550a4d9ff587da9374d
7
- data.tar.gz: a539408fb9e14065750763d1fb0432826f8bf3837695be7261b6cd4b403de0c2a35235a5cf58d06215294a90bc2ae3927e92090d42a11b2e167a4d3fd8a933e5
6
+ metadata.gz: 012c8b283d3c44b87ac909740cab8af679c63cb6edbedc1e457b685e557c324d8cf64177de84d9bda0a70f8cb05e2414ebcc0fcc36a3cb567cf8b10d7baa6929
7
+ data.tar.gz: 5fdaad9449f84fdfb8c5f88907ff3ad0e7809c1b94b631135f00508afac9ab40c69e39d48cc1c851c9cc9957f1b8684a5b714dce08bc9cc969ef6a869c890886
@@ -1,3 +1,5 @@
1
+ require 'erb'
2
+
1
3
  module Txgh
2
4
  module Config
3
5
  module Providers
@@ -10,7 +12,7 @@ module Txgh
10
12
  end
11
13
 
12
14
  def load(payload, parser, options = {})
13
- parser.load_file(payload)
15
+ parser.load(ERB.new(File.read(payload)).result(binding))
14
16
  end
15
17
 
16
18
  def scheme
@@ -1,3 +1,5 @@
1
+ require 'erb'
2
+
1
3
  module Txgh
2
4
  module Config
3
5
  module Providers
@@ -10,7 +12,7 @@ module Txgh
10
12
  end
11
13
 
12
14
  def load(payload, parser, options = {})
13
- parser.load(payload)
15
+ parser.load(ERB.new(payload).result(binding))
14
16
  end
15
17
 
16
18
  def scheme
data/lib/txgh/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Txgh
2
- VERSION = '6.7.1'
2
+ VERSION = '6.8.0'
3
3
  end
@@ -15,9 +15,9 @@ describe TxManager do
15
15
  it 'loads tx config from the given file' do
16
16
  path = 'file://path/to/tx_config'
17
17
  project_config.merge!('tx_config' => path)
18
- expect(TxConfig).to receive(:load_file).with('path/to/tx_config').and_return(:tx_config)
18
+ expect(File).to receive(:read).with('path/to/tx_config').and_return('{}')
19
19
  config = TxManager.tx_config(project, repo)
20
- expect(config).to eq(:tx_config)
20
+ expect(config).to be_a(TxConfig)
21
21
  end
22
22
 
23
23
  context 'with git-based config' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: txgh
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.7.1
4
+ version: 6.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Jackowski
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-01-31 00:00:00.000000000 Z
12
+ date: 2019-02-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: abroad