1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Remove RUBY_VERSION checks (#1827)

This commit is contained in:
Amr El-Bakry 2019-06-28 00:32:01 +02:00 committed by Nate Berkopec
parent 38d96258c2
commit a2cc0537a4

View file

@ -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