grntest 1.2.5 → 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/text/news.md +8 -0
- data/lib/grntest/test-runner.rb +28 -6
- data/lib/grntest/variable-expander.rb +2 -0
- data/lib/grntest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 623111bd9759dab5b911292fabd306b098813483
|
4
|
+
data.tar.gz: f58cccf27785ee89309f43ad765108daf4efb82d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0580f314af0dccf1649b8516ecc9e487f738def148ca6ad3720b9bf308d194156a1e6873da73d9ccc1399202a44b3cb5fb8500f02f3c11da6f50939c00381ba
|
7
|
+
data.tar.gz: 66f8421596ee261fa921e5e9c92375faded61ebf21d18ac522e6e0eb70f5693d28382865404662af0a71c03153accc8425d77795953d42f8363d23323d25080c
|
data/doc/text/news.md
CHANGED
data/lib/grntest/test-runner.rb
CHANGED
@@ -675,15 +675,37 @@ http {
|
|
675
675
|
exception["message"] = normalize_error_message(message)
|
676
676
|
body.merge("exception" => exception)
|
677
677
|
else
|
678
|
-
body
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
678
|
+
normalize_body_recursive(body)
|
679
|
+
end
|
680
|
+
else
|
681
|
+
body
|
682
|
+
end
|
683
|
+
end
|
684
|
+
|
685
|
+
def normalize_body_recursive(body)
|
686
|
+
case body
|
687
|
+
when Array
|
688
|
+
body.collect do |value|
|
689
|
+
normalize_body_recursive(value)
|
690
|
+
end
|
691
|
+
when Hash
|
692
|
+
normalized_body = {}
|
693
|
+
body.each do |key, value|
|
694
|
+
case key
|
695
|
+
when "path"
|
696
|
+
if value
|
697
|
+
normalized_value = normalize_plugin_path(value)
|
698
|
+
else
|
699
|
+
normalized_value = value
|
683
700
|
end
|
701
|
+
normalized_body[key] = normalized_value
|
702
|
+
when "disk_usage"
|
703
|
+
normalized_body[key] = 0
|
704
|
+
else
|
705
|
+
normalized_body[key] = normalize_body_recursive(value)
|
684
706
|
end
|
685
|
-
body
|
686
707
|
end
|
708
|
+
normalized_body
|
687
709
|
else
|
688
710
|
body
|
689
711
|
end
|
data/lib/grntest/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grntest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-08-
|
12
|
+
date: 2017-08-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|