rbfind 2.8.2 → 2.8.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/bin/rbfind +1 -1
- data/lib/rbfind/table.rb +7 -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: c48f9b56403a1985bc80039a8f3cecf636cd4613cb641e9a3708e65bc5790500
|
|
4
|
+
data.tar.gz: 77dd4d10810a8c1492460a118d67d5d82951306146ef9db516ef0eb929fdf4cf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8333d71ff3fc7158418d54a3ce117b08b9459abe189ebdc2c5fa2ed66fe7b34baed1ec6ef0e7b624cbf3404c5637bbc6aa7f1a2e6c8583772e2883dfb738c8ef
|
|
7
|
+
data.tar.gz: 7b3eda841f6ca23bc21b3f5a5c48fb2ce7c4c0065fac58e9c8cd630cd94bb8da6ee029af17a4456d67339fa41b90bcd4b32b6107e2dd192c8e4fd0a8990b7b74
|
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
|
@@ -95,7 +95,13 @@ module RbFind
|
|
|
95
95
|
def calc_widths
|
|
96
96
|
w = @heads.map { 0 }
|
|
97
97
|
@rows.each { |r|
|
|
98
|
-
w = (w.zip r).map { |i,c|
|
|
98
|
+
w = (w.zip r).map { |i,c|
|
|
99
|
+
if c then
|
|
100
|
+
j = c.length
|
|
101
|
+
i = j if j > i
|
|
102
|
+
end
|
|
103
|
+
i
|
|
104
|
+
}
|
|
99
105
|
}
|
|
100
106
|
w
|
|
101
107
|
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.4
|
|
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.
|