dyndoc-ruby-core 1.5.1 → 1.5.4

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: d8db5b8dba56f6bc0ed9ac32ee525033c577e49e4771e76a96dcb0e7c28654d5
4
- data.tar.gz: 7dd78c1167b23734ce93a6ca4e125ae106006e7b621eebc7c97dbca5fea9c30f
3
+ metadata.gz: 8f8daa58308a72de9835b6e6531613f78e34ed7dc9a26a0378114ddbfd1c5a0b
4
+ data.tar.gz: 18c27e21dde63e6920e1bea143cb0fa276fbf98e0f8e6509ff8441fa89c60c33
5
5
  SHA512:
6
- metadata.gz: 549db27aa7991171c22c203caccdc28653b6b2ccb7b9e275565f79e5f4c8a239d4996c97bcad7c4324d802bcbf0f907b7183a388f1644d21e547e9d41d1f3fb3
7
- data.tar.gz: fc5c2afdbe9c859940452f246d4dfa8c59d1fc7645ec87a321b86c64edfee0062d3df252cf9f5cfe33acadf05e49c7890eb2baac45ee45abee8e7ce21e058548
6
+ metadata.gz: da70eb29f796995102dd410a6b7e76286a54fd8654f5a60b4fd3ba2ed446e0409bce971ad28a3c84f58049bcce339241dbd92069d627a0bce5ac1a0d03284335
7
+ data.tar.gz: f1eb77458ea8b6ed4842050abd25046dae53690299ee1a04f44f9e91ed27985bb9bd4ce796a7420cc3237319e2df0ac83fd364b756ea515a5b2bcb23b1402a52
@@ -538,15 +538,14 @@ module Dyndoc
538
538
  return res unless out_type
539
539
  case out_type
540
540
  when ":=",":rb=",":Rb=","#rb=","#Rb="
541
- #if res.is_a? String
542
- # res.inspect
543
- #else res.is_a? Array
544
- #puts out_type;p res;p res.inspect
545
- #if res.is_a? Array and res.length==1 and res[0].is_a? String
546
- # res[0].inspect
547
- #else
541
+ # if res.is_a? String
542
+ # res.inspect
543
+ # #puts out_type;p res;p res.inspect
544
+ # elsif res.is_a? Array and res.length==1
545
+ # res[0].inspect
546
+ # else
548
547
  res.inspect
549
- #end
548
+ # end
550
549
  when ":",":rb",":Rb","#rb","#Rb"
551
550
  #puts "convert [rb]:";p res
552
551
  if res.is_a? Array
@@ -555,6 +554,7 @@ module Dyndoc
555
554
  res.to_s
556
555
  end
557
556
  when ":R=","#R=",":r=","#r="
557
+ #puts "convert [R]";p res
558
558
  if res.is_a? Array
559
559
  res2="c("+res.map{|e| "'"+e.to_s+"'"}.join(",")+")"
560
560
  res2.gsub!(/\\/,'\\\\\\\\')
@@ -904,13 +904,15 @@ module Dyndoc
904
904
 
905
905
  def JLServer.echo_verb(txt,mode)
906
906
  txtout=Dyndoc::JLServer.echo(txt).strip
907
+ ## p [:jl_echo_verb,txtout]
907
908
  mode=:default unless Dyndoc::VERB.keys.include? mode
908
909
  header= (mode!=:default) and txtout.length>0
909
910
  out=""
910
911
  out << Dyndoc::VERB[mode][:begin] << "\n" if header
911
912
  out << txtout
912
913
  out << "\n" << Dyndoc::VERB[mode][:end] << "\n" if header
913
- out
914
+ ## p [:out, out]
915
+ out
914
916
  end
915
917
 
916
918
  end
@@ -646,7 +646,7 @@ p [vars,b2]
646
646
  end
647
647
  when :"r>>",:"R>>",:rout,:rverb
648
648
  newblck=blck[i]
649
- i,*b2=next_block(blck,i)
649
+ i,*b2=next_block(blck,i)
650
650
  if cond_tag and cond
651
651
  vars,b2=get_named_blck(b2,filter)
652
652
  if b2
@@ -671,7 +671,7 @@ p [vars,b2]
671
671
  end
672
672
  when :"jl>>",:jlverb,:"rb>>",:rbverb
673
673
  newblck=blck[i]
674
- i,*b2=next_block(blck,i)
674
+ i,*b2=next_block(blck,i)
675
675
  if cond_tag and cond
676
676
  vars,b2=get_named_blck(b2,filter)
677
677
  if b2
@@ -690,12 +690,12 @@ p [vars,b2]
690
690
  tex << val
691
691
  end
692
692
  =end
693
- make_named_blck(tex,filter,vars,b2)
694
- filter.outType=nil
695
- end
693
+ make_named_blck(tex,filter,vars,b2)
694
+ filter.outType=nil
695
+ end
696
696
  end
697
- when :>>
698
- i,*b2=next_block(blck,i)
697
+ when :>>
698
+ i,*b2=next_block(blck,i)
699
699
  if cond_tag and cond
700
700
  file,b2=get_named_blck(b2,filter)
701
701
  if b2 and file
@@ -1827,7 +1827,7 @@ p call
1827
1827
  require "dyndoc/common/uv" if @@interactive
1828
1828
 
1829
1829
  warn_level = $VERBOSE;$VERBOSE = nil
1830
- tex << (resUV=(@@interactive ? Uv.parse(res.force_encoding("utf-8"), "xhtml", File.join(Uv.syntax_path,"r.syntax") , false, "solarized",false) : res.force_encoding("utf-8") ))
1830
+ tex << (resUV=(@@interactive ? Uv.parse(res.force_encoding("utf-8"), "xhtml", File.join(Uv.syntax_path,"source.r.syntax") , false, "solarized",false) : res.force_encoding("utf-8") ))
1831
1831
  $VERBOSE = warn_level
1832
1832
  #Dyndoc.warn "rverb:result",resUV
1833
1833
  @rEnvir.shift if inR
@@ -1860,7 +1860,7 @@ p call
1860
1860
  ## Dyndoc.warn "rbverb:res",res
1861
1861
  require "dyndoc/common/uv" if @@interactive
1862
1862
  warn_level = $VERBOSE;$VERBOSE = nil
1863
- tex << (@@interactive ? Uv.parse(res, "xhtml", File.join(Uv.syntax_path,"ruby.syntax") , false, "solarized",false) : res )
1863
+ tex << (@@interactive ? Uv.parse(res.force_encoding("utf-8"), "xhtml", File.join(Uv.syntax_path,"source.ruby.syntax") , false, "solarized",false) : res )
1864
1864
  $VERBOSE = warn_level
1865
1865
  #puts "rverb:result";p res
1866
1866
 
@@ -1892,9 +1892,10 @@ p call
1892
1892
  res=JLServer.echo_verb(code,@@interactive ? :raw : mode)
1893
1893
  require "dyndoc/common/uv" if @@interactive
1894
1894
  warn_level = $VERBOSE;$VERBOSE = nil
1895
- tex << (@@interactive ? Uv.parse(res, "xhtml", File.join(Uv.syntax_path,"julia.syntax") , false, "solarized",false) : res )
1895
+ ## puts "jlverb:result";p res
1896
+ tex << (@@interactive ? Uv.parse(res.force_encoding("utf-8"), "xhtml", File.join(Uv.syntax_path,"source.julia.syntax") , false, "solarized",false) : res )
1896
1897
  $VERBOSE = warn_level
1897
- #puts "rverb:result";p res
1898
+ # puts "jlverb:result";p res
1898
1899
 
1899
1900
  filter.outType=nil
1900
1901
  end
@@ -1,7 +1,7 @@
1
1
  module Dyndoc
2
2
  def Dyndoc.home
3
3
  dyndoc_home = File.join(ENV['HOME'],'dyndoc')
4
- dyndoc_home = File.read(File.join(ENV['HOME'],'.dyndoc_home')).strip if File.exists? File.join(ENV['HOME'],'.dyndoc_home')
4
+ dyndoc_home = File.read(File.join(ENV['HOME'],'.dyndoc_home')).strip if File.exist? File.join(ENV['HOME'],'.dyndoc_home')
5
5
  dyndoc_home = File.expand_path(dyndoc_home)
6
6
  #puts "dyndoc_home: "+ dyndoc_home
7
7
  dyndoc_home
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.5.1
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - CQLS
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-04 00:00:00.000000000 Z
11
+ date: 2023-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: configliere
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  version: '0'
215
215
  requirements:
216
216
  - none
217
- rubygems_version: 3.1.4
217
+ rubygems_version: 3.4.2
218
218
  signing_key:
219
219
  specification_version: 4
220
220
  summary: R and Ruby in text document