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:
parent
7e0971eac6
commit
0d4c6ca077
3 changed files with 2 additions and 15 deletions
|
@ -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!
|
||||
|
|
|
@ -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
|
||||
|
|
13
lib/utf8.rb
13
lib/utf8.rb
|
@ -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
|
||||
|
Loading…
Reference in a new issue