svgle 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/svgle.rb +5 -27
- metadata +2 -2
- metadata.gz.sig +1 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d325cd53492cbc7bbe954ab92c38c8e993cfe2e4
|
4
|
+
data.tar.gz: 18e6e849a0de573e5f283995d26e25271fb7ec12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89578da4e3289dd27ed47c21e487a11d1a456e77ad037d865f572637909a631f321d5feefcd0a1790677efb62ebc21a439178cad6309e700d37e1392034b4943
|
7
|
+
data.tar.gz: ddd11a9e33cf86bea3a2e26d51c93eaea8815ad05115d854756ab71177cd4e84e4f83f19c045328da98eada2777848a80115b30b37dd37552d5c111e383d78fe
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/svgle.rb
CHANGED
@@ -145,35 +145,13 @@ class Svgle < Domle
|
|
145
145
|
end
|
146
146
|
|
147
147
|
|
148
|
-
|
149
|
-
|
150
|
-
def
|
151
|
-
|
152
|
-
# add the default CSS
|
153
|
-
|
148
|
+
protected
|
149
|
+
|
150
|
+
def add_default_css()
|
154
151
|
add_css DEFAULT_CSS
|
152
|
+
end
|
155
153
|
|
156
|
-
|
157
|
-
@doc.root.xpath('//style').each {|e| add_css e.text }
|
158
|
-
|
159
|
-
# check for an external CSS file
|
160
|
-
if @instructions and @instructions.any? then
|
161
|
-
|
162
|
-
hrefs = @instructions.inject([]) do |r,x|
|
163
|
-
|
164
|
-
if x[0] =~ /xml-stylesheet/i and x[1] =~ /text\/css/i then
|
165
|
-
|
166
|
-
r << x[1][/href\s*=\s*["']([^'"]+)/,1]
|
167
|
-
else
|
168
|
-
r
|
169
|
-
end
|
170
|
-
end
|
171
|
-
|
172
|
-
add_css hrefs.map{|x| RXFHelper.read(x).first}.join
|
173
|
-
|
174
|
-
end
|
175
|
-
|
176
|
-
end
|
154
|
+
private
|
177
155
|
|
178
156
|
def defined_elements()
|
179
157
|
{
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: svgle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
/cwDMD511+2hNiVHI6IKth0oybwGyVAFGdWyfxRsL6PXC31eaVImP0O4Y1JCB4+Q
|
32
32
|
g7yNFaM/yTP4DQ==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2017-
|
34
|
+
date: 2017-05-21 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: domle
|
metadata.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
�e�e�(���,?od�k�YTW��@��b}�w�lf�����~�Xd���U��,����b�I6�3!*/������������F�IK
|
1
|
+
�w~Z�Rf|a��Q�����\}�I�����єo�m/;�p�S6�3�����{c!0���$ʙ�65B����T�G( �����Z����я�~X��z��l�t�uV|!�p]k�
|