cfhighlander 0.8.0 → 0.8.1.alpha.1550744133

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: 0d4c2cbc28e0bdbdc0c9a394072e00221251aaa79b4faf251656ea23a53d0d4c
4
- data.tar.gz: e843840ee5f5c9e75fd3ea0c4e30590baa88254e72ca0de22574c5e8f5044154
3
+ metadata.gz: ccc4ffea77c8c6df1a0470b4abbe90301c6e9dc4135c4dba47cfc8d04180a262
4
+ data.tar.gz: 53b28fe8a437c6942bcc88995090efa8482751766be88aa6691c04b701bf6947
5
5
  SHA512:
6
- metadata.gz: 38d58739c54e7376da2387f617e99197582fe7c06b587a37e210487952e2f27ccf9bc3d44d446033d0fe7e5ca36d60d35aa7dd73028414452afc648a6bd628d7
7
- data.tar.gz: bfe9eb8b7cd8be98246e0435ecc5018ea6916feb045deab48255ec994389c0e7b74ef6c34ef2c560f17a838eae179ea3b5cefaab7287a72f47cc5da2c4fb3304
6
+ metadata.gz: 3c86cd26b001318aa36732c04b5214c81cf5cbeda2d6da52ed9010a702d964612f4b8edeaf67eec44e17d5ff4d812bb61e0c1366243e83bee921394d3339cda2
7
+ data.tar.gz: 49391895bb907f1d8021dee707bd6e0e713d8f78637ca01e176a3a860c29827fcc4f55d26d9c9d2ec4a67f0544ea91ec3ebbf4a46b0fb1b0caded30f935487c8
@@ -27,7 +27,21 @@ module CfHighlander
27
27
  def get_cases
28
28
  @test_files.each do |file|
29
29
  test_case = load_test_case(file)
30
- @cases << { metadata: test_case['test_metadata'], file: file, config: test_case }
30
+ default_config = load_defaut_config()
31
+ test_config = merge_recursively(test_case,default_config)
32
+ @cases << { metadata: test_case['test_metadata'], file: file, config: test_config }
33
+ end
34
+ end
35
+
36
+ def merge_recursively(a, b)
37
+ a.merge(b) {|key, a_item, b_item| merge_recursively(a_item, b_item) }
38
+ end
39
+
40
+ def load_defaut_config()
41
+ begin
42
+ YAML.load(File.read("#{@component_name}.config.yaml"))
43
+ rescue Errno::ENOENT => e
44
+ {}
31
45
  end
32
46
  end
33
47
 
@@ -1,3 +1,3 @@
1
1
  module Cfhighlander
2
- VERSION="0.8.0".freeze
2
+ VERSION="0.8.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfhighlander
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1.alpha.1550744133
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikola Tosic
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-02-15 00:00:00.000000000 Z
13
+ date: 2019-02-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: highline
@@ -295,9 +295,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
295
295
  version: '0'
296
296
  required_rubygems_version: !ruby/object:Gem::Requirement
297
297
  requirements:
298
- - - ">="
298
+ - - ">"
299
299
  - !ruby/object:Gem::Version
300
- version: '0'
300
+ version: 1.3.1
301
301
  requirements: []
302
302
  rubygems_version: 3.0.2
303
303
  signing_key: