testdata 1.1.11 → 1.1.12
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/lib/testdata.rb +26 -2
- data.tar.gz.sig +0 -0
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 47fd82d2a9ac27e6afd339e77fcb07ae25327e597ab52f27c53ea633cc71c101
|
|
4
|
+
data.tar.gz: dab727a8fe0f38d2edae64b246cfb73dcb5aeb162ebdaf81eb2d8888c6b7e394
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bea28e1b0fa2a3d6907343061999e89f4cc45e343cf9120b688269d0df3f097da8d8e29ce1ef3f175d8694b7fc3b3682a93ce101c3c77fab5e6283aca76245b6
|
|
7
|
+
data.tar.gz: 3f3429874ef92cae5420cb1a13a952e988ba72b77c3769c831a30485e9d0c41d34621b1c3827d4cca45c1a85d6cead7f4e7dd92a88b6bac3fe006734d00e04e1
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/testdata.rb
CHANGED
|
@@ -52,9 +52,11 @@ module Testdata
|
|
|
52
52
|
o = {log: false}.merge(options)
|
|
53
53
|
|
|
54
54
|
@log = o[:log] == true ? Rexle.new(tests) : nil
|
|
55
|
+
|
|
56
|
+
|
|
55
57
|
end
|
|
56
58
|
|
|
57
|
-
def run(raw_x=nil, debug2=nil)
|
|
59
|
+
def run(raw_x=nil, debug2=nil, results_file: nil)
|
|
58
60
|
|
|
59
61
|
# verify the document has unique path numbers
|
|
60
62
|
|
|
@@ -79,6 +81,7 @@ module Testdata
|
|
|
79
81
|
Integer: :test_id, Fixnum: :test_id}
|
|
80
82
|
|
|
81
83
|
method(procs[x.class.to_s.to_sym]).call(x)
|
|
84
|
+
@results_file = results_file if raw_x.nil? and results_file
|
|
82
85
|
summary()
|
|
83
86
|
end
|
|
84
87
|
|
|
@@ -278,6 +281,7 @@ module Testdata
|
|
|
278
281
|
end
|
|
279
282
|
|
|
280
283
|
def summary()
|
|
284
|
+
|
|
281
285
|
success = @success.map(&:first)
|
|
282
286
|
a = @success.map(&:last).sort
|
|
283
287
|
h = {
|
|
@@ -292,7 +296,27 @@ module Testdata
|
|
|
292
296
|
|
|
293
297
|
end
|
|
294
298
|
|
|
295
|
-
|
|
299
|
+
if @results_file then
|
|
300
|
+
|
|
301
|
+
dx = if File.exists?(@results_file) then
|
|
302
|
+
Dynarex.new @results_file
|
|
303
|
+
else
|
|
304
|
+
Dynarex.new schema: "gems/gemx(title, last_tested, passed, score)",
|
|
305
|
+
filepath: @results_file
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
title = @doc.root.element('summary/title/text()')
|
|
309
|
+
h2 = {title: title, last_tested: Time.now.to_s, passed: h[:passed].to_s, score: h[:score]}
|
|
310
|
+
|
|
311
|
+
dx.create(h2)
|
|
312
|
+
dx.save
|
|
313
|
+
puts 'results file saved at ' + @results_file.inspect if @debug
|
|
314
|
+
|
|
315
|
+
#puts dx.all.first
|
|
316
|
+
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
return h
|
|
296
320
|
end
|
|
297
321
|
end
|
|
298
322
|
|
data.tar.gz.sig
CHANGED
|
Binary file
|
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.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
|
35
35
|
VPCX5Cuw6OER1XAXBrbU+Yxtynmu52uURikgRGv3kNN7uFNP2ObtG4bePdjcyRyF
|
|
36
36
|
ZoODyxvFiUzKN1ar4bIjsI+l
|
|
37
37
|
-----END CERTIFICATE-----
|
|
38
|
-
date:
|
|
38
|
+
date: 2022-02-02 00:00:00.000000000 Z
|
|
39
39
|
dependencies:
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: app-routes
|
|
@@ -106,7 +106,7 @@ dependencies:
|
|
|
106
106
|
version: '1.3'
|
|
107
107
|
- - ">="
|
|
108
108
|
- !ruby/object:Gem::Version
|
|
109
|
-
version: 1.3.
|
|
109
|
+
version: 1.3.6
|
|
110
110
|
type: :runtime
|
|
111
111
|
prerelease: false
|
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -116,7 +116,7 @@ dependencies:
|
|
|
116
116
|
version: '1.3'
|
|
117
117
|
- - ">="
|
|
118
118
|
- !ruby/object:Gem::Version
|
|
119
|
-
version: 1.3.
|
|
119
|
+
version: 1.3.6
|
|
120
120
|
description:
|
|
121
121
|
email: digital.robertson@gmail.com
|
|
122
122
|
executables: []
|
metadata.gz.sig
CHANGED
|
Binary file
|