Sha256: 1765168a4bb3357921ebfc76a778264089d47c2dc42062e311567bc6867f1e47

Contents?: true

Size: 661 Bytes

Versions: 47

Compression:

Stored size: 661 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    = 3
    TINY     = 1
    
    STRING   = [MAJOR, MINOR, TINY].join('.')
    
    CODENAME = "Triple Espresso".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

47 entries across 47 versions & 2 rubygems

Version Path
classiccms-0.5.13 vendor/bundle/gems/thin-1.3.1/lib/thin/version.rb
classiccms-0.5.12 vendor/bundle/gems/thin-1.3.1/lib/thin/version.rb
classiccms-0.5.11 vendor/bundle/gems/thin-1.3.1/lib/thin/version.rb
classiccms-0.5.10 vendor/bundle/gems/thin-1.3.1/lib/thin/version.rb
classiccms-0.5.9 vendor/bundle/gems/thin-1.3.1/lib/thin/version.rb
classiccms-0.5.8 vendor/bundle/gems/thin-1.3.1/lib/thin/version.rb
classiccms-0.5.7 vendor/bundle/gems/thin-1.3.1/lib/thin/version.rb
classiccms-0.5.6 vendor/bundle/gems/thin-1.3.1/lib/thin/version.rb
classiccms-0.5.5 vendor/bundle/gems/thin-1.3.1/lib/thin/version.rb
classiccms-0.5.2 vendor/bundle/gems/thin-1.3.1/lib/thin/version.rb
classiccms-0.5.1 vendor/bundle/gems/thin-1.3.1/lib/thin/version.rb
classiccms-0.5.0 vendor/bundle/gems/thin-1.3.1/lib/thin/version.rb
classiccms-0.4.2 vendor/bundle/gems/thin-1.3.1/lib/thin/version.rb
classiccms-0.4.1 vendor/bundle/gems/thin-1.3.1/lib/thin/version.rb
classiccms-0.4.0 vendor/bundle/gems/thin-1.3.1/lib/thin/version.rb
classiccms-0.3.9 vendor/bundle/gems/thin-1.3.1/lib/thin/version.rb
classiccms-0.3.8 vendor/bundle/gems/thin-1.3.1/lib/thin/version.rb
classiccms-0.3.7 vendor/bundle/gems/thin-1.3.1/lib/thin/version.rb
classiccms-0.3.6 vendor/bundle/gems/thin-1.3.1/lib/thin/version.rb
classiccms-0.3.5 vendor/bundle/gems/thin-1.3.1/lib/thin/version.rb