Project

gpig

0.0
No commit activity in last 3 years
No release in over 3 years
A tool to quickly add files to a git repo, push, and then use specific_install to install the new gem.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

GPIG (Git Push Install Gem)

Gpig is a nice little tool to help speed up gem development. It does the following:

  1. Increments the version of a gem.
  2. Adds all changed files to the current git repo.
  3. Commits all those changes to the git repo.
  4. Pulls any changes from the repo's origin.
  5. Pushes any changes to the origin.
  6. Runs gem specific_install to install the gem from the git repo URL.

Usage: gpig [options]

Options:

--version
Shows the currently installed version of gpig.
--conf_file
The configuration file, defaults to .gpig in the current directory.
--increment
Whether or not to increment the version, defaults to true.
--version_file
The version file that holds the VERSION variable that will be incremented.
--repo_url
The URL of the git repo from which the new gem will be installed.
--remote
The remote to which the local code changes will be pushed, defaults to origin.
--branch
The branch to which the local code changes will be committed, defaults to master.
--commit_message
The message when committing files to the repo, defaults to "More changes".

Assumptions:

  1. Your gemspec references a VERSION variable.

    Gem::Specification.new do |s|
      s.name        = "gpig"
      s.version     = Gpig::VERSION
      ...
    
  2. That VERSION variable is referenced in a version file that you give to gpig.

    module Gpig
      VERSION = '0.0.1'
    end