dyndoc-ruby 1.3.4 → 1.3.6

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
  SHA256:
3
- metadata.gz: 2ec509c1bb4aa90c2960546ea660bb8c1b734d84e090cb7892738f4ec812972d
4
- data.tar.gz: c58112a3f6326a0c2421058ca28df3fbbe286d3a8766859a9b3fecdd30ff57c4
3
+ metadata.gz: 1429abd256e9d0441df24744231a62ae8129a5274c3e8de413e700a81dfdc917
4
+ data.tar.gz: 21e08fa73d544abf8618461df13e40cdfc333a542e4c71185ae301ad12784ea7
5
5
  SHA512:
6
- metadata.gz: '045482d13e19620b809a07c60d27e2b0e20d55f97406d19aca29545b85d4b21d9bd7d69f28abb9eced64a93ead570a4546d57c2f4032fc7c39b930bc0f17904a'
7
- data.tar.gz: 722057d19ff0d07762b5c6fffd8a5abf61405f63c3a2757f8592c41ffff023eaaea1806baaa0eb1835090c3b200fd8f13b19c93009427327c926ad24e60ba1a2
6
+ metadata.gz: 1a02a9276665a3302bea5445e7d7b1f2b1129ae62ca5409464afc25180254ebf053046298cac9f46130a8e4b1d8ac282f5ddf01dd93066d29905942d8f1d534a
7
+ data.tar.gz: 3953bd8ce467a7e6dc5306085e0062152571af478634e3404eb057da0211d8d726091e88bf57e15ae0c3e854deeecef445c0d7c38df34f9f0fa5640f961e21b1
@@ -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
- Dyndoc.cli_convert_from_file(dyn_file[1..-1],html_file, opts)
309
- ## fix html_file for _rmd, _adoc and _ttm
310
- if html_file =~ /^(.*)_(rmd|adoc|ttm)\.html$/
311
- html_file = $1+".html"
312
- end
313
- if html_file =~ /^(.*)_erb\.html$/
314
- erb_page=File.join(pages_root,$1)
315
- if File.exists? erb_page+"_erb.html"
316
- FileUtils.mv erb_page+"_erb.html",erb_page+".erb"
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
@@ -0,0 +1,11 @@
1
+ module DyndocWorld
2
+
3
+ def DyndocWorld.yml?(prj,yml)
4
+ true
5
+ end
6
+
7
+ def DyndocWorld.prj_dir(prj,yml)
8
+ prj
9
+ end
10
+
11
+ end
@@ -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
- $dynworld_tools=cfg["dynworld_tools"] || File.join(ENV["HOME"],"Gogs","dynworld")
15
- if Dir.exists? $dynworld_tools
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
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-23 00:00:00.000000000 Z
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