testdata 1.1.12 → 1.1.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47fd82d2a9ac27e6afd339e77fcb07ae25327e597ab52f27c53ea633cc71c101
4
- data.tar.gz: dab727a8fe0f38d2edae64b246cfb73dcb5aeb162ebdaf81eb2d8888c6b7e394
3
+ metadata.gz: 5a3d6471fcd0124a4c7dccd09604348ed9b0f95097e5c445b3fcdec6e168d9e6
4
+ data.tar.gz: c76b3fe53e3d0324c4adec135d6a7b25861a1f0af3ebbcb9818696610d1eabe7
5
5
  SHA512:
6
- metadata.gz: bea28e1b0fa2a3d6907343061999e89f4cc45e343cf9120b688269d0df3f097da8d8e29ce1ef3f175d8694b7fc3b3682a93ce101c3c77fab5e6283aca76245b6
7
- data.tar.gz: 3f3429874ef92cae5420cb1a13a952e988ba72b77c3769c831a30485e9d0c41d34621b1c3827d4cca45c1a85d6cead7f4e7dd92a88b6bac3fe006734d00e04e1
6
+ metadata.gz: 98c83b30dee58b34f7a9886e66f54e7c7afaa41e3addeb1ad87fa6665d3c7cbc6ad038d04aa7cd1957e21b90f7b05e515b4c8b4cfdfcd75156d6da6d275bd1af
7
+ data.tar.gz: 9014b80ef725ac1984bd6f2678717d5ea3c74b2f8de5d914ae4e3bd6d4c79206cdc71572e363ffe7f601dd3488184f0626e3d523e85282440106369c031ccd28
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/testdata.rb CHANGED
@@ -7,6 +7,7 @@ require 'testdata_text'
7
7
  require 'diffyc32'
8
8
  require 'polyrex'
9
9
  require 'yaml'
10
+ require 'rxfreader'
10
11
 
11
12
 
12
13
  class TestdataException < Exception
@@ -15,6 +16,7 @@ end
15
16
  module Testdata
16
17
 
17
18
  class Base
19
+ include RXFRead
18
20
  using ColouredText
19
21
 
20
22
  include AppRoutes
@@ -255,7 +257,7 @@ module Testdata
255
257
  end
256
258
 
257
259
  def read_file(s)
258
- buffer = File.open(s, 'r').read
260
+ buffer = FileX.read(s)
259
261
  ext = s[/\.(\w+)$/,1]
260
262
  method(('read_' + ext).to_sym).call(buffer)
261
263
  end
@@ -298,7 +300,7 @@ module Testdata
298
300
 
299
301
  if @results_file then
300
302
 
301
- dx = if File.exists?(@results_file) then
303
+ dx = if FileX.exists?(@results_file) then
302
304
  Dynarex.new @results_file
303
305
  else
304
306
  Dynarex.new schema: "gems/gemx(title, last_tested, passed, score)",
@@ -329,7 +331,7 @@ module Testdata
329
331
  super()
330
332
  @a = []
331
333
 
332
- buffer, _ = RXFHelper.read(s)
334
+ buffer, _ = RXFReader.read(s)
333
335
 
334
336
  @doc = Rexle.new(buffer)
335
337
 
@@ -371,7 +373,7 @@ end
371
373
 
372
374
  if script then
373
375
  filename = script[/[\/]+\.rsf$/]
374
- buffer, _ = RXFHelper.read(filename)
376
+ buffer, _ = RXFReader.read(filename)
375
377
  end
376
378
  #@a.group_by {|x| x[:type]}
377
379
 
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.12
4
+ version: 1.1.13
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: 2022-02-02 00:00:00.000000000 Z
38
+ date: 2022-02-23 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: app-routes
@@ -143,8 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  - !ruby/object:Gem::Version
144
144
  version: '0'
145
145
  requirements: []
146
- rubyforge_project:
147
- rubygems_version: 2.7.10
146
+ rubygems_version: 3.2.22
148
147
  signing_key:
149
148
  specification_version: 4
150
149
  summary: A test framework which accepts test data in a Polyrex format.
metadata.gz.sig CHANGED
Binary file