benry-unixcmd 0.9.0
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 +7 -0
- data/CHANGES.md +10 -0
- data/MIT-LICENSE +21 -0
- data/README.md +936 -0
- data/Rakefile.rb +113 -0
- data/benry-unixcmd.gemspec +52 -0
- data/lib/benry/unixcmd.rb +1230 -0
- data/test/run_all.rb +14 -0
- data/test/unixcmd_test.rb +2305 -0
- metadata +87 -0
metadata
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: benry-unixcmd
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- kwatch
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-09-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: oktest
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1'
|
27
|
+
description: |
|
28
|
+
Unix commnads implementation, like `fileutils.rb`.
|
29
|
+
|
30
|
+
Features compared to `fileutils.rb`:
|
31
|
+
|
32
|
+
* supports file patterns (`*`, `.`, `{}`) directly.
|
33
|
+
* provides `cp :r`, `mv :p`, `rm :rf`, ... instead of `cp_r`, `mv_p`, `rm_rf`, ...
|
34
|
+
* prints command prompt `$ ` before command echoback.
|
35
|
+
* provides `pushd` which is similar to `cd` but supports nested calls naturally.
|
36
|
+
* implements `capture2`, `capture2e`, and `capture3` which calls
|
37
|
+
`Popen3.capture2`, `Popen3.capture2`, and `Popen3.capture3` respectively.
|
38
|
+
* supports `touch -r reffile`.
|
39
|
+
* provides `sys` command which is similar to `sh` in Rake but different in details.
|
40
|
+
* provides `zip` and `unzip` commands (requires `rubyzip` gem).
|
41
|
+
* provides `store` command which copies files recursively into target directory, keeping file path.
|
42
|
+
* provides `atomic_symlink!` command which switches symlink atomically.
|
43
|
+
|
44
|
+
```
|
45
|
+
cp Dir['*.rb'], 'tmpdir' ## fileutils.rb
|
46
|
+
cp '*.rb', 'tmpdir' ## benry-unixcmd
|
47
|
+
```
|
48
|
+
|
49
|
+
Benry-unixcmd provides `cp_p` and `cp_pr` which are equivarent to `cp -p` and `cp -pr` respectively and not provided by `fileutiles.rb`.
|
50
|
+
email: kwatch@gmail.com
|
51
|
+
executables: []
|
52
|
+
extensions: []
|
53
|
+
extra_rdoc_files: []
|
54
|
+
files:
|
55
|
+
- CHANGES.md
|
56
|
+
- MIT-LICENSE
|
57
|
+
- README.md
|
58
|
+
- Rakefile.rb
|
59
|
+
- benry-unixcmd.gemspec
|
60
|
+
- lib/benry/unixcmd.rb
|
61
|
+
- test/run_all.rb
|
62
|
+
- test/unixcmd_test.rb
|
63
|
+
homepage: https://github.com/kwatch/benry-ruby/tree/ruby/benry-unixcmd
|
64
|
+
licenses:
|
65
|
+
- MIT
|
66
|
+
metadata: {}
|
67
|
+
post_install_message:
|
68
|
+
rdoc_options: []
|
69
|
+
require_paths:
|
70
|
+
- lib
|
71
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
requirements: []
|
82
|
+
rubygems_version: 3.2.22
|
83
|
+
signing_key:
|
84
|
+
specification_version: 4
|
85
|
+
summary: Unix commands implementation like 'fileutils.rb'
|
86
|
+
test_files:
|
87
|
+
- test/run_all.rb
|