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 8263313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:03:26+00:00 2026-06-08T04:03:26+00:00

I am working with a team of developers, and we are all using the

  • 0

I am working with a team of developers, and we are all using the same Gemfile from our repository. Because I am working on a Mac, and others are using Ubuntu, we have a Gemfile.local.example file in our repository as well that has the appropriate notification gems for each OS, all commented out.

I un-commented the gems for my OS and saved as a new file, not in version control, Gemfile.local. Now I would like “bundle install” to install gems from both files.

I can’t find any good documentation on doing this.

  • 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-06-08T04:03:28+00:00Added an answer on June 8, 2026 at 4:03 am

    I agree that using two Gemfiles is bad practice, and have found a solution that involves the RUBY_PLATFORM constant along with the platform flag in my Gemfile. This may not be the MOST elegant solution, but it does work for me.

    Here is a chunk of my code for curious readers:

    group :development, :test do
      # Mac OSX notifications
      gem 'growl_notify' if RUBY_PLATFORM.downcase.include?("darwin")
      gem 'growl' if RUBY_PLATFORM.downcase.include?("darwin")
    
      # Gnome notifications => aka for Linux
      gem 'libnotify' if RUBY_PLATFORM.downcase.include?("linux")
    
      # Guard-spork doesn't work with windows but it's
      # awesome for other Operating Systems.
      gem 'guard-spork' if RUBY_PLATFORM.downcase.include?('darwin') || RUBY_PLATFORM.downcase.include?('linux')
    
      # Windows Rubies (RubyInstaller)
      platforms :mswin, :mingw do
        # Windows notifications
        gem 'rb-notifu' 
      end
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working in a team and recently we have lost all of our
I'm currently working in a team where we're using a subversion repository. I say
We are team of 4 developers/friends located in different locations. We all have started
Hey guys, so I have a team of iOS developers, who each are working
I am working in an environment with a very small team (3 developers only)
I am currently working on an ASP.NET MVC project. Some developers on the team
My team working in a project using Winforms application(c#) & MSSQL 2005 as database.
My team working on a php/MySQL website for a school project. I have a
There is a team working on acceptance testing X11 GUI application in our company,
I am working with a team using Eclipse to develop for android. We often

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.