config_templates 1.1.0 → 1.1.1

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: e66c47dca61de3ce9695b3650d08c201bed7f1c1
4
- data.tar.gz: 6526fa9950e98b668a134af33f2e49098b2bfd75
3
+ metadata.gz: 4377efa926e6aa4db122568f3f249b25a53ee464
4
+ data.tar.gz: 7858dfa79ce81a7b0f0fbcb67cb0f042c752807f
5
5
  SHA512:
6
- metadata.gz: ac03e9885abf6a5bcc39b18630a7add0913fa4b04924fde186b86a651d970550fa6b65ca936fbabaee7361c0b2a0b27da98ae06c53b8da54b8ef612f9245a35e
7
- data.tar.gz: b2c4f27c584a088e5aa110752e5584fc983c9cf9911ebfedcf5cf74c7678704f9831b04e511766cf2b49d3c603ac8b326ab0c800f3299df41e093edb42c16779
6
+ metadata.gz: 5e799bf5d17e17dc54dd562042281a9202f70a9e426ac7baf88385593cfd5ab61306e754071d07e7ed23c70e290c900e8e4aea4eac8ddce2af3444f3b08abc87
7
+ data.tar.gz: 2f2cc113deea825c4b8f958393bd7c102966326978bd435a143c8c83068a44d4e2b22608cc9ad92e73f4bf413502548d4ac28132f4da6dc54ac8b7db1820ee26
data/lib/autoload.rb CHANGED
@@ -3,7 +3,7 @@ module ConfigTemplates
3
3
  module Criteria; end
4
4
  module Engines; end
5
5
  module Filesystem; end
6
- module Templates; end
6
+ module Models; end
7
7
  module Outputs; end
8
8
  module Repositories; end
9
9
  module Validators; end
@@ -1,3 +1,3 @@
1
1
  module ConfigTemplates
2
- VERSION = '1.1.0'.freeze
2
+ VERSION = '1.1.1'.freeze
3
3
  end
@@ -3,8 +3,8 @@ module Mocks
3
3
  class Test
4
4
  attr_accessor :result
5
5
 
6
- def print(renderer)
7
- @result = renderer.render
6
+ def print(component)
7
+ @result = component.render
8
8
  end
9
9
  end
10
10
  end
@@ -11,7 +11,7 @@ RSpec.describe ::ConfigTemplates do
11
11
 
12
12
  it 'renders selected template using configs and environment metadata' do
13
13
  compilation = ::ConfigTemplates::Models::Compilation.new
14
- compilation.reject(/.*/).select(Regexp.new 'kapacitor/config.erb').send_to(:test)
14
+ compilation.reject(/.*/).select(Regexp.new 'config.erb').send_to(:test)
15
15
  expect(@output_mock.result.strip).to eq('true')
16
16
  end
17
17
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: config_templates
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - g.ivanov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-01 00:00:00.000000000 Z
11
+ date: 2018-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -125,7 +125,6 @@ files:
125
125
  - lib/config_templates/validators/composite.rb
126
126
  - lib/config_templates/version.rb
127
127
  - lib/ioc_config.rb
128
- - spec/fixtures/dest/production/kapacitor/config
129
128
  - spec/fixtures/settings/settings.production.yml
130
129
  - spec/fixtures/settings/settings.yml
131
130
  - spec/fixtures/src/kapacitor/config.erb
@@ -156,7 +155,6 @@ signing_key:
156
155
  specification_version: 4
157
156
  summary: config_templates
158
157
  test_files:
159
- - spec/fixtures/dest/production/kapacitor/config
160
158
  - spec/fixtures/src/kapacitor/config.erb
161
159
  - spec/fixtures/settings/settings.yml
162
160
  - spec/fixtures/settings/settings.production.yml
@@ -1,3 +0,0 @@
1
-
2
- true
3
-