filewatch 0.3.2 → 0.3.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.
Files changed (2) hide show
  1. data/lib/filewatch/tail.rb +2 -2
  2. metadata +55 -62
@@ -28,7 +28,7 @@ module FileWatch
28
28
  @statcache = {}
29
29
  @opts = {
30
30
  :sincedb_write_interval => 10,
31
- :sincedb_path => ENV["SINCEDB_PATH"] || "#{ENV["HOME"]}/.sincedb",
31
+ :sincedb_path => ENV["SINCEDB_PATH"] || File.join(ENV["HOME"], ".sincedb"),
32
32
  :stat_interval => 1,
33
33
  :discover_interval => 5,
34
34
  :exclude => [],
@@ -136,7 +136,7 @@ module FileWatch
136
136
  changed = false
137
137
  loop do
138
138
  begin
139
- data = @files[path].read_nonblock(4096)
139
+ data = @files[path].sysread(4096)
140
140
  changed = true
141
141
  @buffers[path].extract(data).each do |line|
142
142
  yield(path, line)
metadata CHANGED
@@ -1,83 +1,76 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: filewatch
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.3
4
5
  prerelease:
5
- version: 0.3.2
6
6
  platform: ruby
7
- authors:
8
- - Jordan Sissel
9
- - Pete Fritchman
7
+ authors:
8
+ - Jordan Sissel
9
+ - Pete Fritchman
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
-
14
- date: 2012-01-02 00:00:00 Z
13
+ date: 2012-01-26 00:00:00.000000000 Z
15
14
  dependencies: []
16
-
17
- description: Watch files and directories in ruby. Also supports tailing and glob file patterns.
18
- email:
19
- - jls@semicomplete.com
20
- - petef@databits.net
21
- executables:
22
- - globtail
15
+ description: Watch files and directories in ruby. Also supports tailing and glob file
16
+ patterns.
17
+ email:
18
+ - jls@semicomplete.com
19
+ - petef@databits.net
20
+ executables:
21
+ - globtail
23
22
  extensions: []
24
-
25
23
  extra_rdoc_files: []
26
-
27
- files:
28
- - lib/filewatch/watch.rb
29
- - lib/filewatch/tail.rb
30
- - lib/filewatch/buftok.rb
31
- - test/globtail/test8.data
32
- - test/globtail/framework.sh
33
- - test/globtail/test4.sh
34
- - test/globtail/test9.sh
35
- - test/globtail/test8.sh
36
- - test/globtail/test5.data
37
- - test/globtail/test7.data
38
- - test/globtail/test7.sh
39
- - test/globtail/test10.sh
40
- - test/globtail/Makefile
41
- - test/globtail/test1.data
42
- - test/globtail/test10.data
43
- - test/globtail/test3.sh
44
- - test/globtail/test1.sh
45
- - test/globtail/test6.data
46
- - test/globtail/test3.data
47
- - test/globtail/test2.data
48
- - test/globtail/test5.sh
49
- - test/globtail/test4.data
50
- - test/globtail/test6.sh
51
- - test/globtail/test2.sh
52
- - test/globtail/test9.data
53
- - bin/globtail
24
+ files:
25
+ - lib/filewatch/buftok.rb
26
+ - lib/filewatch/tail.rb
27
+ - lib/filewatch/watch.rb
28
+ - test/globtail/test1.data
29
+ - test/globtail/test8.sh
30
+ - test/globtail/test10.sh
31
+ - test/globtail/test8.data
32
+ - test/globtail/test6.data
33
+ - test/globtail/test2.sh
34
+ - test/globtail/test4.data
35
+ - test/globtail/test7.sh
36
+ - test/globtail/test7.data
37
+ - test/globtail/test9.data
38
+ - test/globtail/test5.data
39
+ - test/globtail/test9.sh
40
+ - test/globtail/test6.sh
41
+ - test/globtail/framework.sh
42
+ - test/globtail/test5.sh
43
+ - test/globtail/test3.data
44
+ - test/globtail/test3.sh
45
+ - test/globtail/test4.sh
46
+ - test/globtail/test10.data
47
+ - test/globtail/Makefile
48
+ - test/globtail/test2.data
49
+ - test/globtail/test1.sh
50
+ - bin/globtail
54
51
  homepage: https://github.com/jordansissel/ruby-filewatch
55
52
  licenses: []
56
-
57
53
  post_install_message:
58
54
  rdoc_options: []
59
-
60
- require_paths:
61
- - lib
62
- - lib
63
- required_ruby_version: !ruby/object:Gem::Requirement
55
+ require_paths:
56
+ - lib
57
+ - lib
58
+ required_ruby_version: !ruby/object:Gem::Requirement
64
59
  none: false
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: "0"
69
- required_rubygems_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
65
  none: false
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- version: "0"
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
75
70
  requirements: []
76
-
77
71
  rubyforge_project:
78
- rubygems_version: 1.8.9
72
+ rubygems_version: 1.8.10
79
73
  signing_key:
80
74
  specification_version: 3
81
75
  summary: filewatch - file watching for ruby
82
76
  test_files: []
83
-