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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -2
- data/lib/hlt.rb +4 -2
- metadata +2 -2
- 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: 039dcd363671f5564986d2bb9de284f22e2a2796
|
4
|
+
data.tar.gz: 53e132c0e255bd65e96b0d67c56ec773f265abde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bba8c56d80f4ada573cee815c13a8b9f28c9db765bea6340571019159e424605dd88bf99c71a5a0f3a60069eda00076657a7591a6d480b4a8001c7615862bd6c
|
7
|
+
data.tar.gz: 041c5b8387c7853eda9d74a26a5118b71ffbc574e4f1c6b21cf3342ff833abf94079ac07b7a561f679866a05fb332c4c1d8f3400f822c44ab05b392cf60a83af
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
��o;�.��Z_<��@(&}����H4��� /���b"�d�Q��_�x��C7E�[���1�
|
2
|
+
�-�������a�\so�E�}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
|
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.
|
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-
|
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
|