testkit123 0.3.0 → 0.3.1
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/testkit123.rb +14 -8
- metadata +26 -25
- 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: 560dc7d23a4b2dc3330982f8ca4ddbba94461f17ff22c4296d842eda8c92cd19
|
4
|
+
data.tar.gz: 3a5643258d69a643a57395f77d335acf78887187d70168e536c33d7141719955
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6daac63a4f2e865788879f9541dde921f9dfd98580a48f0d725699ec535c43059087e1f9f6e36585d042bdee550e5a180f363a58a844c133ec62ebe95a315b3d
|
7
|
+
data.tar.gz: 219ebfe3cabc637e4db9966978843787f5d7cff22ece377052f4b64a5e3ca2a16e61f84d50a3bc80136ad9b14e31bd7651a6271a5e64aafd2ae312e982de691c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/testkit123.rb
CHANGED
@@ -27,23 +27,28 @@ class TestKit123
|
|
27
27
|
attr_reader :testdata_file
|
28
28
|
|
29
29
|
def initialize(templates: {testdata: nil, testx: nil}, project: nil,
|
30
|
-
debug:
|
30
|
+
debug: true, localpath: nil, datapath: nil,
|
31
31
|
gemtest_url: nil, rubyver: 'ruby-2.5.1')
|
32
32
|
|
33
33
|
@debug = debug
|
34
34
|
@h = templates
|
35
35
|
|
36
|
+
#return unless project
|
37
|
+
|
38
|
+
@localpath, @datapath, @gemtest_url = localpath, datapath, gemtest_url
|
39
|
+
@rubyver = rubyver
|
40
|
+
|
41
|
+
return unless project
|
42
|
+
|
36
43
|
@project_config = if project =~ /\.txt$/ then
|
37
44
|
project
|
38
|
-
|
45
|
+
else
|
39
46
|
File.join(localpath, project + '.txt')
|
40
47
|
end
|
41
|
-
puts '@project_config: ' + @project_config.inspect if @debug
|
42
|
-
|
43
|
-
|
44
|
-
@localpath, @datapath, @gemtest_url = localpath, datapath, gemtest_url
|
45
|
-
@rubyver = rubyver
|
46
48
|
|
49
|
+
puts '@project_config: ' + @project_config.inspect if @debug
|
50
|
+
puts 'localpath: ' + localpath.inspect if @debug
|
51
|
+
|
47
52
|
if File.exists? @project_config then
|
48
53
|
|
49
54
|
config = SimpleConfig.new(@project_config, debug: false).to_h
|
@@ -348,6 +353,7 @@ end
|
|
348
353
|
|
349
354
|
def new_project(project='myproject', classname=nil, save: false)
|
350
355
|
|
356
|
+
puts 'inside new_project: ' + [project, classname].inspect if @debug
|
351
357
|
classname ||= project.camelize
|
352
358
|
|
353
359
|
s =<<EOF
|
@@ -370,8 +376,8 @@ test:
|
|
370
376
|
end
|
371
377
|
EOF
|
372
378
|
|
373
|
-
|
374
379
|
if save then
|
380
|
+
puts '@localpath: ' + @localpath.inspect if @debug
|
375
381
|
filepath = File.join(@localpath, project + '.txt')
|
376
382
|
File.write filepath, s
|
377
383
|
puts 'file saved ' + filepath if @debug
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testkit123
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -11,31 +11,31 @@ cert_chain:
|
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
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|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
28
|
+
BgkqhkiG9w0BAQsFAAOCAYEA1RgOx9puiSkwKJn487dnDiuRSVsuBJFMZZhp+shk
|
29
|
+
ajXuyuC1TXrV97c14khNoUNofRhusOTgKkO6l/ouJsObSzUIFIQHt8ljFowM7rM6
|
30
|
+
ZOrFT08G0akM84d1dUCGCpTZyW7M0HmNxh4Yn2hIChejsfgwYZmesL7grqJ3WKvE
|
31
|
+
KZF9E6c0A0a60gAZWXb0Of0yXTSqiX2uNEkM7STyG+yu/XzLus+z2rEYdUFaxfvW
|
32
|
+
+AAeovOz8G+IQhuHZ6zG3KtRYeHq0057/tC44obGbyNOXC0twIUGJ0ajRedNKEc2
|
33
|
+
OC0wzHol3qEYmVai7DkQL8xX7m3VsWd/0JbS+tzchySc/e2R1I3FAGeOSzmUSN6o
|
34
|
+
0CPM0BbOB4yUW+Ev7o3g31CsFuQ+5bCgR7n64QwTeHjlgFelmaJ1XalvnBC97S6k
|
35
|
+
/B2OocR7kLmSGm860fyULSY2RzLBKLOhjQHnrSiHj6n9pWrmkd+7Zxo/up/Jq4Xv
|
36
|
+
0cPz7gMjFOVqEBQuSfoVKd9K
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
38
|
+
date: 2021-02-01 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: rxfhelper
|
@@ -123,7 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
|
-
|
126
|
+
rubyforge_project:
|
127
|
+
rubygems_version: 2.7.10
|
127
128
|
signing_key:
|
128
129
|
specification_version: 4
|
129
130
|
summary: Generates a test suite of files (for use with the testdata gem) from a config
|
metadata.gz.sig
CHANGED
Binary file
|