rbfind 2.8.2 → 2.8.4

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: c48f9b56403a1985bc80039a8f3cecf636cd4613cb641e9a3708e65bc5790500
4
+ data.tar.gz: 77dd4d10810a8c1492460a118d67d5d82951306146ef9db516ef0eb929fdf4cf
5
5
  SHA512:
6
- metadata.gz: 44276ce8399adf25ad8bcfad934522d5667ba8120d8d44bcda05fd705d272512a3a5302a0419b1a6d87049a948418df2d5c7c45a49603aba531a3096da103a86
7
- data.tar.gz: 24d752cffc2e7669e60b225d6ce1108c9b0d51006215602e564daeeea1ccc2e6ad06ee306674109c371ffa28adb6da71b3f34e487959782abdba12dd71888f69
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] = 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
@@ -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| j = c.length ; j > i ? j : i }
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
@@ -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.4".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.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: 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.