dyndoc-ruby 1.0.21 → 1.0.22
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/dyndoc-html-servers.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9ef3f36a75904bf13179607fbcf5b628c83aae92
|
|
4
|
+
data.tar.gz: 6519b24c52467f4aee93e917461c62d410ba55a5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 77b99a8b292d97693fb25e158f8e4525b231c380e16a6caf7df2d9a840c37e53e8e515f72897c93116d7d0c22a2afb15be7bd1959984f9b8ce912226b1eb95f0
|
|
7
|
+
data.tar.gz: 57777f8f6d9d8dbdb2b41e99c739ed94dbb626f4a2239523fe3593649ac0ebc25c857283f7cc1649b3ef9327990d43171d5953f4d34a2f5cef6f9c7a162fb964
|
data/lib/dyndoc-html-servers.rb
CHANGED
|
@@ -3,10 +3,10 @@ require 'pathname'
|
|
|
3
3
|
require 'yaml'
|
|
4
4
|
require 'filewatcher'
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
if RUBY_VERSION >= "2.4"
|
|
7
|
+
class FileWatcher < Filewatcher
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
10
|
|
|
11
11
|
module Dyndoc
|
|
12
12
|
module Browser
|
|
@@ -271,7 +271,7 @@ module Dyndoc
|
|
|
271
271
|
|
|
272
272
|
puts "watching "+ dyn_root
|
|
273
273
|
old_html_file=""
|
|
274
|
-
::
|
|
274
|
+
::FileWatcher.new(dyn_root).watch() do |filename, event|
|
|
275
275
|
##p [:filename,filename,event]
|
|
276
276
|
if [:changed,:updated,:new].include? event and File.extname(filename) == ".dyn"
|
|
277
277
|
##p [:filename_event,event,filename]
|