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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 673e3195f462c1f8b06eeb61423bc73811a84e28f191f963af2c546d43717f4a
4
- data.tar.gz: 20218e28ea03d78c4e0dba0bbf2aa2a2d8ae484839075eee8bfbec013efd2916
3
+ metadata.gz: 45064c66f0f1b078369e892f4619edb0a6ee35fb039bffd5dfee1c430516bf2c
4
+ data.tar.gz: 9b2a8aa0630d6edb1ab3e5e4ea8b8c5ba163b9596d8181aa6acd1af0d0372f05
5
5
  SHA512:
6
- metadata.gz: 44276ce8399adf25ad8bcfad934522d5667ba8120d8d44bcda05fd705d272512a3a5302a0419b1a6d87049a948418df2d5c7c45a49603aba531a3096da103a86
7
- data.tar.gz: 24d752cffc2e7669e60b225d6ce1108c9b0d51006215602e564daeeea1ccc2e6ad06ee306674109c371ffa28adb6da71b3f34e487959782abdba12dd71888f69
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] = true
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| j = c.length ; j > i ? j : i }
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
@@ -8,7 +8,7 @@ require "rbfind/csv"
8
8
 
9
9
  module RbFind
10
10
 
11
- VERSION = "2.8.2".freeze
11
+ VERSION = "2.8.6".freeze
12
12
 
13
13
  =begin rdoc
14
14
 
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.2
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: 2021-03-22 00:00:00.000000000 Z
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.