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 +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/mail/jdec/fields/references_field_patch.rb +18 -0
- data/lib/mail/jdec/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1439ee34ec7c5e655e0ec6e6e8c88ec838368eaeb9a02732baa728222ef602d4
|
4
|
+
data.tar.gz: 496f8d4c1fc6674780841d39cc277fc56966a0687b6665b051f654bc4c7f023d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9aecb3bcd3ec4b4093339ea37c974572b39dafd02749d47d9c95337e4cc78cf8e7cdc8ca103de517d189d19b9916e31cf6580d824f0a4be56c4e5d9e53bb2f83
|
7
|
+
data.tar.gz: c073c37e23f97e36c69630923722567686c7bb43b65958c8600af2912c877770bcb19c14a5ece1fea0e6b5538a97e15ee4a5aa5d8866ba93dabb703b3cacd856
|
data/CHANGELOG.md
ADDED
@@ -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
|
data/lib/mail/jdec/version.rb
CHANGED
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.
|
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-
|
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
|