Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6672991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:34:28+00:00 2026-05-26T03:34:28+00:00

We have a gem that contains shared code for multiple apps. It is hosted

  • 0

We have a gem that contains shared code for multiple apps. It is hosted on a private github repo.

I want each app to automatically grab the latest version of that gem every time bundle install is run, so it is easy for the other members of my team to always be up to date, as well as having a simple deployment on Heroku and our Jenkins CI server.

It is my understanding that when bundle install is run, if some version of the gem has already been successfully installed, it will be used instead of any newer version.

Is there any way to force bundler to always get the latest version of the gem?

Do we just need to make bundle update a regular part of our workflow when we deploy or push to master (triggering a Jenkins run)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:34:29+00:00Added an answer on May 26, 2026 at 3:34 am

    As you said, I believe the update command seems like a better fit for what you are trying to achieve, since you can force the private gem update without affecting unrelated gems.

    bundle update mygem
    

    Per the bundle-update man page:

    Update the gems specified … ignoring
    the previously installed gems specified in the Gemfile.lock.

    In your dev environment you could create a bash or other script for running this in tandem with a standard bundle install.

    As far as Heroku deploys, once you have updated and committed your Gemfile.lock changes to your git repo, Heroku should use that version, per their docs:

    Gemfile.lock ensures that your deployed versions of gems on Heroku match the version installed locally on your development machine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Ajax form in my Rails app that contains the Recaptcha markup
I have a Gem that I found at RubyForge and want to peek inside
I ran gem sources -c so that I have to deliberately specify where I
I have a gem that uses a binary (htmldoc) that is not bundled into
I have a Rakefile that includes this: Jeweler::Tasks.new do |gem| # ... gem.add_dependency('json') end
If I want to perform a search on a directory that contains thousands of
I have a Rails 3 engine gem that is for basic user authentication and
I have to install a gem (liquid) from Git. But currently in the GitHub
I have written this gem that has more than 10,000 generated classes. While installing
We have a ruby application that depends on a gem with native extensions (in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.