file-tail 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.all_images.yml +27 -0
- data/.gitignore +2 -0
- data/.travis.yml +4 -2
- data/CHANGES.md +160 -0
- data/Gemfile +0 -5
- data/Rakefile +6 -3
- data/VERSION +1 -1
- data/file-tail.gemspec +12 -21
- data/lib/file/tail/version.rb +1 -1
- data/lib/file/tail.rb +6 -2
- data/tests/file_tail_test.rb +17 -10
- metadata +54 -12
- data/CHANGES +0 -82
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2cf544dbe9b55dc5369593f301c270154af027cdafa4ebfe69425f0384fcc320
|
4
|
+
data.tar.gz: 877cb588d7acd10fbe1c59672fc609c17dc1fd29eda5b3091c79f2f1791bc96f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbef35840950052d1a944812a0fc161f8a9bad1111d8062091a4b0098408eb34b051fb3dce02a0c44c0f2a4e5ff2b4e88aeefd1301f56e6084cc70a6a578e9f2
|
7
|
+
data.tar.gz: e7fa4e45186734548b327177d3fa44cbc2b214a02cf716f2de589e6d6bf6b83d4fba5e229b765c127d11a9cad87fd92d4f1dcf4813ebd82ea7b2ec6c1acedfa0
|
data/.all_images.yml
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
dockerfile: |-
|
2
|
+
RUN apk add --no-cache build-base git bash
|
3
|
+
RUN bash <<NUR
|
4
|
+
if [[ "$(ruby -e 'print RUBY_VERSION')" > '3' ]]
|
5
|
+
then
|
6
|
+
gem update --system
|
7
|
+
gem install gem_hadar bundler
|
8
|
+
else
|
9
|
+
gem install gem_hadar
|
10
|
+
gem install bundler -v 2.4.22
|
11
|
+
fi
|
12
|
+
NUR
|
13
|
+
fail_fast: true
|
14
|
+
script: &script |-
|
15
|
+
echo -e "\e[1m"
|
16
|
+
ruby -v
|
17
|
+
echo -e "\e[0m"
|
18
|
+
bundle install
|
19
|
+
rake test
|
20
|
+
|
21
|
+
images:
|
22
|
+
ruby:3.3-alpine: *script
|
23
|
+
ruby:3.2-alpine: *script
|
24
|
+
ruby:3.1-alpine: *script
|
25
|
+
ruby:3.0-alpine: *script
|
26
|
+
ruby:2.7-alpine: *script
|
27
|
+
ruby:2.6-alpine: *script
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/CHANGES.md
ADDED
@@ -0,0 +1,160 @@
|
|
1
|
+
# Changes
|
2
|
+
|
3
|
+
## 2024-09-13 v1.3.0
|
4
|
+
|
5
|
+
### Significant Changes
|
6
|
+
|
7
|
+
* **Improved waiting for log output by counting lines**
|
8
|
+
+ Increased timeout from 2 seconds to 10 seconds in multiple places
|
9
|
+
* **Added Ruby version check in Dockerfile**
|
10
|
+
+ Update `gem update --system` and installation to be conditional on Ruby version
|
11
|
+
+ Replace `bundle` with `bundle install` in script section
|
12
|
+
* **Convert CHANGES file to CHANGES\.md**
|
13
|
+
|
14
|
+
### Bug Fixes
|
15
|
+
|
16
|
+
* **Add exit handler to delete temporary file**
|
17
|
+
- Added at_exit block to delete test file created in setup method.
|
18
|
+
* **Refactor File class for debugging**
|
19
|
+
- Remove hardcoded `$DEBUG` variable usage in reopen_file and output_debug_information methods
|
20
|
+
- Introduce debug? method to check if `FILE_TAIL_DEBUG` environment variable is set to 1.
|
21
|
+
|
22
|
+
### Dependency Updates
|
23
|
+
|
24
|
+
* **Update Ruby dependencies and add new development dependencies**
|
25
|
+
+ Added `.all_images.yml` file with Dockerfile configuration
|
26
|
+
+ Updated Gemfile to use Ruby **3.5.18** instead of **2.7.8**
|
27
|
+
+ Updated Rakefile to ignore additional files
|
28
|
+
+ Updated `file-tail.gemspec` to include `.all_images.yml` in the list of files
|
29
|
+
+ Updated `tests/file_tail_test.rb` to use absolute path for test file
|
30
|
+
+ Added new development dependencies: `all_images`, `simplecov`, and `debug`
|
31
|
+
+ Updated dependency versions: `gem_hadar` to **1.17.1**, `test-unit` to
|
32
|
+
**3.0**, and `tins` to **1.0**
|
33
|
+
|
34
|
+
## 2016-04-19 v1.2.0
|
35
|
+
|
36
|
+
* Make line separator configurable
|
37
|
+
|
38
|
+
## 2016-04-19 v1.1.1
|
39
|
+
|
40
|
+
* Fix tests on Ruby 2.3.0
|
41
|
+
|
42
|
+
## 2014-09-26 v1.1.0
|
43
|
+
|
44
|
+
* Depend on tins ~ 1.0
|
45
|
+
|
46
|
+
## 2012-05-31 v1.0.10
|
47
|
+
|
48
|
+
* Use rewind to force IO#lineno to be reset.
|
49
|
+
|
50
|
+
## 2012-05-31 v1.0.9
|
51
|
+
|
52
|
+
* Reopen file in :top mode at the beginning.
|
53
|
+
|
54
|
+
## 2011-12-24 v1.0.8
|
55
|
+
|
56
|
+
* Support simplecov.
|
57
|
+
|
58
|
+
## 2011-07-15 v1.0.7
|
59
|
+
|
60
|
+
* Use gem_hadar to shorten Rakefile.
|
61
|
+
|
62
|
+
## 2011-06-25 v1.0.6
|
63
|
+
|
64
|
+
* Create a gem spec file again.
|
65
|
+
* Added a File::Tail::Group to tail multiple files more easily.
|
66
|
+
|
67
|
+
## 2010-03-25 v1.0.5
|
68
|
+
|
69
|
+
* Added rtail executable, a nice app to supervise logfiles and logdirs.
|
70
|
+
* Disabled creation of gem spec file.
|
71
|
+
* Cleaned up documentation a bit.
|
72
|
+
|
73
|
+
## 2009-08-21 v1.0.4
|
74
|
+
|
75
|
+
* Fixed the threaded tests for Ruby 1.9.
|
76
|
+
* Create a gem spec file.
|
77
|
+
* Some cleanup.
|
78
|
+
|
79
|
+
## 2008-04-07 v1.0.3
|
80
|
+
|
81
|
+
* Danny Colligan <danny.colligan@sendori.com> reported a memory leak in long
|
82
|
+
running scripts using file-tail. I changed file-ta il to only use block.call,
|
83
|
+
which seems to improve the memory behaviour. I am still not sure, where the
|
84
|
+
problem actually stems f rom, though.
|
85
|
+
|
86
|
+
## 2007-04-19 v1.0.2
|
87
|
+
|
88
|
+
* make_doc.rb was missing from the source archive. Thanks to Rick Ohnemus
|
89
|
+
<rick.ohnemus@systemware.com> for reporting it.
|
90
|
+
|
91
|
+
## 2007-04-19 v1.0.1
|
92
|
+
|
93
|
+
* Bugfix: File::Tail::Logfile#open with block, now closes the file like
|
94
|
+
File#open does. Found by Alex Doan <alex.doan@wachovia. com>,
|
95
|
+
ruby-talk:248383.
|
96
|
+
|
97
|
+
## 2007-03-30 v1.0.0
|
98
|
+
|
99
|
+
* Bugfix: David.Barzilay@swisscom.com reported, that file tails may skip some
|
100
|
+
log file lines, after rotating it. I think, that I fixed that problem.
|
101
|
+
* Added a after_reopen callback as well, that is called after reopening of the
|
102
|
+
tailed file has occured.
|
103
|
+
* Removed rewind/wind methods even earlier than planned: I placed the
|
104
|
+
deprecation warning for rewind method in File instead of File::Tail, which
|
105
|
+
caused rewind to stop working completely after loading file/tail. Duh! I
|
106
|
+
blame vim's matchit, because it jump ed to the wrong end keyword.
|
107
|
+
|
108
|
+
## 2007-02-08 v0.1.4
|
109
|
+
|
110
|
+
* Renamed rewind method to backward, and wind method to forward, because
|
111
|
+
someone already had the good idea to name a method IO# rewind, which was
|
112
|
+
overwritten by the mixed in File::Tail methods. The old methods are now
|
113
|
+
deprecated and will be removed in a n ew 0.2.x version of the library.
|
114
|
+
* Added a bit more of documentation.
|
115
|
+
|
116
|
+
## 2005-08-20 v0.1.3
|
117
|
+
|
118
|
+
* Applied LOAD_PATH patch by Daniel Berger, binary mode changes were already in
|
119
|
+
the CVS. Seemed to be like cheating to me, thou gh. ;)
|
120
|
+
* Skipping one windows test for the moment, too. Sigh!
|
121
|
+
|
122
|
+
## 2004-09-30 v0.1.2
|
123
|
+
|
124
|
+
* First Rubyforge release
|
125
|
+
* Added Rakefile
|
126
|
+
* Supports gem build now.
|
127
|
+
|
128
|
+
## 2004-09-01 v0.1.1
|
129
|
+
|
130
|
+
* Josh Endries <josh@endries.org> found a bug that caused File::Tail to
|
131
|
+
malfunction on FreeBSD. Hotfix: Use a side effect of se ek to clearerr the
|
132
|
+
tailed file handle after EOFError has been raised.
|
133
|
+
|
134
|
+
## 2004-04-13 v0.1.0
|
135
|
+
|
136
|
+
* API documentation with rdoc.
|
137
|
+
* return_if_eof attribute added.
|
138
|
+
* Added array return mode for finite tail call without block given.
|
139
|
+
* install.rb now uses ruby version site_dir.
|
140
|
+
* Some code and directory structure cleanup.
|
141
|
+
|
142
|
+
## 2002-08-02 v0.0.2
|
143
|
+
|
144
|
+
* Heavy refactoring, more and smaller methods and expception handling
|
145
|
+
* Added check for inode and device equality of files as suggested by James
|
146
|
+
F.Hranicky <jfh@cise.ufl.edu> and Curt Sampson <cjs@ cynic.net> to cover
|
147
|
+
remove rotation
|
148
|
+
* If filesize shrinks suddenly, File::Tail assumes that copy and truncate
|
149
|
+
rotation has happend: The file is reopened and every new line is handled.
|
150
|
+
* NFS-Fix: Errno::ESTALE is caught.
|
151
|
+
* wind added to skip the first n lines, as James F.Hranicky's suggested and
|
152
|
+
changed name of last-method to rewind, because I li ked his method names
|
153
|
+
better than mine ;)
|
154
|
+
* Renamed next to tail either.
|
155
|
+
* The API has changed - but I think very few people care at the moment.
|
156
|
+
* Lots of tests added.
|
157
|
+
|
158
|
+
## 2002-07-30 v0.0.1
|
159
|
+
|
160
|
+
* Initial Release
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -11,12 +11,15 @@ GemHadar do
|
|
11
11
|
summary "#{path_name.camelize} for Ruby"
|
12
12
|
description 'Library to tail files in Ruby'
|
13
13
|
test_dir 'tests'
|
14
|
-
ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock', 'coverage', '*.rbc', '.rbx',
|
14
|
+
ignore '.*.sw[pon]', 'pkg', 'Gemfile.lock', 'coverage', '*.rbc', '.rbx',
|
15
|
+
'.AppleDouble', '.bundle', 'errors.lst', '.utilsrc'
|
15
16
|
readme 'README.md'
|
16
17
|
licenses << 'Apache-2.0'
|
17
18
|
|
18
|
-
|
19
19
|
dependency 'tins', '~>1.0'
|
20
20
|
|
21
|
-
development_dependency 'test-unit', '~>
|
21
|
+
development_dependency 'test-unit', '~>3.0'
|
22
|
+
development_dependency 'all_images'
|
23
|
+
development_dependency 'simplecov'
|
24
|
+
development_dependency 'debug'
|
22
25
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.3.0
|
data/file-tail.gemspec
CHANGED
@@ -1,40 +1,31 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: file-tail 1.
|
2
|
+
# stub: file-tail 1.3.0 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "file-tail".freeze
|
6
|
-
s.version = "1.
|
6
|
+
s.version = "1.3.0".freeze
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib".freeze]
|
10
10
|
s.authors = ["Florian Frank".freeze]
|
11
|
-
s.date = "
|
11
|
+
s.date = "2024-09-13"
|
12
12
|
s.description = "Library to tail files in Ruby".freeze
|
13
13
|
s.email = "flori@ping.de".freeze
|
14
14
|
s.extra_rdoc_files = ["README.md".freeze, "lib/file-tail.rb".freeze, "lib/file/tail.rb".freeze, "lib/file/tail/group.rb".freeze, "lib/file/tail/line_extension.rb".freeze, "lib/file/tail/logfile.rb".freeze, "lib/file/tail/tailer.rb".freeze, "lib/file/tail/version.rb".freeze]
|
15
|
-
s.files = [".gitignore".freeze, ".travis.yml".freeze, "CHANGES".freeze, "COPYING".freeze, "Gemfile".freeze, "README.md".freeze, "Rakefile".freeze, "VERSION".freeze, "bin/rtail".freeze, "examples/pager.rb".freeze, "examples/tail.rb".freeze, "file-tail.gemspec".freeze, "lib/file-tail.rb".freeze, "lib/file/tail.rb".freeze, "lib/file/tail/group.rb".freeze, "lib/file/tail/line_extension.rb".freeze, "lib/file/tail/logfile.rb".freeze, "lib/file/tail/tailer.rb".freeze, "lib/file/tail/version.rb".freeze, "tests/file_tail_group_test.rb".freeze, "tests/file_tail_test.rb".freeze, "tests/test_helper.rb".freeze]
|
15
|
+
s.files = [".all_images.yml".freeze, ".gitignore".freeze, ".travis.yml".freeze, "CHANGES.md".freeze, "COPYING".freeze, "Gemfile".freeze, "README.md".freeze, "Rakefile".freeze, "VERSION".freeze, "bin/rtail".freeze, "examples/pager.rb".freeze, "examples/tail.rb".freeze, "file-tail.gemspec".freeze, "lib/file-tail.rb".freeze, "lib/file/tail.rb".freeze, "lib/file/tail/group.rb".freeze, "lib/file/tail/line_extension.rb".freeze, "lib/file/tail/logfile.rb".freeze, "lib/file/tail/tailer.rb".freeze, "lib/file/tail/version.rb".freeze, "tests/file_tail_group_test.rb".freeze, "tests/file_tail_test.rb".freeze, "tests/test_helper.rb".freeze]
|
16
16
|
s.homepage = "http://github.com/flori/file-tail".freeze
|
17
17
|
s.licenses = ["Apache-2.0".freeze]
|
18
18
|
s.rdoc_options = ["--title".freeze, "File-tail - File::Tail for Ruby".freeze, "--main".freeze, "README.md".freeze]
|
19
|
-
s.rubygems_version = "
|
19
|
+
s.rubygems_version = "3.5.18".freeze
|
20
20
|
s.summary = "File::Tail for Ruby".freeze
|
21
21
|
s.test_files = ["tests/file_tail_group_test.rb".freeze, "tests/file_tail_test.rb".freeze, "tests/test_helper.rb".freeze]
|
22
22
|
|
23
|
-
|
24
|
-
s.specification_version = 4
|
23
|
+
s.specification_version = 4
|
25
24
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
s.add_dependency(%q<test-unit>.freeze, ["~> 2.4.0"])
|
33
|
-
s.add_dependency(%q<tins>.freeze, ["~> 1.0"])
|
34
|
-
end
|
35
|
-
else
|
36
|
-
s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.9.1"])
|
37
|
-
s.add_dependency(%q<test-unit>.freeze, ["~> 2.4.0"])
|
38
|
-
s.add_dependency(%q<tins>.freeze, ["~> 1.0"])
|
39
|
-
end
|
25
|
+
s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.17.1".freeze])
|
26
|
+
s.add_development_dependency(%q<test-unit>.freeze, ["~> 3.0".freeze])
|
27
|
+
s.add_development_dependency(%q<all_images>.freeze, [">= 0".freeze])
|
28
|
+
s.add_development_dependency(%q<simplecov>.freeze, [">= 0".freeze])
|
29
|
+
s.add_development_dependency(%q<debug>.freeze, [">= 0".freeze])
|
30
|
+
s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.0".freeze])
|
40
31
|
end
|
data/lib/file/tail/version.rb
CHANGED
data/lib/file/tail.rb
CHANGED
@@ -272,7 +272,7 @@ class File
|
|
272
272
|
end
|
273
273
|
|
274
274
|
def reopen_file(mode)
|
275
|
-
|
275
|
+
debug? and $stdout.print "Reopening '#{path}', mode = #{mode}.\n"
|
276
276
|
@no_read = 0
|
277
277
|
reopen(path)
|
278
278
|
if mode == :bottom
|
@@ -290,7 +290,7 @@ class File
|
|
290
290
|
end
|
291
291
|
|
292
292
|
def output_debug_information
|
293
|
-
|
293
|
+
debug? or return
|
294
294
|
STDERR.puts({
|
295
295
|
:path => path,
|
296
296
|
:lines => @lines,
|
@@ -300,6 +300,10 @@ class File
|
|
300
300
|
}.inspect)
|
301
301
|
self
|
302
302
|
end
|
303
|
+
|
304
|
+
def debug?
|
305
|
+
ENV['FILE_TAIL_DEBUG'].to_i == 1
|
306
|
+
end
|
303
307
|
end
|
304
308
|
end
|
305
309
|
|
data/tests/file_tail_test.rb
CHANGED
@@ -4,13 +4,16 @@ require 'test_helper'
|
|
4
4
|
require 'file/tail'
|
5
5
|
require 'timeout'
|
6
6
|
require 'thread'
|
7
|
+
require 'fileutils'
|
7
8
|
Thread.abort_on_exception = true
|
8
9
|
|
9
10
|
class FileTailTest < Test::Unit::TestCase
|
10
11
|
include File::Tail
|
12
|
+
include FileUtils
|
11
13
|
|
12
14
|
def setup
|
13
|
-
@out = File.new("test.#$$", "wb")
|
15
|
+
@out = File.new(File.join(__dir__, "test.#$$"), "wb")
|
16
|
+
at_exit { rm_f File.expand_path(@out.path) }
|
14
17
|
append(@out, 100)
|
15
18
|
@in = File.new(@out.path, "rb")
|
16
19
|
@in.extend(File::Tail)
|
@@ -194,7 +197,7 @@ class FileTailTest < Test::Unit::TestCase
|
|
194
197
|
lines = []
|
195
198
|
logger = Thread.new do
|
196
199
|
begin
|
197
|
-
Timeout::timeout(
|
200
|
+
Timeout::timeout(10) do
|
198
201
|
@in.tail do |l|
|
199
202
|
lines << l
|
200
203
|
end
|
@@ -225,7 +228,7 @@ class FileTailTest < Test::Unit::TestCase
|
|
225
228
|
lines = []
|
226
229
|
logger = Thread.new do
|
227
230
|
begin
|
228
|
-
Timeout::timeout(
|
231
|
+
Timeout::timeout(10) do
|
229
232
|
@in.tail do |l|
|
230
233
|
lines << l
|
231
234
|
end
|
@@ -261,7 +264,7 @@ class FileTailTest < Test::Unit::TestCase
|
|
261
264
|
lines = []
|
262
265
|
logger = Thread.new do
|
263
266
|
begin
|
264
|
-
Timeout::timeout(
|
267
|
+
Timeout::timeout(10) do
|
265
268
|
@in.tail(15) do |l|
|
266
269
|
lines << l
|
267
270
|
end
|
@@ -298,7 +301,7 @@ class FileTailTest < Test::Unit::TestCase
|
|
298
301
|
lines = []
|
299
302
|
logger = Thread.new do
|
300
303
|
begin
|
301
|
-
Timeout::timeout(
|
304
|
+
Timeout::timeout(10) do
|
302
305
|
@in.tail(110) do |l|
|
303
306
|
lines << l
|
304
307
|
end
|
@@ -307,8 +310,10 @@ class FileTailTest < Test::Unit::TestCase
|
|
307
310
|
end
|
308
311
|
end
|
309
312
|
appender = Thread.new do
|
310
|
-
|
311
|
-
|
313
|
+
Timeout::timeout(10) do
|
314
|
+
until lines.size == 100
|
315
|
+
sleep 0.1
|
316
|
+
end
|
312
317
|
end
|
313
318
|
@out.close
|
314
319
|
File.unlink(@out.path)
|
@@ -331,7 +336,7 @@ class FileTailTest < Test::Unit::TestCase
|
|
331
336
|
lines = []
|
332
337
|
logger = Thread.new do
|
333
338
|
begin
|
334
|
-
Timeout::timeout(
|
339
|
+
Timeout::timeout(10) do
|
335
340
|
@in.tail(110) do |l|
|
336
341
|
lines << l
|
337
342
|
end
|
@@ -340,8 +345,10 @@ class FileTailTest < Test::Unit::TestCase
|
|
340
345
|
end
|
341
346
|
end
|
342
347
|
appender = Thread.new do
|
343
|
-
|
344
|
-
|
348
|
+
Timeout::timeout(10) do
|
349
|
+
until lines.size == 100
|
350
|
+
sleep 0.1
|
351
|
+
end
|
345
352
|
end
|
346
353
|
@out.truncate 0
|
347
354
|
@out.close
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: file-tail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Frank
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|
@@ -16,28 +16,70 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.17.1
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.17.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: test-unit
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '3.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: '3.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: all_images
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: simplecov
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: debug
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
41
83
|
- !ruby/object:Gem::Dependency
|
42
84
|
name: tins
|
43
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,9 +108,10 @@ extra_rdoc_files:
|
|
66
108
|
- lib/file/tail/tailer.rb
|
67
109
|
- lib/file/tail/version.rb
|
68
110
|
files:
|
111
|
+
- ".all_images.yml"
|
69
112
|
- ".gitignore"
|
70
113
|
- ".travis.yml"
|
71
|
-
- CHANGES
|
114
|
+
- CHANGES.md
|
72
115
|
- COPYING
|
73
116
|
- Gemfile
|
74
117
|
- README.md
|
@@ -92,7 +135,7 @@ homepage: http://github.com/flori/file-tail
|
|
92
135
|
licenses:
|
93
136
|
- Apache-2.0
|
94
137
|
metadata: {}
|
95
|
-
post_install_message:
|
138
|
+
post_install_message:
|
96
139
|
rdoc_options:
|
97
140
|
- "--title"
|
98
141
|
- File-tail - File::Tail for Ruby
|
@@ -111,9 +154,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
154
|
- !ruby/object:Gem::Version
|
112
155
|
version: '0'
|
113
156
|
requirements: []
|
114
|
-
|
115
|
-
|
116
|
-
signing_key:
|
157
|
+
rubygems_version: 3.5.18
|
158
|
+
signing_key:
|
117
159
|
specification_version: 4
|
118
160
|
summary: File::Tail for Ruby
|
119
161
|
test_files:
|
data/CHANGES
DELETED
@@ -1,82 +0,0 @@
|
|
1
|
-
2016-04-19 * 1.2.0 * Make line separator configurable
|
2
|
-
2016-04-19 * 1.1.1 * Fix tests on Ruby 2.3.0
|
3
|
-
2014-09-26 * 1.1.0 * Depend on tins ~ 1.0
|
4
|
-
2012-05-31 * 1.0.10 * Use rewind to force IO#lineno to be reset.
|
5
|
-
2012-05-31 * 1.0.9 * Reopen file in :top mode at the beginning.
|
6
|
-
2011-12-24 * 1.0.8 * Support simplecov.
|
7
|
-
2011-07-15 * 1.0.7 * Use gem_hadar to shorten Rakefile.
|
8
|
-
2011-06-25 * 1.0.6 * Create a gem spec file again.
|
9
|
-
* Added a File::Tail::Group to tail multiple files more easily.
|
10
|
-
2010-03-25 * 1.0.5 * Added rtail executable, a nice app to supervise logfiles
|
11
|
-
and logdirs.
|
12
|
-
* Disabled creation of gem spec file.
|
13
|
-
* Cleaned up documentation a bit.
|
14
|
-
2009-08-21 * 1.0.4 * Fixed the threaded tests for Ruby 1.9.
|
15
|
-
* Create a gem spec file.
|
16
|
-
* Some cleanup.
|
17
|
-
2008-04-07 * 1.0.3 * Danny Colligan <danny.colligan@sendori.com> reported a
|
18
|
-
memory leak in long running scripts using file-tail. I
|
19
|
-
think this might be a ruby related problem, which is
|
20
|
-
caused/aggravated by using yield after having &block
|
21
|
-
parameter in a method. I changed file-tail to only use
|
22
|
-
block.call, which seems to improve the memory behaviour. I
|
23
|
-
am still not sure, where the problem actually stems
|
24
|
-
from, though.
|
25
|
-
2007-04-19 * 1.0.2 * make_doc.rb was missing from the source archive. Thanks to
|
26
|
-
Rick Ohnemus <rick.ohnemus@systemware.com> for reporting it.
|
27
|
-
2007-04-19 * 1.0.1 * Bugfix: File::Tail::Logfile#open with block, now closes
|
28
|
-
the file like File#open does. Found by Alex Doan
|
29
|
-
<alex.doan@wachovia.com>, ruby-talk:248383.
|
30
|
-
2007-03-30 * 1.0.0 * Bugfix: David.Barzilay@swisscom.com reported, that file
|
31
|
-
tails may skip some log file lines, after rotating it. I
|
32
|
-
think, that I fixed that problem.
|
33
|
-
I added a after_reopen callback as well, that is called
|
34
|
-
after reopening of the tailed file has occured.
|
35
|
-
* Removed rewind/wind methods even earlier than planned: I
|
36
|
-
placed the deprecation warning for rewind method in File
|
37
|
-
instead of File::Tail, which caused rewind to stop working
|
38
|
-
completely after loading file/tail. Duh! I blame vim's
|
39
|
-
matchit, because it jumped to the wrong end keyword.
|
40
|
-
2007-02-08 * 0.1.4 * Renamed rewind method to backward, and wind method to
|
41
|
-
forward, because someone already had the good idea to name
|
42
|
-
a method IO#rewind, which was overwritten by the mixed in
|
43
|
-
File::Tail methods. The old methods are now deprecated and
|
44
|
-
will be removed in a new 0.2.x version of the library.
|
45
|
-
* Added a bit more of documentation.
|
46
|
-
2005-08-20 * 0.1.3 * Applied LOAD_PATH patch by Daniel Berger, binary mode
|
47
|
-
changes were already in the CVS. Seemed to be like cheating
|
48
|
-
to me, though. ;)
|
49
|
-
* Skipping one windows test for the moment, too. Sigh!
|
50
|
-
2004-09-30 * 0.1.2 * First Rubyforge release
|
51
|
-
* Added Rakefile
|
52
|
-
* Supports gem build now.
|
53
|
-
2004-09-01 * 0.1.1 * Josh Endries <josh@endries.org> found a bug
|
54
|
-
that caused File::Tail to malfunction on FreeBSD.
|
55
|
-
Hotfix: Use a side effect of seek to clearerr the tailed
|
56
|
-
file handle after EOFError has been raised.
|
57
|
-
2004-04-13 * 0.1.0 * API documentation with rdoc.
|
58
|
-
* return_if_eof attribute added.
|
59
|
-
* Added array return mode for finite tail call without block
|
60
|
-
given.
|
61
|
-
* install.rb now uses ruby version site_dir.
|
62
|
-
* Some code and directory structure cleanup.
|
63
|
-
2002-08-02 * 0.0.2 * Heavy refactoring, more and smaller methods
|
64
|
-
and expception handling
|
65
|
-
* Added check for inode and device equality of files
|
66
|
-
as suggested by
|
67
|
-
James F.Hranicky <jfh@cise.ufl.edu> and
|
68
|
-
Curt Sampson <cjs@cynic.net> to cover remove
|
69
|
-
rotation
|
70
|
-
* If filesize shrinks suddenly, File::Tail assumes that
|
71
|
-
copy and truncate rotation has happend: The file
|
72
|
-
is reopened and every new line is handled.
|
73
|
-
* NFS-Fix: Errno::ESTALE is caught.
|
74
|
-
* wind added to skip the first n lines, as
|
75
|
-
James F.Hranicky's suggested and changed
|
76
|
-
name of last-method to rewind, because I liked
|
77
|
-
his method names better than mine ;)
|
78
|
-
* Renamed next to tail either.
|
79
|
-
* The API has changed - but I think very few people
|
80
|
-
care at the moment.
|
81
|
-
* Lots of tests added.
|
82
|
-
2002-07-30 * 0.0.1 * Initial Release
|