clitest 0.1.1 → 0.1.5
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
- data/.github/dependabot.yml +11 -0
- data/Gemfile.lock +141 -0
- data/SECURITY.md +21 -0
- data/bin/clitest +17 -0
- data/clitest.gemspec +3 -2
- data/exe/cmd.sh +41 -0
- data/lib/clitest/version.rb +1 -1
- metadata +15 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e6938fa6fd5056038c64826cc6d8be8a7f05b7e6085cae8329fa9bb48924d7f1
|
|
4
|
+
data.tar.gz: 98f268fa8cf3f7509bc4cdc44fde3840f42c8861084bd81c5e777710dd035a82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9ea4d6afe50625f7ca768bdbca4114c3bfda8cd43fc3df676231b6e405e475e73bd2a3ad97f28d639bbef8732cf5cc4e60577ed6cfac0e3355af67da77521aca
|
|
7
|
+
data.tar.gz: 2e4f46b377eea649e9a6d8725d3cbb57e08ba528a2bd4363c6bc1d42c377dbf79e149a55e2549da07b7355645f4b1107a545820940bd50de822d47115fd95b4b
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
|
3
|
+
# Please see the documentation for all configuration options:
|
|
4
|
+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
5
|
+
|
|
6
|
+
version: 2
|
|
7
|
+
updates:
|
|
8
|
+
- package-ecosystem: "bundler" # See documentation for possible values
|
|
9
|
+
directory: "/" # Location of package manifests
|
|
10
|
+
schedule:
|
|
11
|
+
interval: "weekly"
|
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
clitest (0.1.5)
|
|
5
|
+
|
|
6
|
+
GEM
|
|
7
|
+
remote: https://rubygems.org/
|
|
8
|
+
specs:
|
|
9
|
+
aruba (2.2.0)
|
|
10
|
+
bundler (>= 1.17, < 3.0)
|
|
11
|
+
contracts (>= 0.16.0, < 0.18.0)
|
|
12
|
+
cucumber (>= 8.0, < 10.0)
|
|
13
|
+
rspec-expectations (~> 3.4)
|
|
14
|
+
thor (~> 1.0)
|
|
15
|
+
ast (2.4.2)
|
|
16
|
+
bigdecimal (3.1.8)
|
|
17
|
+
binding_of_caller (1.0.1)
|
|
18
|
+
debug_inspector (>= 1.2.0)
|
|
19
|
+
builder (3.3.0)
|
|
20
|
+
byebug (11.1.3)
|
|
21
|
+
coderay (1.1.3)
|
|
22
|
+
contracts (0.17)
|
|
23
|
+
cucumber (9.2.0)
|
|
24
|
+
builder (~> 3.2)
|
|
25
|
+
cucumber-ci-environment (> 9, < 11)
|
|
26
|
+
cucumber-core (> 13, < 14)
|
|
27
|
+
cucumber-cucumber-expressions (~> 17.0)
|
|
28
|
+
cucumber-gherkin (> 24, < 28)
|
|
29
|
+
cucumber-html-formatter (> 20.3, < 22)
|
|
30
|
+
cucumber-messages (> 19, < 25)
|
|
31
|
+
diff-lcs (~> 1.5)
|
|
32
|
+
mini_mime (~> 1.1)
|
|
33
|
+
multi_test (~> 1.1)
|
|
34
|
+
sys-uname (~> 1.2)
|
|
35
|
+
cucumber-ci-environment (10.0.1)
|
|
36
|
+
cucumber-core (13.0.2)
|
|
37
|
+
cucumber-gherkin (>= 27, < 28)
|
|
38
|
+
cucumber-messages (>= 20, < 23)
|
|
39
|
+
cucumber-tag-expressions (> 5, < 7)
|
|
40
|
+
cucumber-cucumber-expressions (17.1.0)
|
|
41
|
+
bigdecimal
|
|
42
|
+
cucumber-gherkin (27.0.0)
|
|
43
|
+
cucumber-messages (>= 19.1.4, < 23)
|
|
44
|
+
cucumber-html-formatter (21.4.0)
|
|
45
|
+
cucumber-messages (> 19, < 25)
|
|
46
|
+
cucumber-messages (22.0.0)
|
|
47
|
+
cucumber-tag-expressions (6.1.0)
|
|
48
|
+
debug_inspector (1.2.0)
|
|
49
|
+
diff-lcs (1.5.1)
|
|
50
|
+
ffi (1.17.0-x64-mingw-ucrt)
|
|
51
|
+
ffi (1.17.0-x86_64-linux-gnu)
|
|
52
|
+
json (2.7.2)
|
|
53
|
+
language_server-protocol (3.17.0.3)
|
|
54
|
+
method_source (1.1.0)
|
|
55
|
+
mini_mime (1.1.5)
|
|
56
|
+
multi_test (1.1.0)
|
|
57
|
+
parallel (1.25.1)
|
|
58
|
+
parser (3.3.3.0)
|
|
59
|
+
ast (~> 2.4.1)
|
|
60
|
+
racc
|
|
61
|
+
pluginator (1.5.0)
|
|
62
|
+
pre-commit (0.40.0)
|
|
63
|
+
pluginator (~> 1.5)
|
|
64
|
+
pry (0.14.2)
|
|
65
|
+
coderay (~> 1.1)
|
|
66
|
+
method_source (~> 1.0)
|
|
67
|
+
pry-byebug (3.10.1)
|
|
68
|
+
byebug (~> 11.0)
|
|
69
|
+
pry (>= 0.13, < 0.15)
|
|
70
|
+
pry-stack_explorer (0.6.1)
|
|
71
|
+
binding_of_caller (~> 1.0)
|
|
72
|
+
pry (~> 0.13)
|
|
73
|
+
racc (1.8.0)
|
|
74
|
+
rainbow (3.1.1)
|
|
75
|
+
rake (13.2.1)
|
|
76
|
+
rb-readline (0.5.5)
|
|
77
|
+
regexp_parser (2.9.2)
|
|
78
|
+
rexml (3.3.1)
|
|
79
|
+
strscan
|
|
80
|
+
rspec (3.13.0)
|
|
81
|
+
rspec-core (~> 3.13.0)
|
|
82
|
+
rspec-expectations (~> 3.13.0)
|
|
83
|
+
rspec-mocks (~> 3.13.0)
|
|
84
|
+
rspec-core (3.13.0)
|
|
85
|
+
rspec-support (~> 3.13.0)
|
|
86
|
+
rspec-expectations (3.13.1)
|
|
87
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
88
|
+
rspec-support (~> 3.13.0)
|
|
89
|
+
rspec-mocks (3.13.1)
|
|
90
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
91
|
+
rspec-support (~> 3.13.0)
|
|
92
|
+
rspec-support (3.13.1)
|
|
93
|
+
rspec_junit_formatter (0.6.0)
|
|
94
|
+
rspec-core (>= 2, < 4, != 2.12.0)
|
|
95
|
+
rubocop (1.64.1)
|
|
96
|
+
json (~> 2.3)
|
|
97
|
+
language_server-protocol (>= 3.17.0)
|
|
98
|
+
parallel (~> 1.10)
|
|
99
|
+
parser (>= 3.3.0.2)
|
|
100
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
101
|
+
regexp_parser (>= 1.8, < 3.0)
|
|
102
|
+
rexml (>= 3.2.5, < 4.0)
|
|
103
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
|
104
|
+
ruby-progressbar (~> 1.7)
|
|
105
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
|
106
|
+
rubocop-ast (1.31.3)
|
|
107
|
+
parser (>= 3.3.1.0)
|
|
108
|
+
rubocop-rake (0.6.0)
|
|
109
|
+
rubocop (~> 1.0)
|
|
110
|
+
rubocop-rspec (3.0.2)
|
|
111
|
+
rubocop (~> 1.61)
|
|
112
|
+
ruby-progressbar (1.13.0)
|
|
113
|
+
strscan (3.1.0)
|
|
114
|
+
sys-uname (1.3.0)
|
|
115
|
+
ffi (~> 1.1)
|
|
116
|
+
thor (1.3.1)
|
|
117
|
+
unicode-display_width (2.5.0)
|
|
118
|
+
|
|
119
|
+
PLATFORMS
|
|
120
|
+
x64-mingw-ucrt
|
|
121
|
+
x86_64-linux
|
|
122
|
+
|
|
123
|
+
DEPENDENCIES
|
|
124
|
+
aruba
|
|
125
|
+
bundler (~> 2.0)
|
|
126
|
+
clitest!
|
|
127
|
+
coderay (~> 1.1.1)
|
|
128
|
+
pre-commit
|
|
129
|
+
pry
|
|
130
|
+
pry-byebug
|
|
131
|
+
pry-stack_explorer
|
|
132
|
+
rake (~> 13.0)
|
|
133
|
+
rb-readline
|
|
134
|
+
rspec (~> 3.0)
|
|
135
|
+
rspec_junit_formatter
|
|
136
|
+
rubocop (~> 1.7)
|
|
137
|
+
rubocop-rake
|
|
138
|
+
rubocop-rspec
|
|
139
|
+
|
|
140
|
+
BUNDLED WITH
|
|
141
|
+
2.5.14
|
data/SECURITY.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Supported Versions
|
|
4
|
+
|
|
5
|
+
Use this section to tell people about which versions of your project are
|
|
6
|
+
currently being supported with security updates.
|
|
7
|
+
|
|
8
|
+
| Version | Supported |
|
|
9
|
+
| ------- | ------------------ |
|
|
10
|
+
| 5.1.x | :white_check_mark: |
|
|
11
|
+
| 5.0.x | :x: |
|
|
12
|
+
| 4.0.x | :white_check_mark: |
|
|
13
|
+
| < 4.0 | :x: |
|
|
14
|
+
|
|
15
|
+
## Reporting a Vulnerability
|
|
16
|
+
|
|
17
|
+
Use this section to tell people how to report a vulnerability.
|
|
18
|
+
|
|
19
|
+
Tell them where to go, how often they can expect to get an update on a
|
|
20
|
+
reported vulnerability, what to expect if the vulnerability is accepted or
|
|
21
|
+
declined, etc.
|
data/bin/clitest
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
pn = Pathname.new(__FILE__)
|
|
2
|
+
target_pn = pn.parent.join("cmd.sh").expand_path
|
|
3
|
+
|
|
4
|
+
=begin
|
|
5
|
+
puts target_pn.to_s
|
|
6
|
+
|
|
7
|
+
# system( "#{target_pn.to_s} #{*ARGSV}" )
|
|
8
|
+
# system( "#{target_pn.to_s} #{ARGV[0]}" )
|
|
9
|
+
p ARGV[0]
|
|
10
|
+
p ARGV[1]
|
|
11
|
+
p ARGV[2]
|
|
12
|
+
|
|
13
|
+
puts ARGV.join(" ")
|
|
14
|
+
=end
|
|
15
|
+
|
|
16
|
+
system( "#{target_pn.to_s} #{ARGV.join(' ')}" )
|
|
17
|
+
|
data/clitest.gemspec
CHANGED
|
@@ -25,8 +25,9 @@ Gem::Specification.new do |spec|
|
|
|
25
25
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
26
26
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
|
|
27
27
|
end
|
|
28
|
-
spec.bindir = "
|
|
29
|
-
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
|
28
|
+
spec.bindir = "bin"
|
|
29
|
+
# spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
|
30
|
+
spec.executables = ["cmd.sh", "clitest"]
|
|
30
31
|
spec.require_paths = ["lib"]
|
|
31
32
|
|
|
32
33
|
# Uncomment to register a new dependency of your gem
|
data/exe/cmd.sh
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# arguments:
|
|
3
|
+
# test_root_dir: absolute directory
|
|
4
|
+
# result_file: file name
|
|
5
|
+
# target_cmd: target command name
|
|
6
|
+
# target_dir: relative directory from test_dir
|
|
7
|
+
|
|
8
|
+
function do_test()
|
|
9
|
+
{
|
|
10
|
+
echo "##### ${target_cmd} $* #####"
|
|
11
|
+
$target_cmd $*
|
|
12
|
+
ret_code=$?
|
|
13
|
+
|
|
14
|
+
return $ret_code
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
# test_dir result_file target_cmd target_dir args
|
|
18
|
+
test_root_dir=$1
|
|
19
|
+
shift
|
|
20
|
+
result_file=$1
|
|
21
|
+
shift
|
|
22
|
+
target_cmd=$1
|
|
23
|
+
shift
|
|
24
|
+
target_dir=$1
|
|
25
|
+
shift
|
|
26
|
+
target_path="${test_root_dir}/${target_dir}"
|
|
27
|
+
|
|
28
|
+
if [ ! -d ${target_path} ];then
|
|
29
|
+
mkdir -p ${target_path}
|
|
30
|
+
fi
|
|
31
|
+
result_path="${target_path}/${result_file}"
|
|
32
|
+
if [ ! -f ${result_path} ]; then
|
|
33
|
+
touch ${result_path}
|
|
34
|
+
fi
|
|
35
|
+
|
|
36
|
+
pushd $target_path
|
|
37
|
+
do_test $*
|
|
38
|
+
ret=$?
|
|
39
|
+
#echo "ret=${ret}"
|
|
40
|
+
|
|
41
|
+
exit ${ret}
|
data/lib/clitest/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: clitest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- yasuo kominami
|
|
8
|
-
autorequire:
|
|
9
|
-
bindir:
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-07-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aruba
|
|
@@ -209,10 +209,13 @@ dependencies:
|
|
|
209
209
|
description: ruby gem for test of cli.
|
|
210
210
|
email:
|
|
211
211
|
- ykominami@gmail.com
|
|
212
|
-
executables:
|
|
212
|
+
executables:
|
|
213
|
+
- cmd.sh
|
|
214
|
+
- clitest
|
|
213
215
|
extensions: []
|
|
214
216
|
extra_rdoc_files: []
|
|
215
217
|
files:
|
|
218
|
+
- ".github/dependabot.yml"
|
|
216
219
|
- ".github/workflows/main.yml"
|
|
217
220
|
- ".gitignore"
|
|
218
221
|
- ".rspec"
|
|
@@ -220,10 +223,13 @@ files:
|
|
|
220
223
|
- ".rubocop_todo.yml"
|
|
221
224
|
- CODE_OF_CONDUCT.md
|
|
222
225
|
- Gemfile
|
|
226
|
+
- Gemfile.lock
|
|
223
227
|
- LICENSE
|
|
224
228
|
- LICENSE.txt
|
|
225
229
|
- README.md
|
|
226
230
|
- Rakefile
|
|
231
|
+
- SECURITY.md
|
|
232
|
+
- bin/clitest
|
|
227
233
|
- bin/cmd.sh
|
|
228
234
|
- bin/console
|
|
229
235
|
- bin/setup
|
|
@@ -245,6 +251,7 @@ files:
|
|
|
245
251
|
- doc/js/jquery.js
|
|
246
252
|
- doc/method_list.html
|
|
247
253
|
- doc/top-level-namespace.html
|
|
254
|
+
- exe/cmd.sh
|
|
248
255
|
- lib/clitest.rb
|
|
249
256
|
- lib/clitest/cmdline.rb
|
|
250
257
|
- lib/clitest/version.rb
|
|
@@ -254,7 +261,7 @@ licenses:
|
|
|
254
261
|
metadata:
|
|
255
262
|
homepage_uri: https://ykominami.github.io/clitest
|
|
256
263
|
source_code_uri: https://github.com/ykominami/clitest
|
|
257
|
-
post_install_message:
|
|
264
|
+
post_install_message:
|
|
258
265
|
rdoc_options: []
|
|
259
266
|
require_paths:
|
|
260
267
|
- lib
|
|
@@ -269,8 +276,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
269
276
|
- !ruby/object:Gem::Version
|
|
270
277
|
version: '0'
|
|
271
278
|
requirements: []
|
|
272
|
-
rubygems_version: 3.
|
|
273
|
-
signing_key:
|
|
279
|
+
rubygems_version: 3.5.14
|
|
280
|
+
signing_key:
|
|
274
281
|
specification_version: 4
|
|
275
282
|
summary: ruby gem for test of cli
|
|
276
283
|
test_files: []
|