GitXplorerGitXplorer
c

stickler

public
143 stars
29 forks
17 issues

Commits

List of commits on branch master.
Unverified
9c9ef5b2287c0be071da0a233e2b262e98c878e5

Merge pull request #48 from copiousfreetime/relicense-as-mit

ccopiousfreetime committed 9 years ago
Unverified
fb0cf21974ec972cb07e910895ca1c9e6baa644e

Relicense as MIT

ccopiousfreetime committed 9 years ago
Unverified
01f83085ebcf83ee2fe1ac524f9053810685f6aa

Ignore .gem directory

ccopiousfreetime committed 9 years ago
Unverified
ddeba0b922175bbef8fc146ac78c629a55151449

Release 2.4.2

ccopiousfreetime committed 10 years ago
Unverified
f0f2c9d05b00facd655c6277ffb77496cdaea9ed

force a downrev of mustache (ronn dependency)

ccopiousfreetime committed 10 years ago
Unverified
ea78e3c88513480eabb2619727d2716834048036

remove 18 mode from jruby for travis

ccopiousfreetime committed 10 years ago

README

The README file for this repository.

Stickler

  • Homepage
  • GitHub
  • email jeremy at copiousfreetime dot org
  • git clone git://github.com/copiousfreetime/stickler.git

DESCRIPTION

Stickler is a tool to organize and maintain an internal gem repository. Primarily, you would want to use Stickler if:

  1. You have proprietary gems that you want to have available via a gem server so you may gem install them.
  2. You would like to have a local mirror of third party gems from either http://rubygems.org or some other gem server.
  3. You want both (1) and (2) in the same server.

INSTALLATION

Installing stickler may be done via the standard gem installation

gem install stickler

Or downloaded from http://github.com/copiousfreetime/stickler/downloads

USAGE

Stickler is broken up into a few commandline programs.

  • stickler - Used to mainpulate gems that are in a stickler-server.
  • stickler-server - The server process that manages gems.
  • stickler-passenger-config - A helper process to generate Passenger configurations for

The easiest way to get up and running with stickler is to run the standalone server stickler-server and then use stickler to interact with it.

Start up a standalone stickler server

% mkdir -p /tmp/stickler-test
% stickler-server start --daemonize /tmp/stickler-test

Set some sane defaults

% stickler config --add --server http://localhost:6789 --upstream https://rubygems.org
  server : http://localhost:6789
upstream : https://rubygems.org

% cat ~/.gem/stickler
---
:server: http://localhost:6789
:upstream: https://rubygems.org

Take a few gems and push them to the server

% ls -1
heel-2.0.0.gem
hitimes-1.1.1.gem
launchy-0.3.5.gem
stickler-2.0.0.gem

% stickler push *.gem
Pushing gem(s) to http://localhost:6789/ ...
  /Users/jeremy/tmp/gems/heel-2.0.0.gem     -> OK http://localhost:6789/gems/heel-2.0.0.gem
  /Users/jeremy/tmp/gems/hitimes-1.1.1.gem  -> OK http://localhost:6789/gems/hitimes-1.1.1.gem
  /Users/jeremy/tmp/gems/launchy-0.3.5.gem  -> OK http://localhost:6789/gems/launchy-0.3.5.gem
  /Users/jeremy/tmp/gems/stickler-2.0.0.gem -> OK http://localhost:6789/gems/stickler-2.0.0.gem

Mirror a gem from upstream

% stickler mirror --gem-version 1.4.3 logging
Asking http://localhost:6789/ to mirror logging-1.4.3 from rubygems.org : OK -> http://localhost:6789/gems/logging-1.4.3.gem
% stickler mirror --gem-version 1.16.2 trollop
Asking http://localhost:6789/ to mirror trollop-1.16.2 from rubygems.org : OK -> http://localhost:6789/gems/trollop-1.16.2.gem

Look at all the gems installed in your stickler server

Open your browser to http://localhost:6789

% launchy http://localhost:6789

Install a gem from your new stickler gem server

% gem install hitimes --source http://localhost:6789/

Configure your servers to globally use your internal stickler gem server

% cat /etc/gemrc
---
:benchmark: false
:verbose: false
:update_sources: true
:bulk_threshold: 1000
:backtrace: false
:sources:
- http://stickler.example.com
gem: --no-rdoc --no-ri

See Also

The man pages that ship with the gem. They may be viewed if you also install the gem-man gem.

% gem install gem-man
% gem man stickler
View which manual?
 1. stickler-passenger-config(1)
 2. stickler-server(1)
 3. stickler(1)
>

DEVELOPMENT

If you want to do development on stickler, please see CONTRIBUTING.md

CREDITS

LICENSE

Copyright (C) 2015 Jeremy Hinegardner MIT License, See LICENSE for details.