public
Description: A very fast & simple Ruby web server
Homepage: http://code.macournoyer.com/thin/
Clone URL: git://github.com/macournoyer/thin.git
macournoyer (author)
Wed Mar 05 18:43:49 -0800 2008
commit  1cb90c6a8170e27bc10ed247a8454207f0c200cf
tree    41b52352e69a1bcee45b1f51c31a4ce1fb99cf71
parent  050830515c72c273bbaf5fb4ffd49186e1c26eca
thin / lib / thin / version.rb
100644 33 lines (24 sloc) 0.658 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
module Thin
  # Raised when a feature is not supported on the
  # current platform.
  class PlatformNotSupported < RuntimeError; end
  
  module VERSION #:nodoc:
    MAJOR = 0
    MINOR = 7
    TINY = 1
    
    STRING = [MAJOR, MINOR, TINY].join('.')
    
    CODENAME = 'Fancy Pants'
    
    RACK = [0, 3].freeze # Latest Rack version that was tested
  end
  
  NAME = 'thin'.freeze
  SERVER = "#{NAME} #{VERSION::STRING} codename #{VERSION::CODENAME}".freeze
  
  def self.win?
    RUBY_PLATFORM =~ /mswin/
  end
  
  def self.linux?
    RUBY_PLATFORM =~ /linux/
  end
  
  def self.ruby_18?
    RUBY_VERSION =~ /^1\.8/
  end
end