mail-iso-2022-jp 2.0.9 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +4 -1
  3. data/README.md +3 -3
  4. data/lib/mail-iso-2022-jp/body.rb +1 -1
  5. data/lib/mail-iso-2022-jp/character_names.rb +1 -1
  6. data/lib/mail-iso-2022-jp/common_methods_for_field.rb +0 -0
  7. data/lib/mail-iso-2022-jp/field.rb +1 -1
  8. data/lib/mail-iso-2022-jp/field_with_iso_2022_jp_encoding.rb +0 -0
  9. data/lib/mail-iso-2022-jp/header.rb +1 -1
  10. data/lib/mail-iso-2022-jp/invalid_encoding_error.rb +0 -0
  11. data/lib/mail-iso-2022-jp/mail.rb +1 -1
  12. data/lib/mail-iso-2022-jp/mail_under_280/body.rb +14 -0
  13. data/lib/mail-iso-2022-jp/mail_under_280/character_names.rb +12 -0
  14. data/lib/mail-iso-2022-jp/mail_under_280/common_methods_for_field.rb +54 -0
  15. data/lib/mail-iso-2022-jp/mail_under_280/field.rb +20 -0
  16. data/lib/mail-iso-2022-jp/mail_under_280/field_with_iso_2022_jp_encoding.rb +43 -0
  17. data/lib/mail-iso-2022-jp/mail_under_280/header.rb +13 -0
  18. data/lib/mail-iso-2022-jp/mail_under_280/invalid_encoding_error.rb +3 -0
  19. data/lib/mail-iso-2022-jp/mail_under_280/mail.rb +10 -0
  20. data/lib/mail-iso-2022-jp/mail_under_280/message.rb +39 -0
  21. data/lib/mail-iso-2022-jp/mail_under_280/preprocessor.rb +11 -0
  22. data/lib/mail-iso-2022-jp/mail_under_280/structured_fields.rb +41 -0
  23. data/lib/mail-iso-2022-jp/mail_under_280/subject_field.rb +12 -0
  24. data/lib/mail-iso-2022-jp/message.rb +1 -1
  25. data/lib/mail-iso-2022-jp/preprocessor.rb +0 -0
  26. data/lib/mail-iso-2022-jp/ruby18/field_with_iso_2022_jp_encoding.rb +0 -0
  27. data/lib/mail-iso-2022-jp/ruby18/mail.rb +0 -0
  28. data/lib/mail-iso-2022-jp/ruby18/message.rb +0 -0
  29. data/lib/mail-iso-2022-jp/structured_fields.rb +4 -34
  30. data/lib/mail-iso-2022-jp/subject_field.rb +1 -1
  31. data/lib/mail-iso-2022-jp.rb +31 -13
  32. metadata +17 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 462a6c9d3234f2a8563492dc504dd0bedb8ec8d994b384119df8d648328d262c
4
- data.tar.gz: 1d72a73a4e14c62417d1d5ca6c768aad57098b2f956eecb16801a85e26cc4294
3
+ metadata.gz: 881232b8ab8a371aa2dc66d39d277d0fc57d940774624f163a523420894185f5
4
+ data.tar.gz: 8963800278318508912a4ffadf55e9a66202473c2ab680266fe1783f3799f755
5
5
  SHA512:
6
- metadata.gz: 7f6ffb0259fed8e9862dde967e0084cfd9078dfe2d72c1cb0e396f903d43c4a00807f1042272f908de26091b37e63b93edf6a262002ce538734538ac73b675fa
7
- data.tar.gz: c5ad8bf571d5d8215ce99d0ad6a31f0278ced4a6ab2edc6de8da8a3b8d4e61855f3e4b8edb2a20438ea334d917c89679fd0c67556a4d7f77ff835200ec823239
6
+ metadata.gz: 38e327ec30d23b3b707b8ab7a308771b9bbaad4651ad8a24cc9ec5a0ce9e3c24f8c78c9a0aca173b79f012ea510e90c9d17619fa063a3b9b55f94d18f9fa0587
7
+ data.tar.gz: 9bc7298be0e38f259b064f99f69a87c89495e14c85130c9bdff19b90fab886051fe6747a304e6b5447e074a931fa9e95dba1bc180044f59a3026e6ae228ef5b1
data/Gemfile CHANGED
@@ -7,7 +7,7 @@ if mail_gem_version = ENV['MAIL_GEM_VERSION']
7
7
  gem "mail", "= #{mail_gem_version}"
8
8
  end
9
9
  else
10
- gem "mail", "<= 2.7.0"
10
+ gem "mail", "<= 2.8.1"
11
11
  end
12
12
 
13
13
  rails_version = ENV['MAIL_ISO_2022_JP_RAILS_VERSION']
@@ -18,6 +18,9 @@ group :development, :test do
18
18
  gem "activesupport"
19
19
  gem "minitest"
20
20
  gem "test-unit"
21
+ gem 'net-imap', '~> 0.2.2'
22
+ gem 'net-pop', '~> 0.1.1'
23
+ gem 'net-smtp', '~> 0.3.0'
21
24
  if rails_version == "edge"
22
25
  gem "actionmailer", :git => "git://github.com/rails/rails.git"
23
26
  elsif rails_version && rails_version.strip != ""
data/README.md CHANGED
@@ -45,15 +45,15 @@ Requirements
45
45
 
46
46
  ### Ruby ###
47
47
 
48
- * 2.2, 2.3, 2.4, 2.5
48
+ * 2.2, 2.3, 2.4, 2.5, 2.6
49
49
 
50
50
  ### Gems ###
51
51
 
52
- * `mail` 2.2.6 or higher, but lower than or equal to 2.7.0
52
+ * `mail` 2.2.6 or higher, but lower than or equal to 2.7.1
53
53
 
54
54
  ### ActionMailer (Optional) ###
55
55
 
56
- * 3.0 or higher (including 5.x)
56
+ * 3.0 or higher (including 6.x)
57
57
 
58
58
  Getting Start
59
59
  -------------
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
 
3
3
  module Mail
4
- class Body
4
+ Body.class_eval do
5
5
  def initialize_with_iso_2022_jp_encoding(string = '')
6
6
  if string.respond_to?(:encoding) && string.encoding.to_s == 'ISO-2022-JP'
7
7
  string.force_encoding('US-ASCII')
@@ -1,6 +1,6 @@
1
1
  # coding: utf-8
2
2
 
3
- module Mail
3
+ Mail.module_eval do
4
4
  WAVE_DASH = [0x301c].pack("U")
5
5
  FULLWIDTH_TILDE = [0xff5e].pack("U")
6
6
  MINUS_SIGN = [0x2212].pack("U")
File without changes
@@ -3,7 +3,7 @@
3
3
  require 'mail'
4
4
 
5
5
  module Mail
6
- class Field
6
+ Field.class_eval do
7
7
  def initialize_with_iso_2022_jp_encoding(name, value = nil, charset = 'utf-8')
8
8
  if charset.to_s.downcase == 'iso-2022-jp' && value.kind_of?(String)
9
9
  unless [ 'UTF-8', 'US-ASCII' ].include?(value.encoding.to_s)
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
 
3
3
  module Mail
4
- class Header
4
+ Header.class_eval do
5
5
  def encoded
6
6
  buffer = ''
7
7
  fields.each do |field|
File without changes
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
 
3
3
  # Patches for Mail on Ruby 1.9.3 or above
4
- module Mail
4
+ Mail.module_eval do
5
5
  ENCODE = { 'iso-2022-jp' => Encoding::CP50221 }
6
6
 
7
7
  def self.encoding_to_charset(str, charset)
@@ -0,0 +1,14 @@
1
+ # coding: utf-8
2
+
3
+ module Mail
4
+ class Body
5
+ def initialize_with_iso_2022_jp_encoding(string = '')
6
+ if string.respond_to?(:encoding) && string.encoding.to_s == 'ISO-2022-JP'
7
+ string.force_encoding('US-ASCII')
8
+ end
9
+ initialize_without_iso_2022_jp_encoding(string)
10
+ end
11
+ alias_method :initialize_without_iso_2022_jp_encoding, :initialize
12
+ alias_method :initialize, :initialize_with_iso_2022_jp_encoding
13
+ end
14
+ end
@@ -0,0 +1,12 @@
1
+ # coding: utf-8
2
+
3
+ module Mail
4
+ WAVE_DASH = [0x301c].pack("U")
5
+ FULLWIDTH_TILDE = [0xff5e].pack("U")
6
+ MINUS_SIGN = [0x2212].pack("U")
7
+ FULLWIDTH_HYPHEN_MINUS = [0xff0d].pack("U")
8
+ EM_DASH = [0x2014].pack("U")
9
+ HORIZONTAL_BAR = [0x2015].pack("U")
10
+ DOUBLE_VERTICAL_LINE = [0x2016].pack("U")
11
+ PARALLEL_TO = [0x2225].pack("U")
12
+ end
@@ -0,0 +1,54 @@
1
+ module Mail
2
+ module CommonMethodsForField
3
+ private
4
+ def do_decode_with_iso_2022_jp_encoding
5
+ if charset.to_s.downcase == 'iso-2022-jp'
6
+ value
7
+ else
8
+ do_decode_without_iso_2022_jp_encoding
9
+ end
10
+ end
11
+
12
+ def b_value_encode(string)
13
+ string.split(' ').map do |s|
14
+ if s =~ /\e/ || s == "\"" || start_with_specials?(s) || end_with_specials?(s)
15
+ encode64(s)
16
+ else
17
+ s
18
+ end
19
+ end.join(" ")
20
+ end
21
+
22
+ def encode(value)
23
+ if charset.to_s.downcase == 'iso-2022-jp'
24
+ value
25
+ else
26
+ super(value)
27
+ end
28
+ end
29
+
30
+ def encode64(string)
31
+ if string.length > 0
32
+ "=?ISO-2022-JP?B?#{Base64.encode64(string).gsub("\n", "")}?="
33
+ else
34
+ string
35
+ end
36
+ end
37
+
38
+ def preprocess(value)
39
+ value = value.to_s.gsub(/#{WAVE_DASH}/, FULLWIDTH_TILDE)
40
+ value = value.to_s.gsub(/#{MINUS_SIGN}/, FULLWIDTH_HYPHEN_MINUS)
41
+ value = value.to_s.gsub(/#{EM_DASH}/, HORIZONTAL_BAR)
42
+ value = value.to_s.gsub(/#{DOUBLE_VERTICAL_LINE}/, PARALLEL_TO)
43
+ value
44
+ end
45
+
46
+ def start_with_specials?(string)
47
+ string =~ /\A[\(\)<>\[\]:;@\\,\."]+[a-zA-Z]+\Z/
48
+ end
49
+
50
+ def end_with_specials?(string)
51
+ string =~ /\A[a-zA-Z]+[\(\)<>\[\]:;@\\,\."]+\Z/
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,20 @@
1
+ # coding: utf-8
2
+
3
+ require 'mail'
4
+
5
+ module Mail
6
+ class Field
7
+ def initialize_with_iso_2022_jp_encoding(name, value = nil, charset = 'utf-8')
8
+ if charset.to_s.downcase == 'iso-2022-jp' && value.kind_of?(String)
9
+ unless [ 'UTF-8', 'US-ASCII' ].include?(value.encoding.to_s)
10
+ raise ::Mail::InvalidEncodingError.new(
11
+ "The '#{name}' field is not encoded in UTF-8 nor in US-ASCII but in #{value.encoding}")
12
+ end
13
+ charset = 'utf-8' if value.ascii_only?
14
+ end
15
+ initialize_without_iso_2022_jp_encoding(name, value, charset)
16
+ end
17
+ alias_method :initialize_without_iso_2022_jp_encoding, :initialize
18
+ alias_method :initialize, :initialize_with_iso_2022_jp_encoding
19
+ end
20
+ end
@@ -0,0 +1,43 @@
1
+ # coding: utf-8
2
+
3
+ require 'mail'
4
+ require 'base64'
5
+
6
+ module Mail
7
+ module FieldWithIso2022JpEncoding
8
+ def self.included(base)
9
+ base.send :include, Mail::CommonMethodsForField
10
+ base.send :alias_method, :initialize_without_iso_2022_jp_encoding, :initialize
11
+ base.send :alias_method, :initialize, :initialize_with_iso_2022_jp_encoding
12
+ base.send :alias_method, :do_decode_without_iso_2022_jp_encoding, :do_decode
13
+ base.send :alias_method, :do_decode, :do_decode_with_iso_2022_jp_encoding
14
+ end
15
+
16
+ def initialize_with_iso_2022_jp_encoding(value = nil, charset = 'utf-8')
17
+ if charset.to_s.downcase == 'iso-2022-jp'
18
+ if value.kind_of?(Array)
19
+ value = value.map { |e| encode_with_iso_2022_jp(e, charset) }
20
+ else
21
+ value = encode_with_iso_2022_jp(value, charset)
22
+ end
23
+ end
24
+ initialize_without_iso_2022_jp_encoding(value, charset)
25
+ end
26
+
27
+ private
28
+ def encode_with_iso_2022_jp(value, charset)
29
+ value = Mail::Preprocessor.process(value)
30
+ value = Mail.encoding_to_charset(value, charset)
31
+ value.force_encoding('ascii-8bit')
32
+ value = b_value_encode(value)
33
+ value.force_encoding('ascii-8bit')
34
+ end
35
+
36
+ def encode_crlf(value)
37
+ if charset.to_s.downcase == 'iso-2022-jp'
38
+ value.force_encoding('ascii-8bit')
39
+ end
40
+ super(value)
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,13 @@
1
+ # coding: utf-8
2
+
3
+ module Mail
4
+ class Header
5
+ def encoded
6
+ buffer = ''
7
+ fields.each do |field|
8
+ buffer << field.encoded rescue Encoding::CompatibilityError
9
+ end
10
+ buffer
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,3 @@
1
+ module Mail
2
+ class InvalidEncodingError < StandardError; end
3
+ end
@@ -0,0 +1,10 @@
1
+ # coding: utf-8
2
+
3
+ # Patches for Mail on Ruby 1.9.3 or above
4
+ module Mail
5
+ ENCODE = { 'iso-2022-jp' => Encoding::CP50221 }
6
+
7
+ def self.encoding_to_charset(str, charset)
8
+ str.encode(ENCODE[charset.to_s.downcase] || charset, :undef => :replace).force_encoding(charset)
9
+ end
10
+ end
@@ -0,0 +1,39 @@
1
+ # coding: utf-8
2
+
3
+ require 'mail'
4
+
5
+ # Patches for Mail::Message on Ruby 1.9.x or above
6
+ module Mail
7
+ class Message
8
+ def body_with_iso_2022_jp_encoding=(value)
9
+ if @charset.to_s.downcase == 'iso-2022-jp'
10
+ if value.respond_to?(:encoding) && value.encoding.to_s != 'UTF-8'
11
+ raise ::Mail::InvalidEncodingError.new(
12
+ "The mail body is not encoded in UTF-8 but in #{value.encoding}")
13
+ end
14
+ value = Mail::Preprocessor.process(value)
15
+ end
16
+ self.body_without_iso_2022_jp_encoding = value
17
+ end
18
+ alias_method :body_without_iso_2022_jp_encoding=, :body=
19
+ alias_method :body=, :body_with_iso_2022_jp_encoding=
20
+
21
+ def process_body_raw_with_iso_2022_jp_encoding
22
+ if @charset.to_s.downcase == 'iso-2022-jp'
23
+ @body_raw = Mail.encoding_to_charset(@body_raw, @charset)
24
+ end
25
+ process_body_raw_without_iso_2022_jp_encoding
26
+ end
27
+ alias_method :process_body_raw_without_iso_2022_jp_encoding, :process_body_raw
28
+ alias_method :process_body_raw, :process_body_raw_with_iso_2022_jp_encoding
29
+
30
+ def text_part_with_iso_2022_jp_encoding=(msg = nil)
31
+ if @charset.to_s.downcase == 'iso-2022-jp' && msg && msg.charset.nil?
32
+ msg.charset = @charset
33
+ end
34
+ self.text_part_without_iso_2022_jp_encoding = msg
35
+ end
36
+ alias_method :text_part_without_iso_2022_jp_encoding=, :text_part=
37
+ alias_method :text_part=, :text_part_with_iso_2022_jp_encoding=
38
+ end
39
+ end
@@ -0,0 +1,11 @@
1
+ module Mail
2
+ class Preprocessor
3
+ def self.process(value)
4
+ value.to_s.
5
+ gsub(/#{WAVE_DASH}/, FULLWIDTH_TILDE).
6
+ gsub(/#{MINUS_SIGN}/, FULLWIDTH_HYPHEN_MINUS).
7
+ gsub(/#{EM_DASH}/, HORIZONTAL_BAR).
8
+ gsub(/#{DOUBLE_VERTICAL_LINE}/, PARALLEL_TO)
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,41 @@
1
+ # coding: utf-8
2
+
3
+ require 'mail'
4
+
5
+ module Mail
6
+ class FromField < StructuredField
7
+ include FieldWithIso2022JpEncoding
8
+ end
9
+
10
+ class SenderField < StructuredField
11
+ include FieldWithIso2022JpEncoding
12
+ end
13
+
14
+ class ToField < StructuredField
15
+ include FieldWithIso2022JpEncoding
16
+ end
17
+
18
+ class CcField < StructuredField
19
+ include FieldWithIso2022JpEncoding
20
+ end
21
+
22
+ class ReplyToField < StructuredField
23
+ include FieldWithIso2022JpEncoding
24
+ end
25
+
26
+ class ResentFromField < StructuredField
27
+ include FieldWithIso2022JpEncoding
28
+ end
29
+
30
+ class ResentSenderField < StructuredField
31
+ include FieldWithIso2022JpEncoding
32
+ end
33
+
34
+ class ResentToField < StructuredField
35
+ include FieldWithIso2022JpEncoding
36
+ end
37
+
38
+ class ResentCcField < StructuredField
39
+ include FieldWithIso2022JpEncoding
40
+ end
41
+ end
@@ -0,0 +1,12 @@
1
+ # coding: utf-8
2
+
3
+ require 'mail'
4
+
5
+ module Mail
6
+ class SubjectField < UnstructuredField
7
+ include FieldWithIso2022JpEncoding
8
+ def b_value_encode(string)
9
+ encode64(string)
10
+ end
11
+ end
12
+ end
@@ -4,7 +4,7 @@ require 'mail'
4
4
 
5
5
  # Patches for Mail::Message on Ruby 1.9.x or above
6
6
  module Mail
7
- class Message
7
+ Message.class_eval do
8
8
  def body_with_iso_2022_jp_encoding=(value)
9
9
  if @charset.to_s.downcase == 'iso-2022-jp'
10
10
  if value.respond_to?(:encoding) && value.encoding.to_s != 'UTF-8'
File without changes
File without changes
File without changes
@@ -3,39 +3,9 @@
3
3
  require 'mail'
4
4
 
5
5
  module Mail
6
- class FromField < StructuredField
7
- include FieldWithIso2022JpEncoding
8
- end
9
-
10
- class SenderField < StructuredField
11
- include FieldWithIso2022JpEncoding
12
- end
13
-
14
- class ToField < StructuredField
15
- include FieldWithIso2022JpEncoding
16
- end
17
-
18
- class CcField < StructuredField
19
- include FieldWithIso2022JpEncoding
20
- end
21
-
22
- class ReplyToField < StructuredField
23
- include FieldWithIso2022JpEncoding
24
- end
25
-
26
- class ResentFromField < StructuredField
27
- include FieldWithIso2022JpEncoding
28
- end
29
-
30
- class ResentSenderField < StructuredField
31
- include FieldWithIso2022JpEncoding
32
- end
33
-
34
- class ResentToField < StructuredField
35
- include FieldWithIso2022JpEncoding
36
- end
37
-
38
- class ResentCcField < StructuredField
39
- include FieldWithIso2022JpEncoding
6
+ [FromField, SenderField, ToField, CcField, ReplyToField, ResentFromField, ResentSenderField, ResentToField, ResentCcField].each do |field_class|
7
+ field_class.class_eval do
8
+ include FieldWithIso2022JpEncoding
9
+ end
40
10
  end
41
11
  end
@@ -3,7 +3,7 @@
3
3
  require 'mail'
4
4
 
5
5
  module Mail
6
- class SubjectField < UnstructuredField
6
+ SubjectField.class_eval do
7
7
  include FieldWithIso2022JpEncoding
8
8
  def b_value_encode(string)
9
9
  encode64(string)
@@ -1,20 +1,38 @@
1
- require 'mail-iso-2022-jp/character_names'
2
- require 'mail-iso-2022-jp/invalid_encoding_error'
3
- require 'mail-iso-2022-jp/common_methods_for_field'
4
- require 'mail-iso-2022-jp/preprocessor'
5
-
6
- if RUBY_VERSION >= '1.9'
1
+ mail_gem = Gem.loaded_specs["mail"] || Gem::Specification.find_all_by_name("mail").first
2
+ if mail_gem.version.to_s >= '2.8.0'
3
+ # New code
4
+ require 'mail-iso-2022-jp/character_names'
5
+ require 'mail-iso-2022-jp/invalid_encoding_error'
6
+ require 'mail-iso-2022-jp/common_methods_for_field'
7
+ require 'mail-iso-2022-jp/preprocessor'
7
8
  require 'mail-iso-2022-jp/mail'
8
9
  require 'mail-iso-2022-jp/message'
9
10
  require 'mail-iso-2022-jp/field'
10
11
  require 'mail-iso-2022-jp/field_with_iso_2022_jp_encoding'
11
12
  require 'mail-iso-2022-jp/body'
13
+ require 'mail-iso-2022-jp/header'
14
+ require 'mail-iso-2022-jp/subject_field'
15
+ require 'mail-iso-2022-jp/structured_fields'
12
16
  else
13
- require 'mail-iso-2022-jp/ruby18/mail'
14
- require 'mail-iso-2022-jp/ruby18/message'
15
- require 'mail-iso-2022-jp/ruby18/field_with_iso_2022_jp_encoding'
16
- end
17
+ # Old code
18
+ require 'mail-iso-2022-jp/mail_under_280/character_names'
19
+ require 'mail-iso-2022-jp/mail_under_280/invalid_encoding_error'
20
+ require 'mail-iso-2022-jp/mail_under_280/common_methods_for_field'
21
+ require 'mail-iso-2022-jp/mail_under_280/preprocessor'
17
22
 
18
- require 'mail-iso-2022-jp/header'
19
- require 'mail-iso-2022-jp/subject_field'
20
- require 'mail-iso-2022-jp/structured_fields'
23
+ if RUBY_VERSION >= '1.9'
24
+ require 'mail-iso-2022-jp/mail_under_280/mail'
25
+ require 'mail-iso-2022-jp/mail_under_280/message'
26
+ require 'mail-iso-2022-jp/mail_under_280/field'
27
+ require 'mail-iso-2022-jp/mail_under_280/field_with_iso_2022_jp_encoding'
28
+ require 'mail-iso-2022-jp/mail_under_280/body'
29
+ else
30
+ require 'mail-iso-2022-jp/ruby18/mail'
31
+ require 'mail-iso-2022-jp/ruby18/message'
32
+ require 'mail-iso-2022-jp/ruby18/field_with_iso_2022_jp_encoding'
33
+ end
34
+
35
+ require 'mail-iso-2022-jp/mail_under_280/header'
36
+ require 'mail-iso-2022-jp/mail_under_280/subject_field'
37
+ require 'mail-iso-2022-jp/mail_under_280/structured_fields'
38
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail-iso-2022-jp
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.9
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kohei MATSUSHITA
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-09-04 00:00:00.000000000 Z
12
+ date: 2024-11-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mail
@@ -20,7 +20,7 @@ dependencies:
20
20
  version: 2.2.6
21
21
  - - "<="
22
22
  - !ruby/object:Gem::Version
23
- version: 2.7.1
23
+ version: 2.8.1
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
@@ -30,7 +30,7 @@ dependencies:
30
30
  version: 2.2.6
31
31
  - - "<="
32
32
  - !ruby/object:Gem::Version
33
- version: 2.7.1
33
+ version: 2.8.1
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: actionmailer
36
36
  requirement: !ruby/object:Gem::Requirement
@@ -90,6 +90,18 @@ files:
90
90
  - lib/mail-iso-2022-jp/header.rb
91
91
  - lib/mail-iso-2022-jp/invalid_encoding_error.rb
92
92
  - lib/mail-iso-2022-jp/mail.rb
93
+ - lib/mail-iso-2022-jp/mail_under_280/body.rb
94
+ - lib/mail-iso-2022-jp/mail_under_280/character_names.rb
95
+ - lib/mail-iso-2022-jp/mail_under_280/common_methods_for_field.rb
96
+ - lib/mail-iso-2022-jp/mail_under_280/field.rb
97
+ - lib/mail-iso-2022-jp/mail_under_280/field_with_iso_2022_jp_encoding.rb
98
+ - lib/mail-iso-2022-jp/mail_under_280/header.rb
99
+ - lib/mail-iso-2022-jp/mail_under_280/invalid_encoding_error.rb
100
+ - lib/mail-iso-2022-jp/mail_under_280/mail.rb
101
+ - lib/mail-iso-2022-jp/mail_under_280/message.rb
102
+ - lib/mail-iso-2022-jp/mail_under_280/preprocessor.rb
103
+ - lib/mail-iso-2022-jp/mail_under_280/structured_fields.rb
104
+ - lib/mail-iso-2022-jp/mail_under_280/subject_field.rb
93
105
  - lib/mail-iso-2022-jp/message.rb
94
106
  - lib/mail-iso-2022-jp/preprocessor.rb
95
107
  - lib/mail-iso-2022-jp/ruby18/field_with_iso_2022_jp_encoding.rb
@@ -116,8 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
128
  - !ruby/object:Gem::Version
117
129
  version: '0'
118
130
  requirements: []
119
- rubyforge_project:
120
- rubygems_version: 2.7.6
131
+ rubygems_version: 3.5.9
121
132
  signing_key:
122
133
  specification_version: 4
123
134
  summary: A set of patches that provides 'mail' gem with iso-2022-jp conversion capability.