Skip to content

Commit

Permalink
Fix compiled from source under Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
macournoyer committed Jun 2, 2011
1 parent 939891f commit f8e85a1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/thin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ module Controllers
require "#{Thin::ROOT}/thin/statuses"
require "#{Thin::ROOT}/rack/adapter/loader"

if Thin.win?
# Select proper binary under Windows
begin
# Select proper binary
major_ruby_version = RUBY_VERSION[/^(\d+\.\d+)/]
require "#{Thin::ROOT}/#{major_ruby_version}/thin_parser"
else
rescue LoadError
# Installed from source
require "#{Thin::ROOT}/thin_parser"
end

Expand Down

0 comments on commit f8e85a1

Please sign in to comment.