hlt 0.6.2 → 0.6.3
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 +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/hlt.rb +12 -11
- metadata +31 -67
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: fe7f80ff3054de3be9e6ad0b980863475b1cfe846e469a9b652b05dd5bc1c8ff
|
4
|
+
data.tar.gz: ca2b70a31f12a7860a7c20e3ce1c808107f3dae148035c14a920f98fa0d2ea74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51caac2ea386985124fa3967ce26202ab0dade79f5c18602738f68fad2d077c954a62b3a2a2d2087c60654b8d50bb13fde6ff7882a8b3e32be916b9d8a25a57d
|
7
|
+
data.tar.gz: c9819e4c34b028f699400a963f32cc22db6e658eb96da284e091ab094f4ff90e250216c882e743cec8d17f4ddae66c4473c39c80ad0018eba342e5ec32fb8c9d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/hlt.rb
CHANGED
@@ -2,12 +2,13 @@
|
|
2
2
|
|
3
3
|
# file: hlt.rb
|
4
4
|
|
5
|
+
|
5
6
|
require 'martile'
|
6
|
-
require 'line-tree'
|
7
7
|
require 'rexle-builder'
|
8
8
|
|
9
9
|
|
10
10
|
class Hlt
|
11
|
+
using ColouredText
|
11
12
|
|
12
13
|
attr_reader :to_html, :to_doc
|
13
14
|
|
@@ -28,9 +29,9 @@ class Hlt
|
|
28
29
|
#s = raw_s
|
29
30
|
# strip out the text from the line containing a comment
|
30
31
|
s.gsub!(/((^#\s|\s#\s).*)/,'').strip if s[/((^#\s|\s#\s).*)/]
|
31
|
-
puts 's: ' + s.inspect if @debug
|
32
|
+
puts ('s: ' + s.inspect).debug if @debug
|
32
33
|
a_code = s.scan(/^\[([^\]]+)\]\B/).map(&:first)
|
33
|
-
puts 'a_code: ' + a_code.inspect if @debug
|
34
|
+
puts ('a_code: ' + a_code.inspect).debug if @debug
|
34
35
|
s.gsub!(/\n\[[^\]]+\]\B/, " !CODE\n")
|
35
36
|
|
36
37
|
s2 = s.lines.to_a.map!{|line|
|
@@ -70,10 +71,10 @@ class Hlt
|
|
70
71
|
s3 = s2.join.gsub(/^(\s*)-\s+/,'\1templatecode ').\
|
71
72
|
gsub(/^(\s*)=\s+/,'\1templateoutput ')
|
72
73
|
|
73
|
-
puts 's3: ' + s3.inspect if @debug
|
74
|
+
puts ('s3: ' + s3.inspect).debug if @debug
|
74
75
|
|
75
76
|
raw_html = LineTree.new(*s3, ignore_non_element: false, debug: debug).to_xml
|
76
|
-
puts 'raw_html: ' + raw_html.inspect if @debug
|
77
|
+
puts ('raw_html: ' + raw_html.inspect).debug if @debug
|
77
78
|
|
78
79
|
html = raw_html.gsub('!CODE').with_index do |x,i|
|
79
80
|
"\n\n" + a_code[i].lines.map{|x| ' ' * 4 + x}.join + "\n"
|
@@ -82,9 +83,9 @@ class Hlt
|
|
82
83
|
martile.each.with_index do |x,i|
|
83
84
|
|
84
85
|
if @debug then
|
85
|
-
puts 'i: ' + i.inspect
|
86
|
-
puts 'x: ' + x.inspect
|
87
|
-
puts 'html: ' + html.inspect
|
86
|
+
puts ('i: ' + i.inspect).debug
|
87
|
+
puts ('x: ' + x.inspect).debug
|
88
|
+
puts ('html: ' + html.inspect).debug
|
88
89
|
end
|
89
90
|
|
90
91
|
html.sub!(/<mar(tile|kdown):#{i.to_s}\/>/, RDiscount.new(\
|
@@ -93,7 +94,7 @@ class Hlt
|
|
93
94
|
'<\1 style=\'\2\'>'))
|
94
95
|
end
|
95
96
|
|
96
|
-
puts 'html_: ' + html.inspect if @debug
|
97
|
+
puts ('html_: ' + html.inspect).debug if @debug
|
97
98
|
|
98
99
|
doc = Rexle.new(html)
|
99
100
|
|
@@ -200,7 +201,7 @@ class Hlt
|
|
200
201
|
|
201
202
|
s2 = s.lines.map do |line|
|
202
203
|
|
203
|
-
puts 'line: ' + line.inspect if @debug
|
204
|
+
puts ('line: ' + line.inspect).debug if @debug
|
204
205
|
|
205
206
|
if state == :martile then
|
206
207
|
|
@@ -240,7 +241,7 @@ class Hlt
|
|
240
241
|
end
|
241
242
|
end
|
242
243
|
|
243
|
-
puts 'line: ' + line.inspect if @debug
|
244
|
+
puts ('line: ' + line.inspect).debug if @debug
|
244
245
|
line
|
245
246
|
|
246
247
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hlt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,88 +10,53 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
13
|
+
MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
|
14
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMTkwNDIyMTI1NzM1WhcN
|
15
|
+
MjAwNDIxMTI1NzM1WjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
|
16
|
+
cnRzb24vREM9ZXUwggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGK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aQVB2V1pbsatemlW
|
32
|
+
SpSnRNYlsjs3nK34YC7pPwK/Kk5AijMaf9E3yb8B0+lDxV63CsARs5YBsS9vbJ5I
|
33
|
+
3B8B04yJZt0F+gPBsa2UWzxeQOqwy8cm37IuUz7+3QAiooZaksIc8t8z9NQMC43g
|
34
|
+
ZU68dzjiF1T9xxwywptlJ53jTv8SPCpHQjWqKQvKPoQDnRDf/vxeMhCGWOxn9Nnj
|
35
|
+
JR7HLO1Kix+z5BF5wd5IpA16Z+fG8bIfbJy2r/33GHbSfFfAyUzCNXXkOjKNcxAj
|
36
|
+
hF/PZED/nIMabH86ci6/SaAr
|
32
37
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
38
|
+
date: 2019-04-22 00:00:00.000000000 Z
|
34
39
|
dependencies:
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: line-tree
|
37
|
-
requirement: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - "~>"
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '0.6'
|
42
|
-
- - ">="
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
version: 0.6.7
|
45
|
-
type: :runtime
|
46
|
-
prerelease: false
|
47
|
-
version_requirements: !ruby/object:Gem::Requirement
|
48
|
-
requirements:
|
49
|
-
- - "~>"
|
50
|
-
- !ruby/object:Gem::Version
|
51
|
-
version: '0.6'
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 0.6.7
|
55
40
|
- !ruby/object:Gem::Dependency
|
56
41
|
name: martile
|
57
42
|
requirement: !ruby/object:Gem::Requirement
|
58
43
|
requirements:
|
59
44
|
- - "~>"
|
60
45
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
62
|
-
- - ">="
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version: 0.9.0
|
65
|
-
type: :runtime
|
66
|
-
prerelease: false
|
67
|
-
version_requirements: !ruby/object:Gem::Requirement
|
68
|
-
requirements:
|
69
|
-
- - "~>"
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: '0.9'
|
72
|
-
- - ">="
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: 0.9.0
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: rexle-builder
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - "~>"
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '0.3'
|
46
|
+
version: '1.1'
|
82
47
|
- - ">="
|
83
48
|
- !ruby/object:Gem::Version
|
84
|
-
version:
|
49
|
+
version: 1.1.8
|
85
50
|
type: :runtime
|
86
51
|
prerelease: false
|
87
52
|
version_requirements: !ruby/object:Gem::Requirement
|
88
53
|
requirements:
|
89
54
|
- - "~>"
|
90
55
|
- !ruby/object:Gem::Version
|
91
|
-
version: '
|
56
|
+
version: '1.1'
|
92
57
|
- - ">="
|
93
58
|
- !ruby/object:Gem::Version
|
94
|
-
version:
|
59
|
+
version: 1.1.8
|
95
60
|
description:
|
96
61
|
email: james@jamesrobertson.eu
|
97
62
|
executables: []
|
@@ -118,8 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
83
|
- !ruby/object:Gem::Version
|
119
84
|
version: '0'
|
120
85
|
requirements: []
|
121
|
-
|
122
|
-
rubygems_version: 2.6.13
|
86
|
+
rubygems_version: 3.0.1
|
123
87
|
signing_key:
|
124
88
|
specification_version: 4
|
125
89
|
summary: Intended for building HTML from a kind of Slim template.
|
metadata.gz.sig
CHANGED
Binary file
|