benry-unixcommand 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGES.md +20 -0
- data/MIT-LICENSE +21 -0
- data/README.md +1063 -0
- data/benry-unixcommand.gemspec +31 -0
- data/doc/benry-unixcommand.html +932 -0
- data/doc/css/style.css +168 -0
- data/lib/benry/unixcommand.rb +1322 -0
- data/test/run_all.rb +14 -0
- data/test/unixcommand_test.rb +2517 -0
- metadata +69 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 332a83ae9c9010592fff2b8f618e877a994c6f9735281ee968389ca84ae166eb
|
4
|
+
data.tar.gz: c7e768937a4d54525fdf78da7ab99fd7d8d953ac7b3d9ea9e86bd7aa8d643057
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7e6507151ba6bbe0431c4534463087ab37e294f6c46dd66ca3560eadcc5569fa5f7085745b888c5f1b25726201a10922ce36fd3d967d35038004bce9ce468304
|
7
|
+
data.tar.gz: 2675057b2c46a8e6980eb8ccd3ba671fd09c55bc3e4992cf32e3579bf830c5841cbcb65e8051158a3cb64b89de6ff33546e4e212ed2fb0dee12464f5da4b7cf7
|
data/CHANGES.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
CHANGES
|
2
|
+
=======
|
3
|
+
|
4
|
+
|
5
|
+
Release 1.0.0 (2023-10-29)
|
6
|
+
--------------------------
|
7
|
+
|
8
|
+
* **[BREAKING CHANGE] gem package name is renamed from 'benry-unixcmd' to 'benry-unixcommand'.**
|
9
|
+
* [enhance] `sys()` can take an array as commands, for example `sys ["echo", "ABC"]`. This invokes command without shell nor file globbing.
|
10
|
+
* [change] `sys "echo", "*.txt"` (multiple string arguments) invokes a command without shell, but `sys` globs `*.txt` automatically.
|
11
|
+
* [enhance] `sys()` now supports `:q` (quiet) option to suppress command echoback. For example `sys "echo ABC"` just prints ABC and not print echoback of command.
|
12
|
+
* [change] On/off of echoback is determined by `$BENRY_ECHOBACK` and `@__BENRY_ECHOBACK` instead of `BENRY_ECHOBACK` constant.
|
13
|
+
* [enhance] `echoback_on() { ... }` and `echoback_off() { ... }` are provided to turn echoback on/off temorarily.
|
14
|
+
* [change] (internally) Default prompt string is changed from `"$"` to `"$ "`.
|
15
|
+
|
16
|
+
|
17
|
+
Release 0.9.0 (2021-09-14)
|
18
|
+
--------------------------
|
19
|
+
|
20
|
+
* First public release
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2021 kwatch@gmail.com
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|