hlt 0.2.13 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +3 -2
- data/lib/hlt.rb +8 -4
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40b89c00e8dae8b59488ac622f3418105d6d4dea
|
4
|
+
data.tar.gz: c7adc68c0ab1fd7ee0f67a729d5c5a306c5db9d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff1ec83ede9616f0f16a189f5c604de721b698d19b3263950119b02cc0fc6e383dd1d4f8c81a2c2176cba89b720d1ca1451332630cd8d5fdd0d5ef05fb996982
|
7
|
+
data.tar.gz: 73b9f9a58ee12094fbdf59c5766a8d30f7d1853b2566a4213a08102eecf234778ff884a5b29b297aa0c4bf3d66575ef46ebf5204cbf25b77d9d29d5e349eb5fd
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
3��6R
|
2
|
+
��)'�g����
|
3
|
+
��4�3��Jǎ��16�Ƕ���J�t�����SA꽡�Qz�% �´��Q-d��T�L����4�̇m6Cf�3k��4ܡ����x��L2z�b�MYT�Tf��� N78M�gD7[=7��{FY���xݾ1��K8`�/�qh�6*���/��C��fd�[X�%�Y�$�ӎC�_"U�:.i�q��'Kf���S��ׄ�Ξ!�Ǖ/i?��
|
data/lib/hlt.rb
CHANGED
@@ -28,6 +28,8 @@ class Hlt
|
|
28
28
|
s2 = s.lines.to_a.map!{|line|
|
29
29
|
|
30
30
|
hash = "(\s*\{[^\}]+\})?"
|
31
|
+
|
32
|
+
line.prepend ' '
|
31
33
|
|
32
34
|
r = line.sub(/^\s*(\w+)?(?:[\.#]\w+){1,}#{hash}/) do |x|
|
33
35
|
|
@@ -52,10 +54,11 @@ class Hlt
|
|
52
54
|
end
|
53
55
|
|
54
56
|
r
|
55
|
-
}
|
56
|
-
|
57
|
+
}
|
58
|
+
|
59
|
+
s2.unshift "root\n"
|
57
60
|
|
58
|
-
raw_html = LineTree.new(s2).to_xml
|
61
|
+
raw_html = LineTree.new(s2.join).to_xml
|
59
62
|
|
60
63
|
html = raw_html.gsub('!CODE').with_index do |x,i|
|
61
64
|
"\n\n" + a_code[i].lines.map{|x| ' ' * 4 + x}.join + "\n"
|
@@ -83,7 +86,8 @@ class Hlt
|
|
83
86
|
end
|
84
87
|
|
85
88
|
|
86
|
-
html = doc.xml opt
|
89
|
+
#html = doc.xml opt
|
90
|
+
html = doc.root.xpath('*'){|x| x.xml opt}.join("\n")
|
87
91
|
|
88
92
|
time = Time.now
|
89
93
|
timestamp = time.strftime("#{ordinalize(time.day)} %B %Y @ %H:%M")
|
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.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
5IGsS5sdm4Kij1FAfaWjaheiPLOT6ZD3hDqkY+2utR6/Qt6eBqXnd4miH0BiZoIQ
|
32
32
|
U5u7D4Sb66WO1A==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2014-10-
|
34
|
+
date: 2014-10-28 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: line-tree
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
version: '0.3'
|
43
43
|
- - ">="
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0.3.
|
45
|
+
version: 0.3.22
|
46
46
|
type: :runtime
|
47
47
|
prerelease: false
|
48
48
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
version: '0.3'
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.3.
|
55
|
+
version: 0.3.22
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rdiscount
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|