lolcat 99.9.21 → 99.9.69

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: 2927929dabf0cbc3b64a9beaf7300d03e381a2c8ccc2391bb713be40fe63fb24
4
- data.tar.gz: c2b89efecf566b0aff3c8d070bac65391c5dc33073defb8343466eee4b0f9d1d
3
+ metadata.gz: bbc586de9ddd4016f4ae0bdb2746a3a4cc28ff9a79a838714c7c7c536cec3218
4
+ data.tar.gz: 8debc2a6c3a07b704d9280364a7f9c976bd88a45b83d36555b8c912627c03d52
5
5
  SHA512:
6
- metadata.gz: 795f64ecc18036a762e874b45bf017b96659348041b4dcdca9396db814c51542e6e3aec0f7fdf48122db371e3caf8b0c486dbba45f0115c3fd61ebe91772c422
7
- data.tar.gz: e8007bf1d94ccfd77246efe964bdc117d80d20a1ab29773ab1acd6b4504e48e9ce4778657742154b8d9585a19ca7209585a56d29fb0228ba610aa12ae2425a54
6
+ metadata.gz: e09fd65ccc73ad6a1d37bfce83d4043be47379aceb3bf3403286977701f8dc6876154ea252ddb8bcdd9109ae75bccbff85ceb0971d9dbc75115e5db5f24c22f5
7
+ data.tar.gz: f97bf4a14d1ec1127e9e424a1e96f1c53453ba611e2fd9505b0eee532828525b587cbe484f7231de5971249e21cf8d2df22248de1548988a1950211a0e9bce12
@@ -50,6 +50,7 @@ HEADER
50
50
  opt :speed, "Animation speed", :short => 's', :default => 20.0
51
51
  opt :invert, "Invert fg and bg", :short => 'i', :default => false
52
52
  opt :truecolor, "24-bit (truecolor)", :short => 't', :default => false
53
+ opt :number, "Show line numbers", :short => 'n', :default => false
53
54
  opt :force, "Force color even when stdout is not a tty", :short => 'f', :default => false
54
55
  opt :version, "Print version and exit", :short => 'v'
55
56
  opt :help, "Show this message", :short => 'h'
@@ -52,8 +52,9 @@ module Lol
52
52
  break
53
53
  end
54
54
  buf.force_encoding(fd.external_encoding)
55
- buf.lines.each do |line|
55
+ buf.lines.each_with_index do |line, i|
56
56
  opts[:os] += 1
57
+ line = format('%6d %s', i + 1, line) if opts[:number]
57
58
  println(line, opts)
58
59
  end
59
60
  end
@@ -1,3 +1,3 @@
1
1
  module Lolcat
2
- VERSION = "99.9.21"
2
+ VERSION = "99.9.69"
3
3
  end
@@ -1,4 +1,4 @@
1
- .TH LOLCAT 6 "June 11, 2017"
1
+ .TH LOLCAT 6 "April 4, 2019"
2
2
  .\" Please adjust this date whenever revising the manpage.
3
3
  .SH NAME
4
4
  lolcat \- rainbow coloring effect for text console display
@@ -52,6 +52,9 @@ Inverts the background and foreground colors.
52
52
  \fB\-t\fP, \fB\-\-truecolor\fP
53
53
  Enables 24-bit truecolor mode.
54
54
  .TP
55
+ \fB\-n\fP, \fB\-\-number\fP
56
+ Number all output lines
57
+ .TP
55
58
  \fB\-f\fP, \fB\-\-force\fP
56
59
  Force color even when stdout is not a tty.
57
60
  .TP
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lolcat
3
3
  version: !ruby/object:Gem::Version
4
- version: 99.9.21
4
+ version: 99.9.69
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-11 00:00:00.000000000 Z
11
+ date: 2019-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake