Skip to content

Instantly share code, notes, and snippets.

@teohm
Created March 26, 2014 10:06
Show Gist options
  • Save teohm/9780128 to your computer and use it in GitHub Desktop.
Save teohm/9780128 to your computer and use it in GitHub Desktop.
rake local_gem:init
rake local_gem:update_projects
cd project_dir
begin
abort if git_staging_dirty?
bundle_update(gem_name)
abort unless lockfile_modified?
git_add(gem_name)
git_commit(MSG_GEM_UPDATED, gem_name)
ensure
cd old_dir
end
in local gem dir
before push commit
update gem lock file in each dependent project directory
updater = GemUpdater.new
updater.update_project(project_dir)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment