testdata 1.1.3 → 1.1.4
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/testdata.rb +12 -3
- metadata +18 -18
- 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: aa0d7a1cdf51ffa92c4a9bba5fc50034e39886f6
|
4
|
+
data.tar.gz: 662ea0551714417be64ad5237a3fd7f3a1257396
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89b31c101e4426854bf6435d70156c81d400d8bf3afafc42dcbe19d79ed5788f57255583b9ca2b505d01282941e4b93e8577dbc1e17bab3d62c70912ccc698db
|
7
|
+
data.tar.gz: 80a398b1075d8a74b3b70d9740cf6c0b26e0a808a255f998402a9364db39cc4befec706a02653625ebd7cce6f7118fc7c3127349bef89a8dcade199115f7542e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/testdata.rb
CHANGED
@@ -64,7 +64,8 @@ module Testdata
|
|
64
64
|
raw_x
|
65
65
|
end
|
66
66
|
|
67
|
-
procs = {NilClass: :test_all, Range: :test_range, String: :test_id,
|
67
|
+
procs = {NilClass: :test_all, Range: :test_range, String: :test_id,
|
68
|
+
Integer: :test_id, Fixnum: :test_id}
|
68
69
|
|
69
70
|
method(procs[x.class.to_s.to_sym]).call(x)
|
70
71
|
summary()
|
@@ -73,26 +74,33 @@ module Testdata
|
|
73
74
|
private
|
74
75
|
|
75
76
|
def testdata_values(id)
|
76
|
-
|
77
|
+
#puts 'testdata_values: id ' + id.inspect
|
78
|
+
#exit
|
77
79
|
node = @doc.root.element "records/test[summary/path='#{id}']"
|
78
|
-
|
80
|
+
#puts 'node: ' + node.xml.inspect
|
81
|
+
#exit
|
79
82
|
raise TestdataException, "Path error: node title not found" unless node
|
80
83
|
|
81
84
|
path_no = node.text('summary/path')
|
82
85
|
#puts 'path_no : ' + path_no.inspect
|
83
86
|
input_summary = node.element 'records/input/summary'
|
84
87
|
input_summary.delete 'schema | format_mask | recordx_type'
|
88
|
+
#puts 'input_summary ' + input_summary.xml.inspect
|
85
89
|
|
86
90
|
#puts 'node : ' + node.xml.inspect
|
87
91
|
input_nodes = input_summary.xpath('*') #[1..-1]
|
92
|
+
|
88
93
|
#puts 'input:nodes : ' + input_nodes.inspect
|
89
94
|
input_values = input_nodes.map{|x| x.texts.join.strip} + []
|
95
|
+
#puts 'input_values : ' + input_values.inspect
|
90
96
|
|
91
97
|
input_names = input_nodes.map(&:name)
|
98
|
+
#puts 'input_names : ' + input_names.inspect
|
92
99
|
raise TestdataException, 'inputs not found' if input_values.empty? \
|
93
100
|
or input_names.empty?
|
94
101
|
|
95
102
|
summary = node.element 'summary'
|
103
|
+
|
96
104
|
type, desc = summary.text('type'), summary.text('description')
|
97
105
|
|
98
106
|
output_summary = node.element 'records/output/summary'
|
@@ -124,6 +132,7 @@ module Testdata
|
|
124
132
|
path_no, inputs, input_names, type, expected, @desc =
|
125
133
|
testdata_values(id.to_s)
|
126
134
|
@inputs = inputs
|
135
|
+
#puts 'after inputs'
|
127
136
|
tests() # load the routes
|
128
137
|
|
129
138
|
raw_actual = run_route type
|
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.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -12,26 +12,26 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDljCCAn6gAwIBAgIBATANBgk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c3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAPrvJ0HyV
|
27
|
+
A+VMfo63URQ/epzq0iRuwQhOIqB4gw0FN8RSwad7cDLL6sjt6lrV3Pmw67vNoqqY
|
28
|
+
uifs539/2aOFv0dMRU4dxBSpGnz607k2rz0Ukp+MYxuzTnBayGKCaTHPcYAHWIVn
|
29
|
+
/j7Tt1bC0Vy3nvV2GxUFVqWHVBm+3VTZJdVRfByGaKmKPSmCJ5adqtfueY+7GzVb
|
30
|
+
0LkKyCM8UrKlk4SEvrt82e1phro39PhGMqgv6YUOYcLvrM2gHQvFZEpMNmQIKY9d
|
31
|
+
3EL9FRRxK/4JM2Z+vmP6g8N2mZqc+DZBXtWG4HduYn6QMiRDyUecO0T8lz2nyQCg
|
32
|
+
Cf9gUOV9A/6lvA==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
34
|
+
date: 2016-12-25 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: app-routes
|
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
142
|
rubyforge_project:
|
143
|
-
rubygems_version: 2.
|
143
|
+
rubygems_version: 2.5.1
|
144
144
|
signing_key:
|
145
145
|
specification_version: 4
|
146
146
|
summary: testdata
|
metadata.gz.sig
CHANGED
Binary file
|