hlt 0.3.1 → 0.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 504fb583b7ba651b55f917ce713847ee198fc150
4
- data.tar.gz: 2e600ea6391b38ba2276dcedca57ab8c1d5263b9
3
+ metadata.gz: e47e212de40d15c2fa3d25ae0039c8197a14a7fd
4
+ data.tar.gz: 499d48c3ea0245a397586dfd821c882920c76c91
5
5
  SHA512:
6
- metadata.gz: 5b53c4bf1b5de731a86be7b3bca06def19fc73b8654e2e5855477ec06e0d329f35ab4e86d96115489430442df8d4b795ed7f0e5d0413dbe0eb06dae56f09d0b3
7
- data.tar.gz: ea4f18f1c4491a188ac59d8d1a14e9ce3e712c9e745f50d5f918f40672f3806433a4a9d73abb09ce86e104eced033732fb252fd33798a4d94bc42ffd805b8912
6
+ metadata.gz: 5ea78b839653317523f33b3719337e8159f118146b641f40025d131bae8ad5a407ca5d5fbae81c3df455c7dce0ac8662f998608e29ee9d52443c471aa3053eaa
7
+ data.tar.gz: 6607ea1c74c2653ea3cfc006876c87eafbf91a660a568f0bbc134b115b10584efd72219a4d25001f72bbf81826004ac743391e490d586cb0b8bf27d4d47c5720
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/hlt.rb CHANGED
@@ -33,8 +33,10 @@ class Hlt
33
33
 
34
34
  line.prepend ' '
35
35
 
36
+ line.sub!(/^(\s*)\w+: /,'\0' + "\n" + '\1')
37
+
36
38
  r = line.sub(/^\s*(\w+)?(?:[\.#]\w+){1,}#{hash}/) do |x|
37
-
39
+
38
40
  raw_attrs = x.slice!(/\{.*\}/)
39
41
  attrs = raw_attrs[1..-2] if raw_attrs
40
42
 
@@ -42,7 +44,7 @@ class Hlt
42
44
  tag = x[/(^\s*\w*)[#\.]/,1] || 'div'
43
45
  tag += 'div' if tag.strip.empty?
44
46
 
45
- x.sub(/(?:\.\w+){1,}/) do |x2|
47
+ x.sub(/(?:\.\w+){1,}/) do |x2|
46
48
  a = x2[/(?:\.\w+){1,}/].split('.')
47
49
  a.shift
48
50
  a2 << "class: '%s'" % a.join(' ')
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.3.1
4
+ version: 0.3.2
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-28 00:00:00.000000000 Z
34
+ date: 2014-11-21 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