addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramlinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Question about gems workflow

From: George M.
Sent on: Thursday, November 3, 2011 4:07 PM
Hey guys, I have a question about the workflow of a gem author.

Suppose I have a project "MainProject" and while working in it, I realize that a bit of code would be useful for others to distribute as a gem.

So I extract that code, minimize my dependencies, commit it to its own github repository, and package it as a my-awesome-gem gem. Great.

Now I have two choices as far as I can tell.
1) I can remove the code entirely from MainProject and re-include the gem. Then, if in the course of development on MainProject I fix a bug in my-awesome-gem I would fix it in the my-awesome-gem repository, recreate the gem, and update it in MainProject.


2) I can leave the code in MainProject and fix it as I work, after making changes I would copy/paste the changed files into the my-awesome-gem repository and push that out.

Neither one of these is appealing. Is there a third option? What do you guys do?

Our Sponsors

  • Engine Yard

    EngineYard has funded meetings & sent shirts & other stuff to give away.

  • Sticker Mule

    Awesome vinyl stickers, and they love Ruby!

  • Jet Brains

    Jet Brains has provided us product licenses for their Ruby IDE.

  • LaunchPad

    LaunchPad continues to provide their fine co-working space downtown!

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy