
Security News
Rspack Introduces Rslint, a TypeScript-First Linter Written in Go
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
= IO::Tail for Ruby
== Description
This is a small ruby library that allows it to "tail" various IOs in Ruby, including following a file, that still is growing like the unix command 'tail -f' can.
== Download
The latest version of IO::Tail (io-tail) can be found at
https://github.com/octplane/ruby-io-tail
Online Documentation should be located at
http://rubydoc.info/github/octplane/ruby-io-tail/
== Installation
To install io-tail via its gem type:
To install from the source repository, just type into the command line as root:
== Usage
File::Tail is a module in the File class. A lightweight class interface for logfiles can be seen under File::Tail::Logfile.
Direct extension of File objects with File::Tail works like that: File.open(filename) do |log| log.extend(File::Tail) log.interval = 10 log.backward(10) log.tail { |line| puts line } end
It's also possible to mix File::Tail in your own File classes (see also File::Tail::Logfile): class MyFile < File include File::Tail end log = MyFile.new("myfile") log.interval = 10 log.backward(10) log.tail { |line| print line }
The forward/backward method returns self, so it's possible to chain methods together like that: log.backward(10).tail { |line| puts line }
A command line utility named rtail, that uses File::Tail is provided as well.
== Documentation
To create the documentation of this module, type
$ rake doc
and the API documentation is generated.
In the examples direcotry is a small example of tail and pager program that use this module. You also may want look at the end of file/tail.rb for a little example.
== Author
Pierre Baillet mailto:pierre@baillet.name
Florian Frank mailto:flori@ping.de
== License
This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License Version 2 as published by the Free Software Foundation: http://www.gnu.org/copyleft/gpl.html
FAQs
Unknown package
We found that io-tail demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.