premailer 1.9.0 → 1.9.1

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: 2e8e7d38035296170890e416aa7b33bb1aef052b
4
- data.tar.gz: 4ee232c94b2585448385d2e8e8b8884380ada987
3
+ metadata.gz: e05556033aa604e7c14baa5250b5d7d5baf90e1e
4
+ data.tar.gz: 302aff11e259bce3d183f3ec57c387da51ad67a8
5
5
  SHA512:
6
- metadata.gz: a6a5daedd7752a35cf677cbf62d58697809cc496f44372247f7a080395a13756e9a9a1e633c44ba44faeff55f83c118454cb146c7860108cd5d792dda0d82ab2
7
- data.tar.gz: d4d53382db2412c1c8e4e022adc114828fd46e79c8fd6f8903089c34a2ffed0b8799252792f0fdf1eca3e0d7844bd6bffa8feccc8bf5b6e6294aec9b9ccda0c1
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::HTML5(thing)
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::HTML5(thing)
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
@@ -1,4 +1,4 @@
1
1
  class Premailer
2
2
  # Premailer version.
3
- VERSION = '1.9.0'.freeze
3
+ VERSION = '1.9.1'.freeze
4
4
  end
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.0
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-14 00:00:00.000000000 Z
11
+ date: 2017-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: css_parser