Sha256: 53200d3982d958454d5f9f452cc68c2556d3d67181b215e324e4e99177e25882

Contents?: true

Size: 677 Bytes

Versions: 1

Compression:

Stored size: 677 Bytes

Contents

module Thin  
  # Raised when a feature is not supported on the
  # current platform.
  class PlatformNotSupported < RuntimeError; end
  
  module VERSION #:nodoc:
    MAJOR    = 1
    MINOR    = 4
    TINY     = 1
    PATCH    = 1
    
    STRING   = [MAJOR, MINOR, TINY, PATCH].join('.')
    
    CODENAME = "Chromeo".freeze
    
    RACK     = [1, 0].freeze # Rack protocol version
  end
  
  NAME    = 'thin'.freeze
  SERVER  = "#{NAME} #{VERSION::STRING} codename #{VERSION::CODENAME}".freeze  
  
  def self.win?
    RUBY_PLATFORM =~ /mswin|mingw/
  end
  
  def self.linux?
    RUBY_PLATFORM =~ /linux/
  end
  
  def self.ruby_18?
    RUBY_VERSION =~ /^1\.8/
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
friendlyfashion-thin-1.4.1.1 lib/thin/version.rb