1
0
Fork 0
forked from OpenNeo/impress

Delete utf8 backfill for old Ruby

Idk if the replacement `require` is necessary exactly, but it's the one-to-one replacement for this lib, so let's start there for now!
This commit is contained in:
Emi Matchu 2023-08-02 14:45:07 -07:00
parent 8033434a2f
commit e7529f5bc3
3 changed files with 2 additions and 15 deletions

View file

@ -1,6 +1,6 @@
require 'fileutils'
require 'uri'
require 'utf8'
require 'encoding/character/utf-8'
class SwfAsset < ActiveRecord::Base
# We use the `type` column to mean something other than what Rails means!

View file

@ -1,7 +1,7 @@
require 'active_support/core_ext/hash'
require 'msgpack'
require 'openneo-auth-signatory'
require 'utf8'
require 'encoding/character/utf-8'
module Openneo
module Auth

View file

@ -1,13 +0,0 @@
if String.method_defined?(:force_encoding)
# UTF-8 support is native, so let's route the +"abc" syntax to the native
# encode method.
class String
def +@
dup.force_encoding('utf-8')
end
end
else
require 'encoding/character/utf-8'
end