html2slim 0.0.5 → 0.0.6

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: a160f480ebf84e9e8ec97bfe7f4f2698f6789758
4
- data.tar.gz: e33e1d4799ac272c263e9db46fc1769eb59370df
3
+ metadata.gz: 6ae09d0c7b0b54e8f9e6cc6f5eedacabe266bef2
4
+ data.tar.gz: 4c443218ed1934470da2e2850329fdd26e0bcd95
5
5
  SHA512:
6
- metadata.gz: 3e67c5c0e003f756da34b7a183d9a77ae40731e6fea884ae548a120bd44062b2abfe00749cc3eef6fdec7ec4be56579fe59e79ba007a69efb5f5c4a8b0609190
7
- data.tar.gz: 7caa78d05f9a7dc3c955a219aa00324e4ca17a66257458c55f7380660a903f7e9cc9ea07b513601af4816e5d8dee2c28b2ce03788e1ff2f524a2fa6f3964a1fc
6
+ metadata.gz: b51741a010de3971ca15499331d4816e969e349a20872146b24cd2ef7da9983241d99a723e609e6b152951eb87365f1d12f9d8132a694bd43b76b6fb127743bb
7
+ data.tar.gz: e72cf6d9bc0b280bb3fce68e41c90f8070187f745c2ea34543742470a64e713f476314645248c3ab5e88563ffbc3149b5fb4554244c57a3e71be20bdfb9cc183
@@ -1,6 +1,7 @@
1
1
  require_relative 'hpricot_monkeypatches'
2
2
 
3
3
  module HTML2Slim
4
+ B
4
5
  class Converter
5
6
  def to_s
6
7
  @slim
@@ -83,7 +83,7 @@ class Hpricot::Elem
83
83
  end
84
84
 
85
85
  def slim_class
86
- has_class?? ".#{self['class'].split(/\s+/).join('.')}" : ""
86
+ has_class?? ".#{self['class'].strip.split(/\s+/).join('.')}" : ""
87
87
  end
88
88
 
89
89
  def slim_attributes
@@ -1,3 +1,3 @@
1
1
  module HTML2Slim
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html2slim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maiz Lulkin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-31 00:00:00.000000000 Z
11
+ date: 2014-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hpricot