mail-iso-2022-jp 1.1.8 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -0
- data/lib/mail-iso-2022-jp/patches.rb +2 -2
- metadata +2 -2
data/README.md
CHANGED
@@ -10,10 +10,10 @@ module Mail
|
|
10
10
|
if RUBY_VERSION >= '1.9'
|
11
11
|
ENCODE = {'iso-2022-jp' => Encoding::CP50221}
|
12
12
|
def self.encoding_to_charset(str, charset)
|
13
|
-
str.encode(ENCODE[charset.to_s.downcase] || charset).force_encoding(charset)
|
13
|
+
str.encode(ENCODE[charset.to_s.downcase] || charset, :undef => :replace).force_encoding(charset)
|
14
14
|
end
|
15
15
|
else
|
16
|
-
NKF_OPTIONS = "--oc=CP50220 -
|
16
|
+
NKF_OPTIONS = "--oc=CP50220 -xjW --fb-subchar"
|
17
17
|
end
|
18
18
|
|
19
19
|
class InvalidEncodingError < StandardError; 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: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-08-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mail
|