Git tagging and rails gemfile

I have a gem that is hosted on github and not yet pushed to rubygems, and I added a tag to the master branch of the gem like this:

git tag –a v0.1.0 –m "gem version 0.1.0"
git push origin —tags

and then in a rails application I have on github I edited my gemfile like so:

  • Why do I get “error: failed to push some refs” when pushing to Heroku?
  • What does this sha number in the git path of a gem in a Gemfile mean?
  • Troubles with git and Gemfile.lock
  • git push heroku master will not recognize my Gemfile.lock file
  • How to deploy to Heroku with a different Gemfile / BUNDLE_GEMFILE
  • Bundler: always use latest revision of git branch in Gemfile
  • gem 'your-gem', git: 'git://', tag: 'v0.1.0'

    My question is, when I merge in additional changes into the master branch of my gem, my rails application will still point to the last commit before I made the tag? I just want to make sure adding additional changes to the gems master branch will not break anything in the rails app. Thank You

  • To show external code dependency in Git by a submodule
  • git push error “fatal: Unable to find remote helper for 'https'”
  • What is the right way to maintain a “version for the server” - with only config files changed, in Git?
  • Git: How to merge/rebase 2 commits that are not direct successors
  • “git svn clone” only clones trunk? (Expected to clone entire repository)
  • Deploy on Windows server with gitlab webhooks
  • One Solution collect form web for “Git tagging and rails gemfile”

    The correct command is git push origin --tags, or git push origin v0.1.0 if you want to push just the one tag, but otherwise yes, your expectation is correct.

    See here for more on bundling gems from git repositories:

    Git Baby is a git and github fan, let's start git clone.