notified_tail 0.2.0 → 0.2.1

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
2
  SHA1:
3
- metadata.gz: fa437427fdd1f03240d821e5f1a54aab0b6355b0
4
- data.tar.gz: aee28adbc8cc8fded7ec0d43814e5d85166b18f4
3
+ metadata.gz: 0de79d0364ed841a57e4ceda6da11fbd9ae8ab27
4
+ data.tar.gz: 15fa18f4bd0b73d769f404b5f540da291dfdc6e4
5
5
  SHA512:
6
- metadata.gz: c5307f2e8fbe14b24a20026e3481fce94ec7b47003a4214faf75717b554b54bc2e081461cebf18db9f5eea920588f3beb22b0d6cb92de1b5909531b9ed077295
7
- data.tar.gz: d73efb21eb53a20db71335a63580c0dc7526f440a056affd99979b35c4c01e3baea805549af4a5a2e97e6d81e4b2031230633ab159b326224953c0b3917b4994
6
+ metadata.gz: bfda4eecd072f4e105977d57e8d6243b695aa3551efe895a220929a58dd7bc06041ab6036a0daea8114c39fc5824939a13117a34f02b4733ca87c8ac42bd208b
7
+ data.tar.gz: cdc766f181af75455dbd6e80313de323fd7c1e300d190c7a5f6604ad3a8d942b9e0679dde230dfc77e3923e6f9122230f10949162ae8b5cd41064488cf3008ab
@@ -2,6 +2,8 @@
2
2
  # Inspired by http://rubyforadmins.com/reading-growing-files
3
3
  class NotifiedTail
4
4
 
5
+ attr_reader :file_path
6
+
5
7
  # Yields complete lines, one at a time.
6
8
  # Works even if file doesn't exist yet.
7
9
  # @param file_path [String] The file to tail
@@ -15,6 +17,7 @@ class NotifiedTail
15
17
  end
16
18
 
17
19
  def tail(file_path, opts, &on_line)
20
+ @file_path = file_path
18
21
  @stopped = false
19
22
  seek_end = opts.fetch(:seek_end, true)
20
23
  @force_poll = opts.fetch(:force_poll, false)
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'notified_tail'
7
- spec.version = '0.2.0'
7
+ spec.version = '0.2.1'
8
8
  spec.authors = ['Peter Winton']
9
9
  spec.email = ['pwinton@indigobio.com']
10
10
  spec.summary = %q{Low latency file tailing in ruby}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notified_tail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Winton