Giter Club home page Giter Club logo

Comments (10)

tomlea avatar tomlea commented on May 23, 2024

I've been considering this for a while, if you fancy patching it in, that would be great! Otherwise, it's on my todo list.

from geminabox.

errm avatar errm commented on May 23, 2024

I was having a look at this issue today . . . this guy seems to have a fairly easy hacky way to do it: http://www.alexrothenberg.com/2011/09/16/running-a-private-gemserver-inside-the-firewall.html

I think it would be nice to patch bundler to make rake release work like this, but still have it as a per gem configuration option to push to geminabox or rubygems.org

It seems like rubygems 1.9.0 is going to have a metadata option for the .gemspec https://github.com/rubygems/rubygems/blob/master/lib/rubygems/specification.rb so that would be a nice way to switch this functionality on with something like s.metadata = { "geminabox" => "http://gems/" }

from geminabox.

tomlea avatar tomlea commented on May 23, 2024

Hmm. I quite like the idea of being able to require 'geminabox/tasks' in a Rakefile and have it just work. Having it do so if required after bundler would be doable (we can just delete the rake task and have a clean slate from there), but if bundler's tasks are loaded 2nd, death would occur.

I'll ponder, but that article is really handy for putting me on track.

from geminabox.

bowsersenior avatar bowsersenior commented on May 23, 2024

This seems like a cool feature, but I wouldn't want geminabox's rake tasks to replace bundler's (or the other way around). How about something like:

rake release:geminabox

from geminabox.

m-o-e avatar m-o-e commented on May 23, 2024

+1 for not replacing bundlers gemtasks. Geminabox should always have its own task-names.

The reason is simple: Type rake release on a Gem that was not properly patched (for whatever reason) and whoops, you've just released your gem to rubygems.org. It'd be an accident waiting to happen.

from geminabox.

tomlea avatar tomlea commented on May 23, 2024

Also agree with the not replacing the release command. We could optionally noop the release command, and add another in it's place for true paranoia.

Pull request anyone?

from geminabox.

kasargee avatar kasargee commented on May 23, 2024

What should be the command if i want to release gem to local server

from geminabox.

m-o-e avatar m-o-e commented on May 23, 2024

rake gib perhaps? 😄

I think the exact name is not so important as long as it's documented and different enough from release that no accidents happen. It's unfortunate that bundler uses release instead of e,g, release:rubygems here.

I guess the aesthetically cleanest solution would be for geminabox to rename release to release:rubygems and add release:gib of its own.

from geminabox.

colinrymer avatar colinrymer commented on May 23, 2024

Any progress on this (if not with the implementation, at least architecturally)? I miss being able to create a git tag and upload the gem in one automated step. If there is a consensus to how things should be handled, I'd be happy to lend a hand in the implementation.

from geminabox.

dfherr avatar dfherr commented on May 23, 2024

I didn't like the idea of including geminabox and all it's dependencies to a project just to provide a rake release task, so i made a dependency free gem to to that.

https://github.com/dfherr/geminabox-release

it adds rake inabox:release, inabox:push and inabox:forcepush tasks to the bundler gem_tasks by hacking into bundler gemtask interface and pushing via net/http. It can use the provided host in your geminabox config file or you can hardcode one in the initializer.

from geminabox.

Related Issues (20)

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.