mail-jdec 1.0.1 → 1.0.2

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: 1439ee34ec7c5e655e0ec6e6e8c88ec838368eaeb9a02732baa728222ef602d4
4
- data.tar.gz: 496f8d4c1fc6674780841d39cc277fc56966a0687b6665b051f654bc4c7f023d
3
+ metadata.gz: d8eb539ef041f4711f6c84bd47a9629b0dda45660d5db86e6af8bcd8dcb60edf
4
+ data.tar.gz: 0deef48a46ee7e19d1c996e21439918de347a8ee71161d4402d8af0100d36c30
5
5
  SHA512:
6
- metadata.gz: 9aecb3bcd3ec4b4093339ea37c974572b39dafd02749d47d9c95337e4cc78cf8e7cdc8ca103de517d189d19b9916e31cf6580d824f0a4be56c4e5d9e53bb2f83
7
- data.tar.gz: c073c37e23f97e36c69630923722567686c7bb43b65958c8600af2912c877770bcb19c14a5ece1fea0e6b5538a97e15ee4a5aa5d8866ba93dabb703b3cacd856
6
+ metadata.gz: bf8e2069d17990a73c364efc5643f25f3ba675ab69c131a6d62cb8af22d53eee54fb066663c964c51610d86093847e3b097a0caa4f798c75cf41e918b93e8f1e
7
+ data.tar.gz: 0304f8449be0056c128e1755f9eeed5c4d25bf9e44e6ef18cacc192709ae9c213d57214addc6596cc143950e59d508733c8972a83edf0ff53314c08bb80351ed
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.0.2
4
+
5
+ * Don't run auto-detection if content type is not text.
6
+
3
7
  ## 1.0.1
4
8
 
5
9
  * Add path for references field to handle comma-splitted value.
@@ -4,7 +4,7 @@ module Mail
4
4
  def decoded
5
5
  decoded = super
6
6
 
7
- if Jdec.enabled? && (!has_content_type? || (!has_charset? && !attachment? && !multipart?))
7
+ if Jdec.enabled? && (!has_content_type? || (text? && !has_charset? && !attachment? && !multipart?))
8
8
  detected = Detector.detect(decoded)
9
9
  if detected && detected[:type] == :text
10
10
  charset = detected[:encoding].downcase
@@ -1,5 +1,5 @@
1
1
  module Mail
2
2
  module Jdec
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
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.1
4
+ version: 1.0.2
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-24 00:00:00.000000000 Z
11
+ date: 2019-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mail