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

Drop Ruby 1.8, 1.9 compat layer for String

This commit is contained in:
Olle Jonsson 2019-03-15 13:41:22 +01:00
parent ca03c52075
commit c4824a0066
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'