Skip to content
Browse files

sinatra static files aren't working when combined with the other rack…

… stuff, so manually provide the stylesheet
  • Loading branch information...
1 parent 941c089 commit 7d5b34c5db26897a21525ca6835f787c68061d0e @jnewland committed
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/rack_rubygems.rb
View
5 lib/rack_rubygems.rb
@@ -78,6 +78,11 @@ class RackRubygems < Sinatra::Base
erb :index
end
+ get '/gem-server-rdoc-style.css' do
+ content_type 'text/css'
+ File.read File.expand_path(File.dirname(__FILE__) + "/../public/gem-server-rdoc-style.css")
+ end
+
head "/Marshal.#{Gem.marshal_version}" do
content_type 'application/octet-stream'
response['Content-Length'] = source_index.length.to_s

0 comments on commit 7d5b34c

Please sign in to comment.
Something went wrong with that request. Please try again.