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 +4 -4
- data/lib/cfhighlander.tests.rb +15 -1
- data/lib/cfhighlander.version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccc4ffea77c8c6df1a0470b4abbe90301c6e9dc4135c4dba47cfc8d04180a262
|
4
|
+
data.tar.gz: 53b28fe8a437c6942bcc88995090efa8482751766be88aa6691c04b701bf6947
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c86cd26b001318aa36732c04b5214c81cf5cbeda2d6da52ed9010a702d964612f4b8edeaf67eec44e17d5ff4d812bb61e0c1366243e83bee921394d3339cda2
|
7
|
+
data.tar.gz: 49391895bb907f1d8021dee707bd6e0e713d8f78637ca01e176a3a860c29827fcc4f55d26d9c9d2ec4a67f0544ea91ec3ebbf4a46b0fb1b0caded30f935487c8
|
data/lib/cfhighlander.tests.rb
CHANGED
@@ -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
|
-
|
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
|
|
data/lib/cfhighlander.version.rb
CHANGED
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.
|
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-
|
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:
|
300
|
+
version: 1.3.1
|
301
301
|
requirements: []
|
302
302
|
rubygems_version: 3.0.2
|
303
303
|
signing_key:
|