filewatch-ext 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/filewatch/ext/xlstail.rb +4 -0
- data/lib/filewatch/ext/xlsxtail.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cd745a247b7c5a4cad92d151ecce249b84b77955
|
|
4
|
+
data.tar.gz: 807d72739b47249f1e45fafe9e03530c70b6c458
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 557568e1c3143bd6c6c5b80779efbafb87aa6fa2b4756fd06d26106060734d31b98a79e4342af9995038c1c521d97ba5bffe7e7baff9325b53b93f29bf6e2376
|
|
7
|
+
data.tar.gz: 9d4a2baf2aa5dc41e514ed5f790ab2b2ee585721bb96effb7aa06080fd5e24f4ccfa72eaf9ce817f0c6801243d6d4a8d08ee69077fb84a31ee86ec8f29f69d14
|
|
@@ -32,6 +32,7 @@ module FileWatch::Ext
|
|
|
32
32
|
_progressdb_delete(path, &block) if @opts[:progressdb] && @opts[:progressdb_del]
|
|
33
33
|
|
|
34
34
|
@files.delete(path)
|
|
35
|
+
_sincedb_delete(path)
|
|
35
36
|
@statcache.delete(path)
|
|
36
37
|
else
|
|
37
38
|
@logger.warn("unknown event type #{event} for #{path}")
|
|
@@ -104,6 +105,9 @@ module FileWatch::Ext
|
|
|
104
105
|
@pos[path] = size
|
|
105
106
|
@sincedb[inode] = {:size => size, :pos => size}
|
|
106
107
|
end
|
|
108
|
+
elsif event == :create
|
|
109
|
+
@pos[path] = 0
|
|
110
|
+
@sincedb[inode] = {:size => size, :pos => 0}
|
|
107
111
|
else
|
|
108
112
|
@logger.debug("#{path}: staying at position 0, no sincedb")
|
|
109
113
|
end
|
|
@@ -32,6 +32,7 @@ module FileWatch::Ext
|
|
|
32
32
|
_progressdb_delete(path, &block) if @opts[:progressdb] && @opts[:progressdb_del]
|
|
33
33
|
|
|
34
34
|
@files.delete(path)
|
|
35
|
+
_sincedb_delete(path)
|
|
35
36
|
@statcache.delete(path)
|
|
36
37
|
else
|
|
37
38
|
@logger.warn("unknown event type #{event} for #{path}")
|
|
@@ -103,6 +104,9 @@ module FileWatch::Ext
|
|
|
103
104
|
@pos[path] = size
|
|
104
105
|
@sincedb[inode] = {:size => size, :pos => size}
|
|
105
106
|
end
|
|
107
|
+
elsif event == :create
|
|
108
|
+
@pos[path] = 0
|
|
109
|
+
@sincedb[inode] = {:size => size, :pos => 0}
|
|
106
110
|
else
|
|
107
111
|
@logger.debug("#{path}: staying at position 0, no sincedb")
|
|
108
112
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: filewatch-ext
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dietmar Duft
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-04-
|
|
11
|
+
date: 2014-04-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: filewatch
|