Giter Site home page Giter Site logo

strangebox's Introduction

GemInABox in another dress

my Version of Gem in a Box (I just put it in another dress)

..original by: Tom Lea (cwninja) .. geminabox

Really simple rubygem hosting

Gem in a box is a simple sinatra app to allow you to host your own in-house gems.

It has no security, or authentication so you should handle this yourself.

Server Setup

gem install strangebox

Create a config.ru as follows:

require "rubygems"
require "strangebox"

Strangebox.data = "~/dev" # ... your Gem-folder

#	If you need authentication:
#	use Rack::Auth::Basic, "StrangeBox" do |username, password|
#		[username, password] == ['your_name', 'your_password']
#	end

run Strangebox

And finally, hook up the config.ru.

e.g.:  $ rackup

Client Usage

$ gem install strangebox

$ gem build secretgem.gemspec

$ gem sbox ./secretgem-0.0.1.gem

$ gem sources -a http://localhost:9292/   ... your Host

$ gem sources -a http://your_name:your_password@localhost:9292/   ... your Host with username & password

Simples!

Licence

..original by: Tom Lea (cwninja) .. geminabox

Fork it, mod it, choose it, use it, make it better. All under the do what the fuck you want to + beer/pizza public license.

.. so pizza & beer goes to cwninja

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.