testdata 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f87fe48725245f9c806fef9840e25f12c527e761
4
- data.tar.gz: 220abb15fadbf4f15ded2cab25f98c4e0bea7110
3
+ metadata.gz: 0f238ea44b6307c810d160dd24c0128ff2d98bf4
4
+ data.tar.gz: ee16bd5ee0b4fb1540d5429970b0b8116cf657cf
5
5
  SHA512:
6
- metadata.gz: e6262efd0ddd3b5d2881b9bc1fc729dd225e95e0d7de42d51c25913467c53db42eea64fee9a0adc5f30ec69b0ebe2fdfdb37452de597fc49ce600142fd4d6d66
7
- data.tar.gz: c94d3a26941971f81b9c9b7b7c1ef9cd70e35c04f3e8eeae0f85c80a4aee017b5fb3613d85430d42fb2cfce1804337836448744d3706c7ccf3fd3550757570d0
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
- �SR����/e�ľX0��0��Ǻ�6Ul��6dKyvA䩥I��#J�ģ-5��w�Й�:�o-� YxDx��b^���g����"YAk��@���Sį>txã‡���x�������j��j��K�v�Mܑ��f���`]��!��'��M ��2�!n
2
- :�+���^�Hz����6{�U�������lW$�����i��F�W��9���h koZ>A��7,��Kg�J�\�T
1
+ I��@�(ӣ�lcL�ִ����*���U]3mUjT�p�ʎ1׃ZR�~�_�fXٖ�M�!3KRgL7�,���?&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
- input_values = input_nodes.map{|x| x.texts.map(&:unescape).join.strip} + []
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.map(&:unescape).join.strip}
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.2
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-02-25 00:00:00.000000000 Z
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