Skip to content
This repository has been archived by the owner on Aug 14, 2018. It is now read-only.

Idea: Serving gems with bananajour

toolmantim edited this page Sep 13, 2010 · 1 revision

Publishing gems from your bananajour would be darn handy. You could currently just use gemjour, but it might be nice to do this for projects:

bananajour publish bananajour.gem

Anyone on the network can then simply:

gem install bananajour --source http://tim.local:9331/gems

The web interface would have the gem install instructions for each project (if they had a published gem):

Install: gem install bananajour --source http://tim.local:9331/gems

To implement I’d copy both the gem file to ~/.bananajour/gems/gems, and then copy of all it’s dependencies (recursive) from your rubygem’s gem cache as well.

Then you’d do a Dir.chdir("~/.bananajour/gems"); gem index; end and serve it all up with some:

map "/gems" do
  use Rack::Static, "~/.bananajour/gems"
end

or something like that… from the sinatra app / rackup file.

Clone this wiki locally