filewatch 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/filewatch/tail.rb +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e870d2d8c02f8283bae70e2d7120ca47de769f7
|
4
|
+
data.tar.gz: 7580dff4266e04c52d8656c1832b3892aa7e66aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35568d7cc38f8b99e0423515030a487df48368956c143fac4a0bb9a75c12056dfb0e2eef1ef20563be71a167ad16316857b15cd076671fa115d2a16e816fcf15
|
7
|
+
data.tar.gz: 120101f58c10f67f37e285acfd5c4f8386c13bbd6b1543cf41fd043f6d59166003a55660f2301ab798e849a6e4102bd257c65bfadf13894164fd9673446df6a4
|
data/lib/filewatch/tail.rb
CHANGED
@@ -162,6 +162,8 @@ module FileWatch
|
|
162
162
|
@files[path].sysseek(stat.size, IO::SEEK_SET)
|
163
163
|
@sincedb[sincedb_record_uid] = stat.size
|
164
164
|
end
|
165
|
+
elsif event == :create && @files[path]
|
166
|
+
@sincedb[sincedb_record_uid] = 0
|
165
167
|
else
|
166
168
|
@logger.debug? && @logger.debug("#{path}: staying at position 0, no sincedb")
|
167
169
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: filewatch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordan Sissel
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-06-19 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Watch files and directories in ruby. Also supports tailing and glob file
|
15
15
|
patterns.
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
version: '0'
|
72
72
|
requirements: []
|
73
73
|
rubyforge_project:
|
74
|
-
rubygems_version: 2.4.
|
74
|
+
rubygems_version: 2.4.5
|
75
75
|
signing_key:
|
76
76
|
specification_version: 4
|
77
77
|
summary: filewatch - file watching for ruby
|