lolcat 42.24.0 → 42.24.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ass/screenshot.png +0 -0
- data/lib/lolcat/cat.rb +10 -4
- data/lib/lolcat/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab93abe8e7d53af236ec646e4c198e4e3e56cb1c
|
4
|
+
data.tar.gz: bd145e7a94e6c8c2cb0b59757b775a6502950d66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80b3e97e2d833edb96751457f9760e539b98997b6d75ffc307551c5ddea297d758cbfb31666deffa14520ae8057f8bd926490f43682568991b3fcbc9e2e4bf3f
|
7
|
+
data.tar.gz: e7c7af8efa52c2bd73df211c603dfeebea72c0ab7aa3224d335ad6559d6000d340330a3693c6f20436a35867e998149ffa53e7e8b228d19cb5e50f72f6e0168e
|
data/ass/screenshot.png
CHANGED
Binary file
|
data/lib/lolcat/cat.rb
CHANGED
@@ -100,15 +100,21 @@ FOOTER
|
|
100
100
|
begin
|
101
101
|
files = ARGV.empty? ? [:stdin] : ARGV[0..-1]
|
102
102
|
files.each do |file|
|
103
|
-
fd =
|
103
|
+
fd = $stdin if file == '-' or file == :stdin
|
104
104
|
begin
|
105
|
-
fd = File.open
|
105
|
+
fd = File.open(file, "r") unless fd == $stdin
|
106
106
|
|
107
107
|
if $stdout.tty? or opts[:force]
|
108
108
|
Lol.cat fd, opts
|
109
109
|
else
|
110
|
-
|
111
|
-
|
110
|
+
if fd.tty?
|
111
|
+
fd.each do |line|
|
112
|
+
$stdout.write(line)
|
113
|
+
end
|
114
|
+
else
|
115
|
+
until fd.eof? do
|
116
|
+
$stdout.write(fd.read(8192))
|
117
|
+
end
|
112
118
|
end
|
113
119
|
end
|
114
120
|
rescue Errno::ENOENT
|
data/lib/lolcat/version.rb
CHANGED
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: 42.24.
|
4
|
+
version: 42.24.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Moe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|