Sha256: 2208b607c2987085e1026c8d5256f15427dc2b4fbf9e39887aab798088ef9a8f
Contents?: true
Size: 645 Bytes
Versions: 24
Compression:
Stored size: 645 Bytes
Contents
# frozen_string_literal: true # This file can be loaded independently of puma.rb, so it cannot have any code # that assumes puma.rb is loaded. module Puma # @version 5.2.1 HAS_FORK = ::Process.respond_to? :fork IS_JRUBY = Object.const_defined? :JRUBY_VERSION IS_WINDOWS = !!(RUBY_PLATFORM =~ /mswin|ming|cygwin/ || IS_JRUBY && RUBY_DESCRIPTION =~ /mswin/) # @version 5.2.0 IS_MRI = (RUBY_ENGINE == 'ruby' || RUBY_ENGINE.nil?) def self.jruby? IS_JRUBY end def self.windows? IS_WINDOWS end # @version 5.0.0 def self.mri? IS_MRI end # @version 5.0.0 def self.forkable? HAS_FORK end end
Version data entries
24 entries across 23 versions & 4 rubygems