Skip to content

Commit

Permalink
Fix path separator for windows. Rack::Deflater seems broken?
Browse files Browse the repository at this point in the history
  • Loading branch information
raggi committed Dec 23, 2008
1 parent 564ee57 commit 2dc69df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/sin
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ if /\.sin(?:a?)$/ =~ ARGV.last
ARGV << File.join(path, 'sin', 'config.ru')
end

bin_paths = $LOAD_PATH + ENV['PATH'].split(':')
bin_paths = $LOAD_PATH + ENV['PATH'].split(File::PATH_SEPARATOR)
path = bin_paths.find{|path| File.file?(File.join(path, 'rackup')) }
load path + '/rackup'
2 changes: 1 addition & 1 deletion examples/config.sin
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env sin

map '/' do
use Rack::Deflater
use Rack::ShowStatus
use Rack::CommonLogger
use Rack::ShowExceptions
use Rack::Session::Cookie
# use Rack::Deflater

map '/openid' do
run Rack::Auth::OpenID.new('http://localhost:9292/')
Expand Down

0 comments on commit 2dc69df

Please sign in to comment.