mail-jdec 1.0.0 → 1.0.1

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: 925ecb5ca03bce312fbffc21b30f4385cca1efd55461afcce02a7a8ccd46bdd2
4
- data.tar.gz: 9a8fa9a47b6370d6e289fe53dbb14a053791d14d4fa5ea68160e7448678ed545
3
+ metadata.gz: 1439ee34ec7c5e655e0ec6e6e8c88ec838368eaeb9a02732baa728222ef602d4
4
+ data.tar.gz: 496f8d4c1fc6674780841d39cc277fc56966a0687b6665b051f654bc4c7f023d
5
5
  SHA512:
6
- metadata.gz: 2458f803b38b3ae52ab5b82032c38e2d9c15cfba810eb44df9a320b3ae782463afabba5e2f5029543c2d3cd9c4fc90522db664804de945f96d4edbf1bfdde49e
7
- data.tar.gz: 8c6e60a7e79a00bbb90c602c44224cff6595afa1b5f13c5df79f93489ae4639b8df9ff2635fc9fec00b8fb2e9764070865d8bcf6059df5cd41009a9cedca8efe
6
+ metadata.gz: 9aecb3bcd3ec4b4093339ea37c974572b39dafd02749d47d9c95337e4cc78cf8e7cdc8ca103de517d189d19b9916e31cf6580d824f0a4be56c4e5d9e53bb2f83
7
+ data.tar.gz: c073c37e23f97e36c69630923722567686c7bb43b65958c8600af2912c877770bcb19c14a5ece1fea0e6b5538a97e15ee4a5aa5d8866ba93dabb703b3cacd856
data/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ # CHANGELOG
2
+
3
+ ## 1.0.1
4
+
5
+ * Add path for references field to handle comma-splitted value.
6
+
7
+ ## 1.0.0
8
+
9
+ * First release.
@@ -0,0 +1,18 @@
1
+ module Mail
2
+ module Jdec
3
+ module ReferencesFieldPatch
4
+ def initialize(value = nil, charset = 'utf-8')
5
+ if Jdec.enabled?
6
+ if value.is_a?(String)
7
+ value = value.gsub(/>\s*,\s*</, ">\r\n <")
8
+ end
9
+ end
10
+ super
11
+ end
12
+ end
13
+ end
14
+ end
15
+
16
+ unless Mail::ReferencesField.included_modules.include?(Mail::Jdec::ReferencesFieldPatch)
17
+ Mail::ReferencesField.prepend Mail::Jdec::ReferencesFieldPatch
18
+ end
@@ -1,5 +1,5 @@
1
1
  module Mail
2
2
  module Jdec
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
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.0
4
+ version: 1.0.1
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-17 00:00:00.000000000 Z
11
+ date: 2019-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mail
@@ -90,6 +90,7 @@ files:
90
90
  - ".gitignore"
91
91
  - ".rspec"
92
92
  - ".travis.yml"
93
+ - CHANGELOG.md
93
94
  - Gemfile
94
95
  - LICENSE
95
96
  - README.md
@@ -103,6 +104,7 @@ files:
103
104
  - lib/mail/jdec/elements/content_disposition_element_patch.rb
104
105
  - lib/mail/jdec/elements/content_type_element_patch.rb
105
106
  - lib/mail/jdec/encodings_patch.rb
107
+ - lib/mail/jdec/fields/references_field_patch.rb
106
108
  - lib/mail/jdec/fields/structured_field_patch.rb
107
109
  - lib/mail/jdec/fields/unstructured_field_patch.rb
108
110
  - lib/mail/jdec/message_patch.rb