about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <bofh@yhbt.net>2023-09-05 09:14:11 +0000
committerEric Wong <bofh@yhbt.net>2024-01-15 01:45:50 +0000
commitd71d3285ea29f0978bd0b35a366a1470ca69be18 (patch)
treedf3f0cef31cc40bb5b6b8fae775ba601db092e41 /lib
parentb652fa51c1342496bdcdecca8e567f1fb46c41c9 (diff)
downloadunicorn-master.tar.gz
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/unicorn/write_splat.rb7
1 files changed, 0 insertions, 7 deletions
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