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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee038b077f53671940af4b7a23c9ff4d9822d00a
4
- data.tar.gz: 8ff26ec951b501afaaf3e54734383fca39c2170c
3
+ metadata.gz: 40b89c00e8dae8b59488ac622f3418105d6d4dea
4
+ data.tar.gz: c7adc68c0ab1fd7ee0f67a729d5c5a306c5db9d0
5
5
  SHA512:
6
- metadata.gz: 51c9f50b7b32a187301f0d873d0d06168874ae5cc2f73a4f13beb292bab47c39ab4e94abfce92baf463b3e5d2686f371de8e5ea32ab5e6ac1d6c337e65d6ff63
7
- data.tar.gz: 961c4af7632a471f07b9b83e97285831a4a9699dff5c2bb68178fcde9663982fe938bbfe960fdea9aa9a2a7259f5f0a9cea55b5bb6fe525b691f03c76fb15c61
6
+ metadata.gz: ff1ec83ede9616f0f16a189f5c604de721b698d19b3263950119b02cc0fc6e383dd1d4f8c81a2c2176cba89b720d1ca1451332630cd8d5fdd0d5ef05fb996982
7
+ data.tar.gz: 73b9f9a58ee12094fbdf59c5766a8d30f7d1853b2566a4213a08102eecf234778ff884a5b29b297aa0c4bf3d66575ef46ebf5204cbf25b77d9d29d5e349eb5fd
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1,3 @@
1
-
2
- ��=Wc�f�rة�‘(N�Z�/��A0"���.s(~`��qo�����ě�(F�3(�D%r��D-���d}��؛��;ą[�xA"��z�A���*ܰ�.M�f�$����oΗ�?"�DM����cu�*�n�OF� ��Cw����n����˘��{��V~�c$?�D��4oH�+�3�⒯Q
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
- }.join
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.2.13
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-25 00:00:00.000000000 Z
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.17
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.17
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