From a2cc0537a40c1b1c5dfca831a4e93d0967940b62 Mon Sep 17 00:00:00 2001 From: Amr El-Bakry Date: Fri, 28 Jun 2019 00:32:01 +0200 Subject: [PATCH] Remove RUBY_VERSION checks (#1827) --- lib/puma/launcher.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/puma/launcher.rb b/lib/puma/launcher.rb index 8d3f5b50..6fd54744 100644 --- a/lib/puma/launcher.rb +++ b/lib/puma/launcher.rb @@ -252,7 +252,7 @@ module Puma argv = restart_args Dir.chdir(@restart_dir) - argv += [redirects] if RUBY_VERSION >= '1.9' + argv += [redirects] Kernel.exec(*argv) end end @@ -281,7 +281,7 @@ module Puma wild = File.expand_path(File.join(puma_lib_dir, "../bin/puma-wild")) args = [Gem.ruby, wild, '-I', dirs.join(':'), deps.join(',')] + @original_argv # Ruby 2.0+ defaults to true which breaks socket activation - args += [{:close_others => false}] if RUBY_VERSION >= '2.0' + args += [{:close_others => false}] Kernel.exec(*args) end end