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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aab0c88e8986e3853bd8152fc7c50a6cef49dfdc
4
- data.tar.gz: c922cb415eaf2820c84c63c73688a50cbee3356a
3
+ metadata.gz: ab93abe8e7d53af236ec646e4c198e4e3e56cb1c
4
+ data.tar.gz: bd145e7a94e6c8c2cb0b59757b775a6502950d66
5
5
  SHA512:
6
- metadata.gz: 48dd80c09ae7084db7171ccb3711b462aa31ad13f735c8501312708b4679d21a04975030338ddafee1045afcab41374d99f8bfeffcf2fb3362f46e37adda6b05
7
- data.tar.gz: 2a82e434dd9121ecea4f92bd45ec844eb4c9ecd3f2c0df36a50228bb39dc089ecd1e2dbe3d72f32a270150f1e73763f56aacdac4f7c7422d3a8c320f643a4cf8
6
+ metadata.gz: 80b3e97e2d833edb96751457f9760e539b98997b6d75ffc307551c5ddea297d758cbfb31666deffa14520ae8057f8bd926490f43682568991b3fcbc9e2e4bf3f
7
+ data.tar.gz: e7c7af8efa52c2bd73df211c603dfeebea72c0ab7aa3224d335ad6559d6000d340330a3693c6f20436a35867e998149ffa53e7e8b228d19cb5e50f72f6e0168e
Binary file
@@ -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 = ARGF if file == '-' or file == :stdin
103
+ fd = $stdin if file == '-' or file == :stdin
104
104
  begin
105
- fd = File.open file unless fd == ARGF
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
- until fd.eof? do
111
- $stdout.write(fd.read(8192))
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
@@ -1,3 +1,3 @@
1
1
  module Lolcat
2
- VERSION = "42.24.0"
2
+ VERSION = "42.24.1"
3
3
  end
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.0
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: 2016-12-26 00:00:00.000000000 Z
11
+ date: 2017-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake