stylesheet 0.1.6 → 0.1.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
  SHA256:
3
- metadata.gz: d8731f136d13c2aafa5686bc348ed721890e8d8186ccf7b3d07b04b5e4b1d286
4
- data.tar.gz: 5e1a9e9c982d43c12c2e7bed8c43703b7fae491282d1c17e24f25567bbbec08a
3
+ metadata.gz: bc5eb1cd967796c26fa522311f64ba8663d917b97a2107fe54ff46b4bc4b0cfc
4
+ data.tar.gz: 59910caf94fa181675c0ea35bca624d9895334a40706a3690ce359983de30f2d
5
5
  SHA512:
6
- metadata.gz: 73c42acfa16d26fe5c48dffaaf738cf21452dcdc8e1c2be9ae050663a70be53eaab99a87cb9cce8f7096b04bd52b828e0704f15b70ec74cb0edf93323bc4bc42
7
- data.tar.gz: 696f793a09c89575152c2a31730909e76d0328bb095c540c7c405347b6bc53f3e414619e86e956bee3e51d3a10f7ce47c4bfbcc34be627f2d6f3fb8b8354e8f5
6
+ metadata.gz: 634effa1d81245401ec054e7a30748111fa65480900773a5a12e9aff0cc13390cbb1d93392de11a9eecd946c51c5093360c40b717465182490742a704cd96774
7
+ data.tar.gz: c48fdfec84a35d17f07e5fe7877e0eb7b46dcba1fa7471b93ce7c1df240345486aaca9cc4d1dd6f0bb5a62cc37406629e6ac80127fa23d6da13f280d10a2905c
@@ -27,13 +27,14 @@ module Stylesheet
27
27
 
28
28
  private
29
29
 
30
- def styles
30
+ def styles
31
31
  (inline_styles + external_styles).map do |style|
32
- { parent: self,
33
- content: style.inner_html,
34
- href: style["href"],
35
- media: style["media"],
36
- title: style["title"] }
32
+ html = style.inner_html
33
+ { parent: self,
34
+ content: html != "" ? html : nil,
35
+ href: style["href"],
36
+ media: style["media"],
37
+ title: style["title"] }
37
38
  end
38
39
  end
39
40
 
@@ -60,4 +61,4 @@ module Stylesheet
60
61
  @request ||= Stylesheet.request
61
62
  end
62
63
  end
63
- end
64
+ end
@@ -1,3 +1,3 @@
1
1
  module Stylesheet
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stylesheet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek DeVries