testdata 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +1 -2
- data/lib/testdata.rb +5 -3
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f238ea44b6307c810d160dd24c0128ff2d98bf4
|
4
|
+
data.tar.gz: ee16bd5ee0b4fb1540d5429970b0b8116cf657cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d52ba581c1293bccaa3623b5eea755e8a80da994b9ddd971afea1ba0077aeec1cb0109f7566167735be77232a43157f5b77fd5c8e581a6e557b4b49e45f78dd
|
7
|
+
data.tar.gz: 599e6945f9a72eb131c0c92e9d6ded5878b4cb02c90428e8dc1748791de32b1bd48d1607c8192dc72722a88b83f555895cc683673557e1ca37d20bf46bd224f4
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
:�+���^�Hz����6{�U�������lW$�����i��F�W��9���hkoZ>A��7,��Kg�J�\�T
|
1
|
+
I��@�(ӣ�lcL�ִ����*���U�]3mUjT�p�ʎ1׃ZR�~�_�fXٖ�M�!3KRgL�7�,���?&d��� �
|
data/lib/testdata.rb
CHANGED
@@ -68,9 +68,12 @@ module Testdata
|
|
68
68
|
raise TestdataException, "Path error: node title not found" unless node
|
69
69
|
|
70
70
|
path_no = node.text('summary/path')
|
71
|
+
puts 'path_no : ' + path_no.inspect
|
71
72
|
xpath = "records/input/summary/*"
|
73
|
+
puts 'node : ' + node.xml.inspect
|
72
74
|
input_nodes = node.xpath(xpath) #[1..-1]
|
73
|
-
|
75
|
+
puts 'input:nodes : ' + input_nodes.inspect
|
76
|
+
input_values = input_nodes.map{|x| x.texts.join.strip} + []
|
74
77
|
|
75
78
|
input_names = input_nodes.map(&:name)
|
76
79
|
raise TestdataException, 'inputs not found' if input_values.empty? \
|
@@ -81,8 +84,7 @@ module Testdata
|
|
81
84
|
|
82
85
|
xpath = "records/output/summary/*"
|
83
86
|
output_nodes = node.xpath(xpath) #[1..-1]
|
84
|
-
output_values = output_nodes.map{|x| x.texts.
|
85
|
-
#puts "input values: %s; output values: %s" % [input_values, output_values]
|
87
|
+
output_values = output_nodes.map{|x| x.texts.join.strip}
|
86
88
|
|
87
89
|
[path_no, input_values, input_names, type, output_values, desc]
|
88
90
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testdata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
vWFtb5VPsjLRwClW20j7R9zEUv5XjYoyxcUn1W1xQINMVIQMtvMhouLBeWTXF7g4
|
32
32
|
ab2xQAvsYawLTw==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-
|
34
|
+
date: 2015-03-06 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: app-routes
|
metadata.gz.sig
CHANGED
Binary file
|