Giter Site home page Giter Site logo

geminabox-release's Introduction

geminabox-release

This is for all users of a geminabox-server who do use bundler and rake, but do not want to install geminabox and all it's dependencies locally just to have a gem push command.

Gem Version

The gem is a dependency free option to add a rake inabox:release task to bundler gem_tasks for releasing a new gem to your geminabox server.

It only uses the ruby default libaries uri and net/http and expects you are using bundler.

You must no longer require "bundler/gem_tasks" as geminabox-release requires a modified version for you which supports all other functionality!

How to use

Simply load this gem and patch with your geminabox URL in your Rakefile.

E.g.

require 'geminabox-release'
GeminaboxRelease.patch(:host => "http://localhost:4000")

or use your geminabox config file (YAML file with key :host and host url as value in ~/.gem/geminabox)

require 'geminabox-release'
GeminaboxRelease.patch(:use_config => true)

Then you will get a rake inabox:release task.

If your geminabox server is using SSL/TLS, but you have an untrusted certificate, you can use the option ssl_dont_verify.

E.g.

require 'geminabox-release'
GeminaboxRelease.patch(:host => "https://localhost:4000", :ssl_dont_verify => true)

However, that is NOT recommended.

If you wish to remove the bundler/gem_tasks rake release task, you can by adding :remove_release to the patch options:

GeminaboxRelease.patch(:remove_release => true)

Ensure you do not require "bundler/gem_tasks" in your rakefile anymore!

The gem (theoretically) supports basic auth like geminabox in the host address. e.g. http://username:password@localhost:4000 It's untested as we didn't need it. Feel free to try it.

Additional tasks

The gem additionally provides tasks for build & push without all the overhead release produces (like git tag and git push):

$> rake inabox:push          # just builds gem and pushes to geminabox server
$> rake inabox:forcepush     # builds gem and pushes to geminabox server overwriting existing same version

Safety

To ensure you are not accidentally pushing your gem to rubygems there are two distinct safety measures.

  1. The rake task has another name. Do not use rake release if you want to push to your geminabox server!

  2. The gem is pushed via the HTTP POST file request geminabox expects and not via the gem push interface.

  3. You can even fully remove the rake release task, if you wish to.

Troubleshooting

If the rake tasks do not show make sure you did not require "bundler/gem_tasks" anywhere (espacially before requiring geminabox-release).

LICENSE

Copyright (c) 2014 Dennis-Florian Herr @ Experteer GmbH

see LICENSE

geminabox-release's People

Contributors

dfherr avatar hilli avatar

Watchers

 avatar

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.