mail-jdec 1.0.8 → 1.0.9

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: a75b14c21a8928bb25ec161bc6232159f2e343c076cbd0b799e73e686aa03c5f
4
- data.tar.gz: 91f162a48af9ad8e77da22bcdb89e3239746e71f417a8cb23b0b1b62627a6284
3
+ metadata.gz: feec5706ee16a220df6c5a3c9d6ad95fab171a1595d25d3c136cb66675f70aa0
4
+ data.tar.gz: 899a4f31ad9e1495583db9fd8bea76a0fb0d1ab3a2aaf3b12cb0023936b52a4d
5
5
  SHA512:
6
- metadata.gz: bff93ec2c49b2dad225f6785c7569644777ef92a6a6d9c7b5246cfd63c7e6aa7fe716740ff06858672eca080f9f871e1bef4a6e4d42c010047388b22de266bb3
7
- data.tar.gz: 1ede593a0e8ccefc853971935e0ce225a7b620819fe202b1f76f9eea84a66c68573e0c039b583bfd69f3373d08acbbeb09885bbce38cc245430609bd79a296c4
6
+ metadata.gz: 05b911c451eb17f69df91917c32199c5817a61316d774e753b1372d3a4fcb24d4bd1585c737c928c16118ba69ec20d7f442797fe4f38663e9dd64f5370434010
7
+ data.tar.gz: ceca469204147de51d594b5abc7888e766d2b7fac23e8b938e6845e0bd319b5d086c779a69f95074b0b5d4411b1ae8316e0b99413ed12f7812cc9b40a18b77fe
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.0.9
4
+
5
+ * Strip only null bytes.
6
+
3
7
  ## 1.0.8
4
8
 
5
9
  * Prefer utf-8 to us-ascii for header's charset.
@@ -20,7 +20,10 @@ module Mail
20
20
  else
21
21
  str = super
22
22
  end
23
- str.strip! if to_encoding.to_s.downcase == 'utf-8'
23
+ if to_encoding.to_s.downcase == 'utf-8'
24
+ str.gsub!(/^\x00+/, '')
25
+ str.gsub!(/\x00+$/, '')
26
+ end
24
27
  str
25
28
  else
26
29
  super
@@ -1,5 +1,5 @@
1
1
  module Mail
2
2
  module Jdec
3
- VERSION = '1.0.8'
3
+ VERSION = '1.0.9'
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.8
4
+ version: 1.0.9
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-05-13 00:00:00.000000000 Z
11
+ date: 2019-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mail