rbfind 2.8.2 → 2.8.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/rbfind +1 -1
- data/lib/rbfind/table.rb +8 -1
- data/lib/rbfind.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45064c66f0f1b078369e892f4619edb0a6ee35fb039bffd5dfee1c430516bf2c
|
4
|
+
data.tar.gz: 9b2a8aa0630d6edb1ab3e5e4ea8b8c5ba163b9596d8181aa6acd1af0d0372f05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bab1b1a56377b5d7327986b5af068ccb1468b8f669c51e8153d66cbf9ec79be5bb68941fb54b0cbf855c43c7dec1084b4e9cd75b5c523a9be733e66f146bca67
|
7
|
+
data.tar.gz: 91ba9211832a27516bb2809f9173c579cba85131266eb5b23b5eb7b9c25290feb3d82aaee57506c7db592c48289658c807e0bd4e02c9ff9d530685718a375806
|
data/bin/rbfind
CHANGED
@@ -93,7 +93,7 @@ module RbFind
|
|
93
93
|
when '--time' then @params[ :sort] = proc { mtime } ; @params[ :reverse] = true
|
94
94
|
when '--size' then @params[ :sort] = proc { size } ; @params[ :reverse] = true
|
95
95
|
when '--dirs' then @params[ :dirs] = true
|
96
|
-
when '--reverse' then @params[ :reverse] =
|
96
|
+
when '--reverse' then @params[ :reverse] = !@params[ :reverse]
|
97
97
|
when '--require' then require arg
|
98
98
|
when '--puts-path' then @puts = true
|
99
99
|
when '--ls-l' then @puts = :ls ; @wds = 6 ; @wd = 6
|
data/lib/rbfind/table.rb
CHANGED
@@ -56,6 +56,7 @@ module RbFind
|
|
56
56
|
w = calc_widths
|
57
57
|
rs.each { |r|
|
58
58
|
j = (w.zip @heads, r).map { |v,(_,a),c|
|
59
|
+
c ||= ""
|
59
60
|
case a
|
60
61
|
when -1 then c.ljust v
|
61
62
|
when 0 then c.center v
|
@@ -95,7 +96,13 @@ module RbFind
|
|
95
96
|
def calc_widths
|
96
97
|
w = @heads.map { 0 }
|
97
98
|
@rows.each { |r|
|
98
|
-
w = (w.zip r).map { |i,c|
|
99
|
+
w = (w.zip r).map { |i,c|
|
100
|
+
if c then
|
101
|
+
j = c.length
|
102
|
+
i = j if j > i
|
103
|
+
end
|
104
|
+
i
|
105
|
+
}
|
99
106
|
}
|
100
107
|
w
|
101
108
|
end
|
data/lib/rbfind.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbfind
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.8.
|
4
|
+
version: 2.8.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bertram Scharpf
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |
|
14
14
|
A replacement for the standard UNIX command find.
|