dom_render 0.2.1 → 0.2.2

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: c72a8b1367b2c348f038a6531adf36ce720d719f
4
- data.tar.gz: 67e03856cd627cca00593d39bef67cb5e3dd1545
3
+ metadata.gz: 5b713831ebed03a5d5cc08717d1eb090202e1e28
4
+ data.tar.gz: 13311de83a98db2d1cc45b2d342249ac1bc08a3c
5
5
  SHA512:
6
- metadata.gz: a1af8a8a860a64613f85d1089f988d6f47333a0bbb462a77dbc34fd5bb0075a26deba24280cd182b32584ab38ff06efc13e2d16db9c63227e73f75efa46f387f
7
- data.tar.gz: 715ab2c9e9d4687217d8f5e8340b2e81866a12d2ba1a50fd9618324e867b830c0aec988326a4ef521d78420c2582b70fb4a49bae1c611c5587bd334491bbf068
6
+ metadata.gz: 37e6af144cd917069d1ad614ef9daae8a34904bca58ff58bff751422be7c8c118d2953ea425e6eb58e5edac0fe3a029bd4dcc8a9a66effddbd84e74298618505
7
+ data.tar.gz: 1703e61ecd235aaba17c6ae22212dcbe31b234cff7d8b6839422a0d1cfee25c2026d8d4c301fb20f5fc0d604063a932c2524505aa27ecccdff4a330d3ec6ad53
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -22,7 +22,7 @@ class DomRender
22
22
 
23
23
  def render(x)
24
24
 
25
- style = fetch_style(x.attributes) if x.attributes.has_key? :style
25
+ style = x.attributes.has_key?(:style) ? fetch_style(x.attributes) : {}
26
26
  args = [x]
27
27
  args.concat([x.attributes, style])
28
28
 
@@ -62,4 +62,4 @@ class DomRender
62
62
 
63
63
  end
64
64
 
65
- end
65
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dom_render
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  ipCgMpSHSTGoxQ/dI853bcb+vPkAqS69GEcZgtvAmCQs5E4KC1seYLuP3qtuatL9
32
32
  dbkCMOVMy0htMQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-11-22 00:00:00.000000000 Z
34
+ date: 2015-11-24 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rexle
metadata.gz.sig CHANGED
Binary file