lib/puma/io_buffer.rb in piesync-puma-3.12.6.1 vs lib/puma/io_buffer.rb in piesync-puma-5.4.0.1
- old
+ new
@@ -1,9 +1,11 @@
# frozen_string_literal: true
-require 'puma/detect'
+module Puma
+ class IOBuffer < String
+ def append(*args)
+ args.each { |a| concat(a) }
+ end
-if Puma.jruby?
- require 'puma/java_io_buffer'
-else
- require 'puma/puma_http11'
+ alias reset clear
+ end
end