slyce 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/slyce +4 -3
  3. data/bin/slyce3 +4 -3
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36daa71deee82e19314bc1df0caedb1bc6b4a2b8f0bf524a471f48fcf28c1fb7
4
- data.tar.gz: 71c450033ed16659bcb206e6023dc92f9cf448736355385101d051f9c7cfebc4
3
+ metadata.gz: f6b0933ed29b724b0cca2ed1a47ae8f18afd875d01957d8497a1da5e64aea67f
4
+ data.tar.gz: 25e01d18ac4d15c989c8cfdb3bce0af15b7d66c176e8d411bd6634e263283d27
5
5
  SHA512:
6
- metadata.gz: a621fa8b4369fe27d5edc33573b0fe1f59312c7e97564a2c146517bebb3481b1633ffb9444cd494a97890efb0d8fa57f3885281e4c6d281821c6219376f1ee86
7
- data.tar.gz: aa98ed93dfc2e762b4e39fbe1d70d5f09c00d47ed5021511dc5811fbb826c97d121f7719a196677b60351f0fc5152f1efcc7a1984140b0be758dab6253cab38d
6
+ metadata.gz: a9ea1296cd1f3bd8d946e9a389b57f604771dfe960c6c2181128f4460dae0ae854ae8927142649c0d5ad7b45d07da9eef462fb77f2e6131607515540d700027d
7
+ data.tar.gz: 91bb4e8c118925556fc218486d1e8d944b90ed216da2d84cf38ba2e956d0fc9a2e87e5fccf7e1fa5f4a446159b91fec7c13f000ae9442f15aa66ad9b9411648c
data/bin/slyce CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- VERSION="1.0.0"
3
+ VERSION="1.0.2"
4
4
 
5
5
  STDOUT.sync = true
6
6
 
@@ -55,8 +55,9 @@ def display(name, data, show, uniq, tots)
55
55
  puts "\n#{fill} #{name}\n#{fill} #{line}\n"
56
56
  data.each {|cnt, val| puts "%*d %s" % [wide, cnt, val || "NULL"] }
57
57
  puts "#{fill} -----\n"
58
- puts "%*d shown (top %d)" % [wide, seen, rows] if show
59
- puts "%*d total (all %d)" % [wide, tots, uniq]
58
+ puts "%*d shown (top %d)" % [wide, seen, rows] if show && rows > 1
59
+ puts "%*d total (all %d)" % [wide, tots, uniq] if uniq > 1
60
+ puts "%*d total" % [wide, tots ] unless uniq > 1
60
61
  end
61
62
 
62
63
  # ==[ Let 'er rip! ]==
data/bin/slyce3 CHANGED
@@ -9,7 +9,7 @@
9
9
  # wget https://github.com/nalgeon/sqlean/releases/download/0.19.3/sqlean-macos-arm64.zip
10
10
  # unzip sqlean-macos-arm64.zip regexp.dylib
11
11
 
12
- VERSION="1.0.0"
12
+ VERSION="1.0.2"
13
13
 
14
14
  STDOUT.sync = true
15
15
 
@@ -68,8 +68,9 @@ def display(name, data, show, uniq, tots)
68
68
  puts "\n#{fill} #{name}\n#{fill} #{line}\n"
69
69
  data.each {|cnt, val| puts "%*d %s" % [wide, cnt, val || "NULL"] }
70
70
  puts "#{fill} -----\n"
71
- puts "%*d shown (top %d)" % [wide, seen, rows] if show
72
- puts "%*d total (all %d)" % [wide, tots, uniq]
71
+ puts "%*d shown (top %d)" % [wide, seen, rows] if show and rows > 1
72
+ puts "%*d total (all %d)" % [wide, tots, uniq] if uniq > 1
73
+ puts "%*d total" % [wide, tots ] unless uniq > 1
73
74
  end
74
75
 
75
76
  # ==[ Let 'er rip! ]==
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slyce
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Shreeve