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 +4 -4
- data/lib/stylesheet/document.rb +8 -7
- data/lib/stylesheet/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc5eb1cd967796c26fa522311f64ba8663d917b97a2107fe54ff46b4bc4b0cfc
|
4
|
+
data.tar.gz: 59910caf94fa181675c0ea35bca624d9895334a40706a3690ce359983de30f2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 634effa1d81245401ec054e7a30748111fa65480900773a5a12e9aff0cc13390cbb1d93392de11a9eecd946c51c5093360c40b717465182490742a704cd96774
|
7
|
+
data.tar.gz: c48fdfec84a35d17f07e5fe7877e0eb7b46dcba1fa7471b93ce7c1df240345486aaca9cc4d1dd6f0bb5a62cc37406629e6ac80127fa23d6da13f280d10a2905c
|
data/lib/stylesheet/document.rb
CHANGED
@@ -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
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
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
|
data/lib/stylesheet/version.rb
CHANGED