dyndoc-ruby 1.0.22 → 1.0.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/share/html-srv/dyn-html-srv.ru +11 -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: efaa2c1fbc83d0e19a3def894d93ab4a686e6e59
|
4
|
+
data.tar.gz: 1d7f133b282633fd10a4529e7c866e1a985e5ae6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9211516dd73b49480a4c54118cea317beca896926e58c423fa1c3039d29fa2be48d15042d0bf2a4431a8baee4409776ddbb217b2e5307db9652e443a6f43b691
|
7
|
+
data.tar.gz: ce3033c3e02bbc937cd14e3ed40583722b1a4fdb3aa8ddf14852247442ec62af96446fc368e70a41cb235bf18348f75338143678a0c850447839f256c5145c4f
|
@@ -82,10 +82,21 @@ class App < Roda
|
|
82
82
|
static_root=File.join($public_root,"pages")
|
83
83
|
##p [:page,File.join(static_root,"**",page+".html")]
|
84
84
|
pattern=(page=~/[^\.]*\.(?:R|Rmd|css|js|htm|html|rb|red|r|jpeg|jpg|png|gif|pdf)/) ? page : page+".html"
|
85
|
+
|
85
86
|
html_files=Dir[File.join(static_root,"**",pattern)]
|
87
|
+
html_files=Dir[File.join(static_root,"*","**",pattern)] if html_files.empty?
|
86
88
|
|
87
89
|
## try index.html in directory
|
88
90
|
html_files=Dir[File.join(static_root,"**",page,"index.html")] if html_files.empty?
|
91
|
+
html_files=Dir[File.join(static_root,"*","**",page,"index.html")] if html_files.empty?
|
92
|
+
|
93
|
+
##DEBUG:
|
94
|
+
# a=File.join(static_root,"**",page,"index.html")
|
95
|
+
# p [a,Dir[a]]
|
96
|
+
# a=File.join(static_root,"*","**",page,"index.html")
|
97
|
+
# p [a,Dir[a]]
|
98
|
+
|
99
|
+
##DEBUG: p html_files
|
89
100
|
|
90
101
|
##p html_files
|
91
102
|
unless html_files.empty?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dyndoc-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RCqls
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: R4rb
|