dyndoc-ruby 1.3.4 → 1.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dyndoc-html-servers.rb +33 -20
- data/lib/dyndoc-world.rb +11 -0
- data/share/html-srv/dyn-html-srv.ru +2 -5
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1429abd256e9d0441df24744231a62ae8129a5274c3e8de413e700a81dfdc917
|
4
|
+
data.tar.gz: 21e08fa73d544abf8618461df13e40cdfc333a542e4c71185ae301ad12784ea7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a02a9276665a3302bea5445e7d7b1f2b1129ae62ca5409464afc25180254ebf053046298cac9f46130a8e4b1d8ac282f5ddf01dd93066d29905942d8f1d534a
|
7
|
+
data.tar.gz: 3953bd8ce467a7e6dc5306085e0062152571af478634e3404eb057da0211d8d726091e88bf57e15ae0c3e854deeecef445c0d7c38df34f9f0fa5640f961e21b1
|
data/lib/dyndoc-html-servers.rb
CHANGED
@@ -305,27 +305,40 @@ module Dyndoc
|
|
305
305
|
|
306
306
|
html_file=opts[:html_files][opts[:current_doc_tag]] # No more default # || html_files[""]
|
307
307
|
##p [:opts,opts,:current_doc_tag,opts[:current_doc_tag]]
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
html_file
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
if
|
316
|
-
|
308
|
+
state=""
|
309
|
+
begin
|
310
|
+
Dyndoc.cli_convert_from_file(dyn_file[1..-1],html_file, opts)
|
311
|
+
## fix html_file for _rmd, _adoc and _ttm
|
312
|
+
if html_file =~ /^(.*)_(rmd|adoc|ttm)\.html$/
|
313
|
+
html_file = $1+".html"
|
314
|
+
end
|
315
|
+
if html_file =~ /^(.*)_erb\.html$/
|
316
|
+
erb_page=File.join(pages_root,$1)
|
317
|
+
if File.exists? erb_page+"_erb.html"
|
318
|
+
FileUtils.mv erb_page+"_erb.html",erb_page+".erb"
|
319
|
+
end
|
320
|
+
html_file = "erb"+$1
|
321
|
+
end
|
322
|
+
puts dyn_file[1..-1]+(dyn_public_edit_file.empty? ? "" : "*")+" processed => "+html_file+" created!"
|
323
|
+
options[:first] = html_file != old_html_file
|
324
|
+
if html_file != old_html_file
|
325
|
+
old_html_file = html_file
|
326
|
+
url=File.join(base_url,html_file)
|
327
|
+
## p [:url,url]
|
328
|
+
Dyndoc::Browser.load(url)
|
329
|
+
else
|
330
|
+
Dyndoc::Browser.reload
|
331
|
+
end
|
332
|
+
rescue
|
333
|
+
state="error: "
|
334
|
+
ensure
|
335
|
+
notify_file=filename.split("/")
|
336
|
+
if (ind=notify_file.index ".edit")
|
337
|
+
notify_file=notify_file[0..ind].join("/")
|
338
|
+
File.open(notify_file+"/notify.out","w") do |f|
|
339
|
+
f << state + filename
|
340
|
+
end
|
317
341
|
end
|
318
|
-
html_file = "erb"+$1
|
319
|
-
end
|
320
|
-
puts dyn_file[1..-1]+(dyn_public_edit_file.empty? ? "" : "*")+" processed => "+html_file+" created!"
|
321
|
-
options[:first] = html_file != old_html_file
|
322
|
-
if html_file != old_html_file
|
323
|
-
old_html_file = html_file
|
324
|
-
url=File.join(base_url,html_file)
|
325
|
-
## p [:url,url]
|
326
|
-
Dyndoc::Browser.load(url)
|
327
|
-
else
|
328
|
-
Dyndoc::Browser.reload
|
329
342
|
end
|
330
343
|
end
|
331
344
|
end
|
data/lib/dyndoc-world.rb
ADDED
@@ -11,11 +11,8 @@ root = cfg["root"] || File.join(ENV["HOME"],"RCqls","RodaServer")
|
|
11
11
|
$public_root = cfg["public_root"] || File.join(root ,"public")
|
12
12
|
##p [:public_root,$public_root]
|
13
13
|
$dynworld_root=cfg["dynworld_root"] || File.join(ENV["HOME"],".dyndoc-world")
|
14
|
-
|
15
|
-
|
16
|
-
require File.join($dynworld_tools,"tools.rb")
|
17
|
-
puts "Dynworld activated"
|
18
|
-
end
|
14
|
+
|
15
|
+
require 'dyndoc-world'
|
19
16
|
|
20
17
|
class App < Roda
|
21
18
|
use Rack::Session::Cookie, :secret => (secret="Thanks like!")
|
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.3.
|
4
|
+
version: 1.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RCqls
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: R4rb
|
@@ -217,6 +217,7 @@ files:
|
|
217
217
|
- lib/dyndoc-html-servers.rb
|
218
218
|
- lib/dyndoc-linter.rb
|
219
219
|
- lib/dyndoc-tasks.rb
|
220
|
+
- lib/dyndoc-world.rb
|
220
221
|
- lib/dyndoc/cli/interactive-client.rb
|
221
222
|
- lib/dyndoc/srv/interactive-server.rb
|
222
223
|
- lib/dyndoc/srv/tilt.rb
|