mhtml 0.1.5 → 0.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f4bc1a6b568ad1e1febef6b4478dcb1404c6244
4
- data.tar.gz: 782098fd53cf5aba2cb30365778be234612cb395
3
+ metadata.gz: ed1f45e1ed9c137b5f20678f5ac8d5cb7e80c629
4
+ data.tar.gz: fdc57a462899745d2a75b01d5a5ac01d0531f663
5
5
  SHA512:
6
- metadata.gz: e7cab2a94057c38dd8cbfa0a0a83f43127d3f4266b3f91a2495b3335358a50f3f0414bf819dddb2b2f0cd901d1e420a4d99ff25daa216fafc6cbcf018e606a52
7
- data.tar.gz: 46bce7e133c9ca26bae36fe4f26f1c7819931a85b1d9567d782742419be72d4c62416da0a86545c8f74848e5fad4dd1929fd44084350133461814ff92ac68747
6
+ metadata.gz: d473bde8607183efa8a785ae80a2c7d2018f069e92b8ac5649d35ea6cf233da9af0ac4512ca164af0e2af417a41bfabba4361dc89395b9b25ca4b8738f560a61
7
+ data.tar.gz: f46b254f57e95392b28d917ca7b685196537a621f362358c4af6b49c23ec365b4066babe9a8ca3efbd9ce8e6895b920c78195404a88661cc8b3f8fed45b25c0c
@@ -1,4 +1,5 @@
1
1
  require 'http-parser'
2
+ require 'base64'
2
3
 
3
4
  module Mhtml
4
5
  class Document
@@ -167,7 +168,15 @@ module Mhtml
167
168
 
168
169
  def decode(str)
169
170
  str = str.unpack1('M*') if @is_quoted_printable
170
- str = Base64.decode64(str) if @is_base_64
171
+
172
+ if @is_base_64
173
+ begin
174
+ str = Base64.decode64(str)
175
+ rescue Exception => ex
176
+ byebug
177
+ end
178
+ end
179
+
171
180
  str = str.force_encoding(@encoding) unless @encoding.nil?
172
181
  str
173
182
  end
@@ -1,3 +1,3 @@
1
1
  module Mhtml
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mhtml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Williams