dyndoc-ruby 1.0.22 → 1.0.23

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ef3f36a75904bf13179607fbcf5b628c83aae92
4
- data.tar.gz: 6519b24c52467f4aee93e917461c62d410ba55a5
3
+ metadata.gz: efaa2c1fbc83d0e19a3def894d93ab4a686e6e59
4
+ data.tar.gz: 1d7f133b282633fd10a4529e7c866e1a985e5ae6
5
5
  SHA512:
6
- metadata.gz: 77b99a8b292d97693fb25e158f8e4525b231c380e16a6caf7df2d9a840c37e53e8e515f72897c93116d7d0c22a2afb15be7bd1959984f9b8ce912226b1eb95f0
7
- data.tar.gz: 57777f8f6d9d8dbdb2b41e99c739ed94dbb626f4a2239523fe3593649ac0ebc25c857283f7cc1649b3ef9327990d43171d5953f4d34a2f5cef6f9c7a162fb964
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.22
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 00:00:00.000000000 Z
11
+ date: 2017-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: R4rb