dyndoc-ruby-core 1.4.8 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dyndoc/base/filter/filter_mngr.rb +3 -3
- data/lib/dyndoc/base/filter/server.rb +2 -2
- data/lib/dyndoc/base/scanner.rb +8 -7
- data/lib/dyndoc/base/utils.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37c974a007f31e6b20f6b08a58059b0bc9fa3985f0c1942d827cc9790e562186
|
4
|
+
data.tar.gz: d1dd34fd772846afa17963341fcb13d54fc66452a1370efe5c146b707cb361b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50a41020a4dd69fe0d261b416f80e6a8d3a78728599564850f65542fd64f5f1e8f8459d3e567edb3c6306789e70d587674fa822e09a4a55cc1ba73d17c6852c5
|
7
|
+
data.tar.gz: 9f0f7cf7f5f39015606e2c2c14bbfea6fb24b118b9a8222414e1e17bffc9eb1d5ba1b9213658e9055f07a1fb7d80e4ef4084f0756fed008684bfacdeaac9f3b2
|
@@ -395,7 +395,7 @@ module Dyndoc
|
|
395
395
|
when "@"
|
396
396
|
return txt if @mode==:pre
|
397
397
|
res=CallFilter.output(txt,self)
|
398
|
-
when "#","##"
|
398
|
+
when "#","##","%"
|
399
399
|
#p @envir
|
400
400
|
#p @envir.output(txt,@mode,@escape)
|
401
401
|
#p @envir.output(in_type+"{"+txt2+"}",@mode,@escape)
|
@@ -575,7 +575,7 @@ module Dyndoc
|
|
575
575
|
else
|
576
576
|
res.to_s
|
577
577
|
end
|
578
|
-
when "=","@=","#=","##=" ,"none="
|
578
|
+
when "=","@=","#=","%=","##=" ,"none="
|
579
579
|
#puts "convert [=]";p res
|
580
580
|
if res.is_a? Array
|
581
581
|
res.join(",")
|
@@ -587,7 +587,7 @@ module Dyndoc
|
|
587
587
|
"%Q{"+res2+"}"
|
588
588
|
end
|
589
589
|
end
|
590
|
-
when "","@","#","##","none","#F"
|
590
|
+
when "","@","#","%","##","none","#F"
|
591
591
|
if res.is_a? Array
|
592
592
|
res.join(",")
|
593
593
|
else
|
@@ -831,8 +831,8 @@ module Dyndoc
|
|
831
831
|
|
832
832
|
def JLServer.initVerb
|
833
833
|
Julia << "Base.include(@__MODULE__,\""+File.join(Dyndoc.cfg_dir[:gem_path],"share","julia","dyndoc.jl")+"\")"
|
834
|
-
|
835
|
-
|
834
|
+
Julia << "push!(Libdl.DL_LOAD_PATH,\"/usr/lib\");push!(Libdl.DL_LOAD_PATH,\"/usr/local/lib\")"
|
835
|
+
@@initVerb=true
|
836
836
|
end
|
837
837
|
|
838
838
|
def JLServer.inputsAndOutputs(code,hash=true)
|
data/lib/dyndoc/base/scanner.rb
CHANGED
@@ -232,7 +232,7 @@ module Dyndoc
|
|
232
232
|
class CallScanner < Scanner
|
233
233
|
|
234
234
|
@@type[:call]={
|
235
|
-
:start=>/\\?(
|
235
|
+
:start=>/\\?(?:\#|\%|\#\#|@|#F|#R|#r|\:R|\:r|#Rb|#rb|\:|\:Rb|\:rb|\:jl|#jl)?\{/,
|
236
236
|
:stop=> /\\?\}/,
|
237
237
|
:mode=>{:start=>-1,:stop=>0,:length=>1},
|
238
238
|
:escape_start=>['\{'], #doivent être parsable dans start
|
@@ -257,11 +257,11 @@ module Dyndoc
|
|
257
257
|
}
|
258
258
|
=end
|
259
259
|
@@type[:dtag] = {
|
260
|
-
:start=>'\{[
|
261
|
-
:stop=> '\[[
|
262
|
-
:atom=>{:match=>/(\{[
|
260
|
+
:start=>'\{[\#\@\%]([\w\:\|-]*[<>]?[=?!><]?(\.\w*)?)\]',
|
261
|
+
:stop=> '\[[\#\@\%]([\w\:\|-]*[<>]?[=?!><]?)\}',
|
262
|
+
:atom=>{:match=>/(\{[\#\@\%][\w\:\|]*)([\#\@\%]\})/,:replace=>{2=>"][#}"}},
|
263
263
|
:block=> '\]', #no longer |
|
264
|
-
:keyword=>['\[[
|
264
|
+
:keyword=>['\[[\#\%\@]','\]'],
|
265
265
|
:mode=>{:start=>0,:stop=>-1,:length=>1}
|
266
266
|
}
|
267
267
|
|
@@ -621,11 +621,12 @@ module Dyndoc
|
|
621
621
|
end
|
622
622
|
##Dyndoc.warn "to scan", @scan.string[@scan.pos..-1]
|
623
623
|
##Dyndoc.warn "tag_reg",[blocktag_reg,tag_reg]
|
624
|
+
##p ["tag_reg",[blocktag_reg,tag_reg]]
|
624
625
|
end
|
625
626
|
if (tag_keyword and (@scan.check_until(blocktag_reg))) #or (!@named_tags.empty? and check_until_for_named_tags)
|
626
627
|
check_until_for_named_tags unless @named_tags.empty?
|
627
628
|
key=@scan[2]
|
628
|
-
##Dyndoc.warn "keyword",[key,@scan[0],@scan[1],@scan[2]]
|
629
|
+
##Dyndoc.warn p ["keyword",[key.scan(tag_reg),key.scan(tag_reg)[-1],key,@scan[0],@scan[1],@scan[2]]]
|
629
630
|
##Dyndoc.warn "pre_math,tag_selected",[@scan.pre_match,@tag_selected] if key=="[#tag]"
|
630
631
|
res << find_text(from,key,inside)
|
631
632
|
@is_arg=false if @is_arg
|
@@ -635,7 +636,7 @@ module Dyndoc
|
|
635
636
|
res << (key=@tag_selected)
|
636
637
|
else
|
637
638
|
#key=tag_reg.match(key)[0]
|
638
|
-
key= key.scan(tag_reg)[
|
639
|
+
key= key.scan(tag_reg)[-1]
|
639
640
|
##Dyndoc.warn "key(AP)",key if key=="tag"
|
640
641
|
res << (key=key.to_sym) if key and !key.empty?
|
641
642
|
end
|
data/lib/dyndoc/base/utils.rb
CHANGED
@@ -119,7 +119,7 @@ module Dyndoc
|
|
119
119
|
end
|
120
120
|
|
121
121
|
def Utils.protect_extraction(str)
|
122
|
-
str.gsub(/(
|
122
|
+
str.gsub(/(?:\#|\:dyn|\#\#|@|#F|#R|#r|\:R|\:r|#Rb|#rb|\:|\:Rb|\:rb)+\{/) {|e| "\\"+e}
|
123
123
|
end
|
124
124
|
|
125
125
|
## the scanner converts automatically {#toto#} in {#toto][#} and {@toto@} in {@toto][#}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dyndoc-ruby-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CQLS
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: configliere
|