file-tail 1.1.1 → 1.3.0

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
- SHA1:
3
- metadata.gz: ebfb5840fe564aca285742374f4039c40b26fd28
4
- data.tar.gz: 94b0aa1507f2fa225f1527e58f6149612c000fd1
2
+ SHA256:
3
+ metadata.gz: 2cf544dbe9b55dc5369593f301c270154af027cdafa4ebfe69425f0384fcc320
4
+ data.tar.gz: 877cb588d7acd10fbe1c59672fc609c17dc1fd29eda5b3091c79f2f1791bc96f
5
5
  SHA512:
6
- metadata.gz: 09e0d765e5965cdca0b8a9e0f65e03fcd95b7e0826be8dd3874c262d6a34a7f9a0d7f587320264e588b89fbb8f1008cd48fe0c6f10c6e256d155b0290e3083e3
7
- data.tar.gz: fd48a7ec2ecc5aae8924dd8551c33951aad5a0115154649a67d9b909ef28a9693247efedb6ce83f7ea95402b2c7b58af74a567b41a15b2fa7df6f86929f64735
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
@@ -3,6 +3,8 @@
3
3
  .AppleDouble
4
4
  .bundle
5
5
  .rbx
6
+ .utilsrc
6
7
  Gemfile.lock
7
8
  coverage
9
+ errors.lst
8
10
  pkg
data/.travis.yml CHANGED
@@ -1,7 +1,10 @@
1
1
  rvm:
2
2
  - 2.1
3
3
  - 2.2
4
- - 2.3.0
4
+ - 2.3
5
+ - 2.4
6
+ - 2.5
7
+ - 2.6
5
8
  - ruby-head
6
9
  - jruby-head
7
10
  sudo: false
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