lib/geminabox/server.rb in geminabox-0.13.5 vs lib/geminabox/server.rb in geminabox-0.13.6

- old
+ new

@@ -295,9 +295,13 @@ def combined_gem_list GemListMerge.from(local_gem_list, remote_gem_list) end helpers do + def h(text) + Rack::Utils.escape_html(text) + end + def spec_for(gem_name, version, platform = default_platform) filename = [gem_name, version] filename.push(platform) if platform != default_platform spec_file = File.join(settings.data, "quick", "Marshal.#{Gem.marshal_version}", "#{filename.join("-")}.gemspec.rz") File::open(spec_file, 'r') do |unzipped_spec_file|