Giter Club home page Giter Club logo

file-tail's People

Contributors

flori avatar gregors avatar junaruga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

file-tail's Issues

require 'file-tail' fails for gem

I think it's because the gemspec was removed for v1.0.5.

Here's what I do:
sudo gem install file-tail
irb
irb(main):001:0> require 'rubygems'
irb(main):002:0> require 'file-tail'
LoadError: no such file to load -- file-tail

Using ruby enterprise edition 1.8.7 on OS X 10.6.2.

reopen_file(:top) should reset lineno

via a rewind or self.lineno=0.

For example, I'm using the following monkey patch now

class File; module Tail
  alias old_reopen_file reopen_file
  def reopen_file mode; old_reopen_file(mode); rewind if mode == :top; end
end; end

test_tail_change2 randomly fails on debian

Hi,

On Debian systems, the test test_tail_change2 has a tendency to fail (on my system, it sometimes passes, but fails about half of the time I would say).
The bug is reported there with version 1.1.1, but happens also with 1.2:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=912249

Here is the output:

...........F
===============================================================================================
     350:     end
     351:     appender.join
     352:     logger.join
  => 353:     assert_equal(110, lines.size)
     354:     assert reopened
     355:     assert_equal 10, @in.lineno
     356:   end
/home/boutil/debian/ruby-team/ruby-file-tail/tests/file_tail_test.rb:353:in `test_tail_change2'
<110> expected but was
<20>

diff:
? 110
? 2  
Failure: test_tail_change2(FileTailTest)
===============================================================================================
........
Finished in 24.713305938 seconds.
-----------------------------------------------------------------------------------------------
20 tests, 70 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
95% passed
-----------------------------------------------------------------------------------------------
0.81 tests/s, 2.83 assertions/s

Thanks for any insight about the issue. I can run some commands to help you debugging if needed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.