config_templates 0.0.7 → 0.0.8

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: d8f6ed68953634c69d1d1faed686f6ba3f6c9a1d
4
- data.tar.gz: d38fde68369b353501441347a5756992ed002fa4
3
+ metadata.gz: 180914fa777be298b2a8ae21914b2b475c123ac5
4
+ data.tar.gz: bb777a528c4758f3917004c7f7ecdc1be7a0fc2f
5
5
  SHA512:
6
- metadata.gz: 91fb552f4124f980d7c337fbc1566b3324b67c80cd5f0ad3f28246529c294b1a15fbd0217db08e11198471d37d0e2a965255c0758d6aa36cc26038ebf4802d06
7
- data.tar.gz: c6ed9cc5388768f6d64adcd34035a592fe80fe175986d6199b9f80f206e37242cb0331553290dec33a11f5f4d51571109c10660c2ed67446a69f56717e0abb9a
6
+ metadata.gz: e4b07b4c6c24ed9f812fdb8b2252adbfcc18d57ed3bf978d716368d6551778676e79c56e9248121de9627ed7533c6f7b06d0d512d6fa24b1c20a5ef666c03481
7
+ data.tar.gz: a844b8ecb6f74a356c7d3c3a8680f7caddcbaa80f096c59959280f2caad47aa455e55049707c5e224ca9eba01f7ce0b6f8e97a210abcb52a5fd289dcafccfd21
@@ -5,8 +5,8 @@ module ConfigTemplates::Criteria
5
5
  end
6
6
 
7
7
  def matches?(target)
8
- @criteria.inject(true) do |result, criteria|
9
- result && criteria.matches?(target)
8
+ @criteria.inject(false) do |result, criteria|
9
+ result || criteria.matches?(target)
10
10
  end
11
11
  end
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module ConfigTemplates
2
- VERSION = '0.0.7'.freeze
2
+ VERSION = '0.0.8'.freeze
3
3
  end
@@ -21,9 +21,9 @@ RSpec.describe ::ConfigTemplates do
21
21
  expect(@output_mock.result).to be_nil
22
22
  end
23
23
 
24
- it 'renders without explicitly selected templates' do
24
+ it 'doesnt render anything without explicitly selected templates' do
25
25
  compilation = ::ConfigTemplates::Models::Compilation.new
26
26
  compilation.send_to(:test)
27
- expect(@output_mock.result.strip).to eq('true')
27
+ expect(@output_mock.result).to be_nil
28
28
  end
29
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: config_templates
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - g.ivanov