Sha256: 80996264f11ad9a558721d9237328697eec29d34485b412d61245504520e7788

Contents?: true

Size: 655 Bytes

Versions: 3

Compression:

Stored size: 655 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    = 2
    TINY     = 10
    
    STRING   = [MAJOR, MINOR, TINY].join('.')
    
    CODENAME = "I'm dumb".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

3 entries across 3 versions & 1 rubygems

Version Path
thin-1.2.10 lib/thin/version.rb
thin-1.2.10-x86-mswin32 lib/thin/version.rb
thin-1.2.10-x86-mingw32 lib/thin/version.rb