filewatch 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/filewatch/tail.rb +2 -0
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c7ddc84b7feb8299c8c1a476ea4aa778c71dc15
4
- data.tar.gz: f14e75a4347ef972d541ed859d25e8e5de502839
3
+ metadata.gz: 0e870d2d8c02f8283bae70e2d7120ca47de769f7
4
+ data.tar.gz: 7580dff4266e04c52d8656c1832b3892aa7e66aa
5
5
  SHA512:
6
- metadata.gz: 3befce81368ff67345a6a5ec93e38140ead8464b2e315638591c5e451827759d999146721d21c1433361cadfc1f4d3bd2a888ecba55a7e4e034b98b5e9ed5674
7
- data.tar.gz: f6dd66d9c0b007c49e8f881d375a8c576a5f63922ca2c4a641896c1a52bf1ff82d87faf756e541d08100f3c31ae8ab67e2e5e1a48ede51f07bf813b7a3d2dea7
6
+ metadata.gz: 35568d7cc38f8b99e0423515030a487df48368956c143fac4a0bb9a75c12056dfb0e2eef1ef20563be71a167ad16316857b15cd076671fa115d2a16e816fcf15
7
+ data.tar.gz: 120101f58c10f67f37e285acfd5c4f8386c13bbd6b1543cf41fd043f6d59166003a55660f2301ab798e849a6e4102bd257c65bfadf13894164fd9673446df6a4
@@ -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.3
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-05-29 00:00:00.000000000 Z
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.6
74
+ rubygems_version: 2.4.5
75
75
  signing_key:
76
76
  specification_version: 4
77
77
  summary: filewatch - file watching for ruby