mail-iso-2022-jp 1.0.9 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -108,7 +108,7 @@ Remarks
108
108
 
109
109
  * `①` などのNEC特殊文字や `髙` や `﨑` といったIBM拡張文字を件名、宛先、本文などに含めることができます。
110
110
  * 全角ダッシュ(U+FF5E)は波ダッシュ(U+301C)に変換されます。
111
- * 半角カタカナは全角カタカナに変換されます。
111
+ * 半角カタカナはそのまま維持されます。
112
112
 
113
113
 
114
114
  References
@@ -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 -j', @body_raw)
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 -j', value)
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.9
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: &20212000 !ruby/object:Gem::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: *20212000
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: []