dyndoc-ruby 1.0.20 → 1.0.21
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 +7 -7
- 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: 429026235f6934180d6c3ad174239440ca5b5982
|
|
4
|
+
data.tar.gz: d39160222ee3f41df5cf33b612cd3a0838ce3bb7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c2afe16763a26bb7a3ef3f1ce09176ff32b65c5b3149e5cd05c39d21674aff739d5a962806aab386922df8577119ee9b3d977f39b10c589e27d8f87eafcced2f
|
|
7
|
+
data.tar.gz: 868eca4ba804532a18f463ea3a6fb8799bbbf12bab8008bd24674455b55ab550a56b9aa1bfcc7b2b295be63b69f1e01593a9bab4fa9350347c1b63a93bd320b8
|
data/lib/dyndoc-html-servers.rb
CHANGED
|
@@ -3,10 +3,10 @@ require 'pathname'
|
|
|
3
3
|
require 'yaml'
|
|
4
4
|
require 'filewatcher'
|
|
5
5
|
|
|
6
|
-
if RUBY_VERSION >= "2.4"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
end
|
|
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,9 +271,9 @@ module Dyndoc
|
|
|
271
271
|
|
|
272
272
|
puts "watching "+ dyn_root
|
|
273
273
|
old_html_file=""
|
|
274
|
-
::
|
|
275
|
-
##p [:filename,filename]
|
|
276
|
-
if [:changed,:new].include? event and File.extname(filename) == ".dyn"
|
|
274
|
+
::Filewatcher.new(dyn_root).watch() do |filename, event|
|
|
275
|
+
##p [:filename,filename,event]
|
|
276
|
+
if [:changed,:updated,:new].include? event and File.extname(filename) == ".dyn"
|
|
277
277
|
##p [:filename_event,event,filename]
|
|
278
278
|
if (lint_error=Dyndoc::Linter.check_file(filename)).empty?
|
|
279
279
|
## do not process preload, postload, lib and layout files
|