lib/geminabox/proxy/hostess.rb in geminabox-0.13.13 vs lib/geminabox/proxy/hostess.rb in geminabox-0.13.14

- old
+ new

@@ -7,11 +7,11 @@ attr_accessor :file_handler def serve if file_handler send_file file_handler.proxy_path else - send_file(File.expand_path(File.join(Server.data, *request.path_info)), :type => response['Content-Type']) + send_file(File.expand_path(File.join(Geminabox.data, *request.path_info)), :type => response['Content-Type']) end end %w[specs.4.8.gz latest_specs.4.8.gz @@ -53,10 +53,10 @@ end private def get_from_rubygems_if_not_local - file = File.expand_path(File.join(Server.data, *request.path_info)) + file = File.expand_path(File.join(Geminabox.data, *request.path_info)) unless File.exist?(file) ruby_gems_url = Geminabox.ruby_gems_url path = File.join(ruby_gems_url, *request.path_info) content = Geminabox.http_adapter.get_content(path)