From d71d3285ea29f0978bd0b35a366a1470ca69be18 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 5 Sep 2023 09:14:11 +0000 Subject: update dependency to Ruby 2.5+ We actually need Ruby 2.3+ for `accept_nonblock(exception: false)'; and (AFAIK) we can't easily use a subclass of `Socket' while using Socket#accept_nonblock to inject WriteSplat support for `IO#write(*multi_args)' So just depend on Ruby 2.5+ since all my Ruby is already on the already-ancient Ruby 2.7+ anyways. --- lib/unicorn/write_splat.rb | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 lib/unicorn/write_splat.rb (limited to 'lib/unicorn') diff --git a/lib/unicorn/write_splat.rb b/lib/unicorn/write_splat.rb deleted file mode 100644 index 7e6e363..0000000 --- a/lib/unicorn/write_splat.rb +++ /dev/null @@ -1,7 +0,0 @@ -# -*- encoding: binary -*- -# compatibility module for Ruby <= 2.4, remove when we go Ruby 2.5+ -module Unicorn::WriteSplat # :nodoc: - def write(*arg) # :nodoc: - super(arg.join('')) - end -end -- cgit v1.2.3-24-ge0c7