lib/tdiary/configuration.rb in tdiary-5.1.0 vs lib/tdiary/configuration.rb in tdiary-5.1.1
- old
+ new
@@ -67,13 +67,13 @@
str = str.dup
if str.encoding == Encoding::ASCII_8BIT
str.force_encoding(charset || 'utf-8')
end
unless str.valid_encoding?
- str.encode!('utf-16be', {invalid: :replace, undef: :replace})
+ str.encode!('utf-16be', invalid: :replace, undef: :replace)
end
unless str.encoding == Encoding::UTF_8
- str.encode!('utf-8', {invalid: :replace, undef: :replace})
+ str.encode!('utf-8', invalid: :replace, undef: :replace)
end
str
end
private