test-cmd.rb 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/test-cmd.rb +1 -11
- data/test/test_cmd_test.rb +6 -0
- data/test-cmd.rb.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3271a0fc385b5c2ec050a4295cfd9c67b662dca479a1e5c197610fb0f773fb8b
|
4
|
+
data.tar.gz: da1a24b436cfde2e63a6fccdaf6ac5d597f180f10b578319549713e64992a095
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf4e1638056aa03ce82db25547efe1ad9c2bbb2ac737a3ec13b9f8c23576c090101b59c19ce7adf554a2b47e9ae16d9fac6439e730c74423a8fe37e317be745d
|
7
|
+
data.tar.gz: 82c83edc676b854ffa3e96930a6d6b6d51e3ab484df093f1919529e5abc9914e6ff0bc65180733ed0434d48fdee15be93bbe5ff7526e422f2ff57e56c061a4c7
|
data/README.md
CHANGED
data/lib/test-cmd.rb
CHANGED
@@ -22,21 +22,11 @@ class Test::Cmd
|
|
22
22
|
@spawned = false
|
23
23
|
end
|
24
24
|
|
25
|
-
##
|
26
|
-
# @param [String, #to_s] arg
|
27
|
-
# A command-line argument.
|
28
|
-
# @return [Test::Cmd]
|
29
|
-
def arg(arg)
|
30
|
-
tap do
|
31
|
-
@argv.push(arg)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
25
|
##
|
36
26
|
# @param [Array<String, #to_s>] argv
|
37
27
|
# One or more command-line arguments.
|
38
28
|
# @return [Test::Cmd]
|
39
|
-
def
|
29
|
+
def argv(*argv)
|
40
30
|
tap do
|
41
31
|
@argv.concat(argv)
|
42
32
|
end
|
data/test/test_cmd_test.rb
CHANGED
data/test-cmd.rb.gemspec
CHANGED
@@ -5,7 +5,7 @@ Gem::Specification.new do |gem|
|
|
5
5
|
gem.authors = ["0x1eef"]
|
6
6
|
gem.email = ["0x1eef@protonmail.com"]
|
7
7
|
gem.homepage = "https://github.com/0x1eef/test-cmd.rb#readme"
|
8
|
-
gem.version = "0.
|
8
|
+
gem.version = "0.8.0"
|
9
9
|
gem.required_ruby_version = ">= 3.0"
|
10
10
|
gem.licenses = ["0BSD"]
|
11
11
|
gem.files = `git ls-files`.split($/)
|