mail-iso-2022-jp 1.0.9 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/mail-iso-2022-jp/patches.rb +2 -2
- metadata +3 -3
data/README.md
CHANGED
@@ -10,7 +10,7 @@ module Mail
|
|
10
10
|
def process_body_raw_with_iso_2022_jp_encoding
|
11
11
|
if @charset.to_s.downcase == 'iso-2022-jp'
|
12
12
|
@body_raw.gsub!(/#{WAVE_DASH}/, FULLWIDTH_TILDE)
|
13
|
-
@body_raw = NKF.nkf('--oc=CP50220 -
|
13
|
+
@body_raw = NKF.nkf('--oc=CP50220 -xj', @body_raw)
|
14
14
|
end
|
15
15
|
process_body_raw_without_iso_2022_jp_encoding
|
16
16
|
end
|
@@ -40,7 +40,7 @@ module Mail
|
|
40
40
|
def initialize_with_iso_2022_jp_encoding(value = nil, charset = 'utf-8')
|
41
41
|
if charset.to_s.downcase == 'iso-2022-jp'
|
42
42
|
value.gsub!(/#{WAVE_DASH}/, FULLWIDTH_TILDE)
|
43
|
-
value = NKF.nkf('--oc=CP50220 -
|
43
|
+
value = NKF.nkf('--oc=CP50220 -xj', value)
|
44
44
|
if RUBY_VERSION >= '1.9'
|
45
45
|
value.force_encoding('ascii-8bit')
|
46
46
|
value = b_value_encode(value)
|
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: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ date: 2011-11-20 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mail
|
17
|
-
requirement: &
|
17
|
+
requirement: &13859280 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: 2.2.5
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *13859280
|
26
26
|
description: A patch that provides 'mail' gem with iso-2022-jp conversion capability.
|
27
27
|
email: hermes@oiax.jp
|
28
28
|
executables: []
|