diff options
author | Eric Wong <bofh@yhbt.net> | 2023-09-05 09:14:11 +0000 |
---|---|---|
committer | Eric Wong <bofh@yhbt.net> | 2024-01-15 01:45:50 +0000 |
commit | d71d3285ea29f0978bd0b35a366a1470ca69be18 (patch) | |
tree | df3f0cef31cc40bb5b6b8fae775ba601db092e41 | |
parent | b652fa51c1342496bdcdecca8e567f1fb46c41c9 (diff) | |
download | unicorn-d71d3285ea29f0978bd0b35a366a1470ca69be18.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.
-rw-r--r-- | HACKING | 2 | ||||
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | lib/unicorn/write_splat.rb | 7 | ||||
-rw-r--r-- | t/README | 2 | ||||
-rw-r--r-- | unicorn.gemspec | 4 |
5 files changed, 5 insertions, 12 deletions
@@ -60,7 +60,7 @@ becomes unavailable. === Ruby/C Compatibility -We target C Ruby 2.0 and later. We need the Ruby +We target C Ruby 2.5 and later. We need the Ruby implementation to support fork, exec, pipe, UNIX signals, access to integer file descriptors and ability to use unlinked files. @@ -15,7 +15,7 @@ and slow clients. cut out everything that is better supported by the operating system, {nginx}[https://nginx.org/] or {Rack}[https://rack.github.io/]. -* Compatible with Ruby 2.0.0 and later. +* Compatible with Ruby 2.5 and later. * Process management: unicorn reaps and restarts workers that die from broken code. There is no need to manage multiple processes 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 @@ -14,7 +14,7 @@ Old tests are in Bourne shell and slowly being ported to Perl 5. == Requirements -* {Ruby 2.0.0+}[https://www.ruby-lang.org/en/] +* {Ruby 2.5.0+}[https://www.ruby-lang.org/en/] * {Perl 5.14+}[https://www.perl.org/] # your distro should have it * {GNU make}[https://www.gnu.org/software/make/] * {curl}[https://curl.haxx.se/] diff --git a/unicorn.gemspec b/unicorn.gemspec index 85183d9..e7e3ef7 100644 --- a/unicorn.gemspec +++ b/unicorn.gemspec @@ -25,11 +25,11 @@ Gem::Specification.new do |s| s.homepage = 'https://yhbt.net/unicorn/' s.test_files = test_files - # 2.0.0 is the minimum supported version. We don't specify + # 2.5.0 is the minimum supported version. We don't specify # a maximum version to make it easier to test pre-releases, # but we do warn users if they install unicorn on an untested # version in extconf.rb - s.required_ruby_version = ">= 2.0.0" + s.required_ruby_version = ">= 2.5.0" # We do not have a hard dependency on rack, it's possible to load # things which respond to #call. HTTP status lines in responses |