epitools 0.4.13 → 0.4.14
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/epitools.gemspec +2 -2
- data/lib/epitools/clitools.rb +4 -0
- data/lib/epitools/zopen.rb +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.14
|
data/epitools.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{epitools}
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.14"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["epitron"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-03-01}
|
13
13
|
s.description = %q{Miscellaneous utility libraries to make my life easier.}
|
14
14
|
s.email = %q{chris@ill-logic.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/epitools/clitools.rb
CHANGED
@@ -54,6 +54,10 @@ def lesspipe(*args)
|
|
54
54
|
params << "-R" unless options[:color] == false
|
55
55
|
params << "-S" unless options[:wrap] == true
|
56
56
|
params << "-F" unless options[:always] == true
|
57
|
+
if options[:tail] == true
|
58
|
+
params << "+\\>"
|
59
|
+
$stderr.puts "Seeking to end of stream..."
|
60
|
+
end
|
57
61
|
params << "-X"
|
58
62
|
|
59
63
|
IO.popen("less #{params * ' '}", "w") do |less|
|
data/lib/epitools/zopen.rb
CHANGED
@@ -20,9 +20,9 @@ def zopen(filename, mode="r")
|
|
20
20
|
|
21
21
|
if filename =~ /\.gz$/
|
22
22
|
case mode
|
23
|
-
when "r"
|
23
|
+
when "r", "rb"
|
24
24
|
file = Zlib::GzipReader.new(file)
|
25
|
-
when "w"
|
25
|
+
when "w", "wb"
|
26
26
|
file = Zlib::GzipWriter.new(file)
|
27
27
|
else
|
28
28
|
raise "Unknown mode: #{mode.inspect}. zopen only supports 'r' and 'w'."
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: epitools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.4.
|
5
|
+
version: 0.4.14
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- epitron
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-03-01 00:00:00 -05:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|