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)
Fri Feb 08 22:52:31 -0800 2008
commit  21be136ef3ab2a0ee962ad041a03574086c54573
tree    db6516e94e6f6a13a14310a440cd1ca06e6b42c6
parent  38c7717b080a74cdaec665258b6e874cd2e4482c
thin / lib / thin / version.rb
100644 31 lines (23 sloc) 0.588 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
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 = 0
    
    STRING = [MAJOR, MINOR, TINY].join('.')
    
    CODENAME = 'Bionic Pickle'
  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