martile 0.9.4 → 1.0.0

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: e7ddb330c258a6150ed1ea937b013d77fbb0347cff997c1bd3fdd47e6a48cdba
4
- data.tar.gz: 0eb8a20705c70326d3220d40043bd5b5d7b720473924d47db7e1a89eaf55256e
3
+ metadata.gz: '08a97bbbc9b79bc820426562d42b2f59a400df9f76e6e6fd7de4d5ceda8c8e6c'
4
+ data.tar.gz: 881a8d6bb03e83338d743af376d02269c1836d383f3bbe721300321a503d6b94
5
5
  SHA512:
6
- metadata.gz: 2c592a069ca334eb4f646c13bc0d0967e77810eaec13af4c4d843073c3906ea046e7d421a468909aabe185f75fd21ebda5100e6e05f6afd4e0aeeca94f8de87f
7
- data.tar.gz: 64a1a5f1d2adb9591ddc42f31bb10688dc97642a6c71ff7f6a897e57776eae320a88cbf3af5e26fdabf9d0bb07bd6d3b37ea5ea9b85cdd38cb2307bda23e14d3
6
+ metadata.gz: 0fafdc98f0423b629f180377be1e6ba2c9f44a5fefc15c5e7e2bbbd5572d564c717596cd3df92a612c52eddd61ba0c52903ddd91db6a932ddbcee18cbd197098
7
+ data.tar.gz: 0ed97cb8c98b1b54b7d0438d357bb278eee358fb23317eb2ff7984ae0ebc02d0df1846d0942cbeebd1924caab9940c8e3435c8032abd31a40fec6358599b0740
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1,2 @@
1
- �^$�#�0�� ' ��2�$ z��|��4�š��9��侎��l�\�.��[12��;�.U6��K�#ʖ�Mq���d<����P�_}t�뗛��E����
1
+ �l,ZB2>�I)���} �|9��Toe����.�m��B�Wu
2
+ f� .��_��������Kv)+#`\m��޲� YW��t�A����Yn!'��e���s6���W+�H�4���=�11�� �DZ#֫���
data/lib/martile.rb CHANGED
@@ -5,6 +5,7 @@
5
5
  #require 'rexle-builder'
6
6
  #require 'rexle'
7
7
  #require 'kvx'
8
+ require 'yatoc'
8
9
  require 'rqrcode'
9
10
  #require 'dynarex'
10
11
  #require 'rdiscount'
@@ -12,6 +13,8 @@ require 'mindmapdoc'
12
13
  require 'flowchartviz'
13
14
 
14
15
 
16
+ # feature: 17-Dec-2018 Now automatically generates a toc when there are 3
17
+ # sections or more
15
18
  # feature: 3-Oct-2018 An embed tag can now be used to dynamically load content
16
19
  # bug fix: 26-Sep-2018 An extra new line is added after a code block to
17
20
  # ensure the line directly below it is transformed to
@@ -59,6 +62,7 @@ require 'flowchartviz'
59
62
 
60
63
 
61
64
  class Martile
65
+ using ColouredText
62
66
 
63
67
  attr_reader :to_s, :data_source
64
68
 
@@ -77,7 +81,7 @@ class Martile
77
81
  puts 's10: ' + s10.inspect if debug
78
82
 
79
83
  s20 = s10 =~ /^__DATA__$/ ? parse__data__(s10) : s10
80
- puts 's20: ' + s20.inspect if debug
84
+ puts ('s20: ' + s20.inspect).debug if debug
81
85
 
82
86
  s30 = apply_filter(s20) {|x| slashpre x }
83
87
  #puts 's1 : ' + s1.inspect
@@ -127,11 +131,12 @@ class Martile
127
131
  s210 = apply_filter(s200) {|x| qrcodetag x }
128
132
  s220 = apply_filter(s210) {|x| svgtag x }
129
133
  s230 = apply_filter(s220) {|x| embedtag x }
134
+ s240 = Yatoc.new(s230).to_html
130
135
 
131
136
 
132
137
  #puts 's17 : ' + s17.inspect
133
138
 
134
- @to_s = s230
139
+ @to_s = s240
135
140
  end
136
141
 
137
142
  def create_form(s)
@@ -556,7 +561,7 @@ class Martile
556
561
 
557
562
  def parse__data__(s)
558
563
 
559
- puts 'inside parse__data__' if @debug
564
+ puts 'inside parse__data__'.info if @debug
560
565
 
561
566
  a = s.split(/^__DATA__$/,2)
562
567
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: martile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -30,8 +30,28 @@ cert_chain:
30
30
  h9crBM07TwSkUs7Sqw12Wh0aEldB8f+8+8mRzbWrJxdYt0EC7ZeByVSu26XqSA9a
31
31
  QUQ=
32
32
  -----END CERTIFICATE-----
33
- date: 2018-10-03 00:00:00.000000000 Z
33
+ date: 2018-12-17 00:00:00.000000000 Z
34
34
  dependencies:
35
+ - !ruby/object:Gem::Dependency
36
+ name: yatoc
37
+ requirement: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '0.1'
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: 0.1.0
45
+ type: :runtime
46
+ prerelease: false
47
+ version_requirements: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - "~>"
50
+ - !ruby/object:Gem::Version
51
+ version: '0.1'
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 0.1.0
35
55
  - !ruby/object:Gem::Dependency
36
56
  name: rqrcode
37
57
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file