Added ruby 2.3 support (RuntimeError: can't modify frozen String).
This commit is contained in:
parent
e074556d06
commit
b6f7858dd5
3 changed files with 7 additions and 7 deletions
|
@ -15,7 +15,7 @@ module Encode
|
||||||
begin
|
begin
|
||||||
|
|
||||||
# return if encoding is valid
|
# return if encoding is valid
|
||||||
utf8 = string.force_encoding('UTF-8')
|
utf8 = string.dup.force_encoding('UTF-8')
|
||||||
return utf8 if utf8.valid_encoding?
|
return utf8 if utf8.valid_encoding?
|
||||||
|
|
||||||
# try to encode from Windows-1252 to utf8
|
# try to encode from Windows-1252 to utf8
|
||||||
|
|
|
@ -342,7 +342,7 @@ Liebe Grüße!
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
data: IO.binread('test/fixtures/mail21.box'),
|
data: IO.binread('test/fixtures/mail21.box'),
|
||||||
body_md5: 'ca181b534e98acc7674a70e8497e9791',
|
body_md5: 'f7de1c4d9f266a85897b6e8b9403d62d',
|
||||||
params: {
|
params: {
|
||||||
from: 'Viagra Super Force Online <pharmacy_affordable1@ertelecom.ru>',
|
from: 'Viagra Super Force Online <pharmacy_affordable1@ertelecom.ru>',
|
||||||
from_email: 'pharmacy_affordable1@ertelecom.ru',
|
from_email: 'pharmacy_affordable1@ertelecom.ru',
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue