1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Merge pull request #1746 from olleolleolle/fix/drop-compat-with-string-18-19

Drop Ruby 1.8, 1.9 compat layer for String
This commit is contained in:
Evan Phoenix 2019-03-19 21:13:32 -07:00 committed by GitHub
commit 0f8b10737e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 15 deletions

View file

@ -1,14 +0,0 @@
# Provides code to work properly on 1.8 and 1.9
class String
unless method_defined? :bytesize
alias_method :bytesize, :size
end
unless method_defined? :byteslice
def byteslice(*arg)
enc = self.encoding
self.dup.force_encoding(Encoding::ASCII_8BIT).slice(*arg).force_encoding(enc)
end
end
end

View file

@ -6,7 +6,6 @@ require 'puma/thread_pool'
require 'puma/const'
require 'puma/events'
require 'puma/null_io'
require 'puma/compat'
require 'puma/reactor'
require 'puma/client'
require 'puma/binder'