premailer 1.9.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/premailer/adapter/nokogiri_fast.rb +2 -2
- data/lib/premailer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e05556033aa604e7c14baa5250b5d7d5baf90e1e
|
|
4
|
+
data.tar.gz: 302aff11e259bce3d183f3ec57c387da51ad67a8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 78658bc3655cf3eae6f2c11e1bd2cd9974b1eda62518818620e84d222429cbe6bab8e2f827962342059c19df7179d26e534d54f169b3c6adcc6c564473b88594
|
|
7
|
+
data.tar.gz: 981be77ba31ab22cb7199c8b885a75be53d28c79f1c8e1c9a38d0dd29d2a74763236c9824ebfbc16464b18c1f485d0f26e1fa4ea4865ca4997ee3bf851c19e6e
|
|
@@ -223,10 +223,10 @@ class Premailer
|
|
|
223
223
|
# However, we really don't want to hardcode this. ASCII-8BIT should be the default, but not the only option.
|
|
224
224
|
if thing.is_a?(String) and RUBY_VERSION =~ /1.9/
|
|
225
225
|
thing = thing.force_encoding(@options[:input_encoding]).encode!
|
|
226
|
-
doc = ::Nokogiri::
|
|
226
|
+
doc = ::Nokogiri::HTML(thing, nil, @options[:input_encoding]) { |c| c.recover }
|
|
227
227
|
else
|
|
228
228
|
default_encoding = RUBY_PLATFORM == 'java' ? nil : 'BINARY'
|
|
229
|
-
doc = ::Nokogiri::
|
|
229
|
+
doc = ::Nokogiri::HTML(thing, nil, @options[:input_encoding] || default_encoding) { |c| c.recover }
|
|
230
230
|
end
|
|
231
231
|
|
|
232
232
|
# Fix for removing any CDATA tags from both style and script tags inserted per
|
data/lib/premailer/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: premailer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.9.
|
|
4
|
+
version: 1.9.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alex Dunae
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-01-
|
|
11
|
+
date: 2017-01-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: css_parser
|