hlt 0.2.6 → 0.2.7

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: e44d11f292e689a845792055e025a863e80901e5
4
- data.tar.gz: 209b2614efe1d6686100f791a9edca251364ad66
3
+ metadata.gz: 039dcd363671f5564986d2bb9de284f22e2a2796
4
+ data.tar.gz: 53e132c0e255bd65e96b0d67c56ec773f265abde
5
5
  SHA512:
6
- metadata.gz: 1f732bc51f93b3ad9c8f28efca38700c67bc46fe258cedf47604c62eecaeaef30836e0ece6016b11c4a7e15a2dfd3dff037993d3a05df20961b3751292ba7690
7
- data.tar.gz: 6e614a175425594b6545606292bb4cf4544f3ab568dfaeb4f47eb260961b99582bc0eb46420f37baab02058faed345732efa5789f8f612bbd5c9b3a205443965
6
+ metadata.gz: bba8c56d80f4ada573cee815c13a8b9f28c9db765bea6340571019159e424605dd88bf99c71a5a0f3a60069eda00076657a7591a6d480b4a8001c7615862bd6c
7
+ data.tar.gz: 041c5b8387c7853eda9d74a26a5118b71ffbc574e4f1c6b21cf3342ff833abf94079ac07b7a561f679866a05fb332c4c1d8f3400f822c44ab05b392cf60a83af
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- �C���J��Վ�0�*vO��Ɓq��E�壩&�P���a����,�� ��#���n)'������IJ⶧���ȥfIq
2
- ���B=ɴ��5|i� �S�@�5������xu97g�muWq�YՎ��*�t5���(u��PGTp#�*�:QNE����*D@�"�=Dj&�w{\2� &"�^��ΑS��gX:����* `m�l��%�?M�L3�������M�����-��[U��f�gb9���?C���A�C
1
+ ��o;�.�� Z_<��@(&}����H4��� /���b"dQ��_x��C7E[���1�
2
+ �-� ������a�\soE�}3>&��`�a��É'
data/lib/hlt.rb CHANGED
@@ -9,7 +9,9 @@ class Hlt
9
9
 
10
10
  attr_reader :to_html
11
11
 
12
- def initialize(raw_s)
12
+ def initialize(raw_s, options={})
13
+
14
+ opt = {pretty: true, declaration: true}.merge(options)
13
15
 
14
16
  # strip out lines which are blank or only contain a comment
15
17
  #s = raw_s.lines.to_a.reject!{|x| x[/(^\s+\#\s)|(^\s*$)/] }
@@ -63,7 +65,7 @@ class Hlt
63
65
  .gsub(/<(\w+)>{style:\s*['"]([^'"]+)[^\}]+\}/,'<\1 style=\'\2\'>'))
64
66
  end
65
67
 
66
- @to_html = Rexle.new(html).xml pretty: true
68
+ @to_html = Rexle.new(html).xml opt
67
69
 
68
70
  end
69
71
 
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.6
4
+ version: 0.2.7
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-03 00:00:00.000000000 Z
34
+ date: 2014-10-04 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: line-tree
metadata.gz.sig CHANGED
Binary file