mail-jdec 1.0.5 → 1.0.6

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: ff7600ea968171f557f4e467372e10a7a6535d990e4623ce89fe9fe2b31a2b2e
4
- data.tar.gz: cd62273ede16c68c13b2fa9edcb58391d76fa0cf8e8944f61837e3f83b6f00f2
3
+ metadata.gz: bf5bd547638b25fe2e32d1e8af6afff6d5f368760ebb481f02be5b90ea81811f
4
+ data.tar.gz: e01268d216f0eec762a15d8dc98416339cf37b8a47d542757ee50ec0b1807269
5
5
  SHA512:
6
- metadata.gz: '098f579097cffa49a382a7678e7bb9e7321946bc791919a021528c841f6b9bbcbfdefa43fec420bd882ee5e1e2873e2bf4ab4de1034a1ccc26f310c2e787ee7c'
7
- data.tar.gz: 35be3c8675a4accb64b7552c9aaaa604e8b3d27fa609e1e53a1fe44909368f0615ab28c0d31fc878f64b801182fdc65a12193059adf03a577e9d6060ec24f9bd
6
+ metadata.gz: cf4eb546d479f4a1b86e755790aef3bae4136043f295ee33946e62b028fa7fea65f992df1a0295ff4bdb7ae8eefd012ebf1cb204c7a9b40faeaaf47051fb60bd
7
+ data.tar.gz: 7ec8a6747dd5bd0eba21ef47c4c577ddaf6bb1fedd7e77848bb9c1102cc042c4eda4b221e3c65aa7e7b8fc168a98d941048c74616a1e1b9084f7d6791dba46a3
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.0.6
4
+
5
+ * Fix decoding for invalid ascii characters in mail header.
6
+
3
7
  ## 1.0.5
4
8
 
5
9
  * Force utf-8 when charset is not detected.
@@ -3,7 +3,7 @@ module Mail
3
3
  class Decoder
4
4
  class << self
5
5
  def decode_if_needed(text)
6
- return text if text.nil? || !text.ascii_only?
6
+ return text if text.nil? || text.encoding == Encoding::UTF_8
7
7
 
8
8
  detected = Detector.detect(text)
9
9
  if detected
@@ -1,5 +1,5 @@
1
1
  module Mail
2
2
  module Jdec
3
- VERSION = '1.0.5'
3
+ VERSION = '1.0.6'
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.5
4
+ version: 1.0.6
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-04-08 00:00:00.000000000 Z
11
+ date: 2019-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mail