mail-jdec 1.0.2 → 1.0.3

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
  SHA256:
3
- metadata.gz: d8eb539ef041f4711f6c84bd47a9629b0dda45660d5db86e6af8bcd8dcb60edf
4
- data.tar.gz: 0deef48a46ee7e19d1c996e21439918de347a8ee71161d4402d8af0100d36c30
3
+ metadata.gz: 40591766001e935ee0d7788949ffeb1bc1169f15648e12b2393c1e493d73fbb5
4
+ data.tar.gz: b2a30e1f237534e3f4ad48580d9696c7e51865230c0391282e83bcce2481b644
5
5
  SHA512:
6
- metadata.gz: bf8e2069d17990a73c364efc5643f25f3ba675ab69c131a6d62cb8af22d53eee54fb066663c964c51610d86093847e3b097a0caa4f798c75cf41e918b93e8f1e
7
- data.tar.gz: 0304f8449be0056c128e1755f9eeed5c4d25bf9e44e6ef18cacc192709ae9c213d57214addc6596cc143950e59d508733c8972a83edf0ff53314c08bb80351ed
6
+ metadata.gz: f20fb45790b61b679be860b6460a1db9d4ae4a04485a58de95fd3f17a6790be351d5ba37a7095b55556032950f585135dd31194c66ce492134e037386c0ca697
7
+ data.tar.gz: dc3a1c3a3a5c77b4fa56f27ef20521bdf0559d1a58cceb8f425b1949a9a9aa523b75488a6dd772f0e11f39cd0cc131a5476b11df054ce9d5b5beb6bcddf0aaad
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.0.3
4
+
5
+ * Fix decoding of quoted printable with space.
6
+
3
7
  ## 1.0.2
4
8
 
5
9
  * Don't run auto-detection if content type is not text.
@@ -45,7 +45,7 @@ module Mail
45
45
  bytes = content.scan(/\=\?([^?]+)\?([QB])\?([^?]*?)\?\=/mi).map do |_, encoding, encoded|
46
46
  case encoding
47
47
  when *B_VALUES then Mail::RubyVer.decode_base64(encoded)
48
- when *Q_VALUES then Mail::Encodings::QuotedPrintable.decode(encoded)
48
+ when *Q_VALUES then Mail::Encodings::QuotedPrintable.decode(encoded.gsub(/_/, '=20').sub(/\=$/, ''))
49
49
  end
50
50
  end.join('')
51
51
  Mail::Encodings.transcode_charset(bytes, charset)
@@ -1,5 +1,5 @@
1
1
  module Mail
2
2
  module Jdec
3
- VERSION = '1.0.2'
3
+ VERSION = '1.0.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail-jdec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshikazu Kaneta
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-30 00:00:00.000000000 Z
11
+ date: 2019-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mail