clitest 0.1.1 → 0.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
- data/.github/dependabot.yml +11 -0
- data/Gemfile.lock +141 -0
- data/SECURITY.md +21 -0
- data/clitest.gemspec +3 -2
- data/exe/cmd.sh +41 -0
- data/lib/clitest/version.rb +1 -1
- metadata +13 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b30ecf111c3917305b878fa25265e9ea7bf4079c56c96c1a9406168d9f0167b9
|
|
4
|
+
data.tar.gz: d49fd4171b9f72ab00e29dcf1654a3bcd06efffa9c7f0f769b07f1ddd110d3bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fb6ddc636273373c2e4335ef646d08d8f8ac4065b6ac66dc22018f8f76a17f12009ccd7bdd6843ca5f21865cc2dbc81a313f5b6666e0b3540ab6b0625f1edf87
|
|
7
|
+
data.tar.gz: e1a69fee770020327a8691eebf913906e969240ca88e60cac1e56abf76e3754a546b47d977bba7baffc7e8dcf6fd7f028e9171a67943dcca8eb09f877f8cf3b0
|
|
@@ -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.4)
|
|
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/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"]
|
|
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.4
|
|
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,12 @@ 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
|
|
213
214
|
extensions: []
|
|
214
215
|
extra_rdoc_files: []
|
|
215
216
|
files:
|
|
217
|
+
- ".github/dependabot.yml"
|
|
216
218
|
- ".github/workflows/main.yml"
|
|
217
219
|
- ".gitignore"
|
|
218
220
|
- ".rspec"
|
|
@@ -220,10 +222,12 @@ files:
|
|
|
220
222
|
- ".rubocop_todo.yml"
|
|
221
223
|
- CODE_OF_CONDUCT.md
|
|
222
224
|
- Gemfile
|
|
225
|
+
- Gemfile.lock
|
|
223
226
|
- LICENSE
|
|
224
227
|
- LICENSE.txt
|
|
225
228
|
- README.md
|
|
226
229
|
- Rakefile
|
|
230
|
+
- SECURITY.md
|
|
227
231
|
- bin/cmd.sh
|
|
228
232
|
- bin/console
|
|
229
233
|
- bin/setup
|
|
@@ -245,6 +249,7 @@ files:
|
|
|
245
249
|
- doc/js/jquery.js
|
|
246
250
|
- doc/method_list.html
|
|
247
251
|
- doc/top-level-namespace.html
|
|
252
|
+
- exe/cmd.sh
|
|
248
253
|
- lib/clitest.rb
|
|
249
254
|
- lib/clitest/cmdline.rb
|
|
250
255
|
- lib/clitest/version.rb
|
|
@@ -254,7 +259,7 @@ licenses:
|
|
|
254
259
|
metadata:
|
|
255
260
|
homepage_uri: https://ykominami.github.io/clitest
|
|
256
261
|
source_code_uri: https://github.com/ykominami/clitest
|
|
257
|
-
post_install_message:
|
|
262
|
+
post_install_message:
|
|
258
263
|
rdoc_options: []
|
|
259
264
|
require_paths:
|
|
260
265
|
- lib
|
|
@@ -269,8 +274,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
269
274
|
- !ruby/object:Gem::Version
|
|
270
275
|
version: '0'
|
|
271
276
|
requirements: []
|
|
272
|
-
rubygems_version: 3.
|
|
273
|
-
signing_key:
|
|
277
|
+
rubygems_version: 3.5.14
|
|
278
|
+
signing_key:
|
|
274
279
|
specification_version: 4
|
|
275
280
|
summary: ruby gem for test of cli
|
|
276
281
|
test_files: []
|