Questions tagged [gemfile]

Gemfile - A format for describing gem dependencies for Ruby programs. A Gemfile describes the gem dependencies required to execute associated Ruby code.

Gemfiles are a format for describing what gems are required by a Ruby program in order to successfully run.

See also

712 questions
7
votes
1 answer

Capistrano could not locate Gemfile error on application deployment

I'm trying to deploy my Rails application to production server and I decided to deploy it to DigitalOcean using this guide + RVM. To deploy I use following command: cap production deploy However, it fails at some part requiring gemfile. Here's the…
7
votes
1 answer

Why does the Gemfile semantic versioning operator (~>) produce inconsistent results with one number?

The gemspec semantic versioning operator ~> (aka twiddle-wakka, aka pessimistic operator) allows a gem version to be constrained yet allow some upgrades. I have often seen that it can be read as: "~> 3.1" => "Any version 3.x, but at least 3.1" …
hlascelles
  • 1,061
  • 11
  • 15
7
votes
3 answers

Globally available Gemfile

I have numerous gems that I use across all Rails projects, but that aren't part of the projects' Gems, for example powder for managing POW. It would make sense to me to manage these with a global Gemfile, but I can't see any examples of this. How…
Undistraction
  • 42,754
  • 56
  • 195
  • 331
7
votes
1 answer

What is the Correct Way To Add a :staging group to My Gemfile

I have remotes set up on Heroku for production and staging. On staging I have set the app's envs to include: RACK_ENV=staging RAILS_ENV=staging I would like to be able to specify a staging group in my Gemfile in the same way I can currently use…
Undistraction
  • 42,754
  • 56
  • 195
  • 331
7
votes
1 answer

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…
BC00
  • 1,589
  • 3
  • 29
  • 47
7
votes
1 answer

Bundle update stuck

I am having troubles doing bundle update It seems to get stuck on these 3 weird gems..["spicycode-rcov", "jnunemaker-crack", "tenderlove-frex"] I have no idea what they are for or where they came from.. this is the last few lines of bundle update…
Foxedd
  • 95
  • 1
  • 6
7
votes
2 answers

heroku deploy taking very long

We've got a fairly large app that's going up on heroku... It's an app using browsercms as the base, and it's built on top of that. The Gemfile isn't that big (we don't have more gems than our average app) but for some reason, deploying takes 15…
courtsimas
  • 764
  • 1
  • 13
  • 20
7
votes
3 answers

Best practice, adding a version to each gem in the gemfile?

Should I add the version for each gem in my Gemfile? Is it a best practice? Just recommended?
AdamT
  • 6,405
  • 10
  • 49
  • 75
7
votes
1 answer

Why is Capistrano not installing gems with bundler?

Every time I deploy an app with Capistrano, it complains about missing gems. For example: ** [out :: mysite.com] Could not find WhateverGem-1.0.0 in any of the sources ** [out :: mysite.com] Run `bundle install` to install missing gems. I resolve…
Yuval Karmi
  • 26,277
  • 39
  • 124
  • 175
7
votes
5 answers

Capybara::ElementNotFound: Unable to find xpath "/html"

I'm following the Ruby on Rails tutorial at http://ruby.railstutorial.org/chapters/static-pages and came across the following error StaticPages Home page should have the content 'Sample App' Failure/Error: page.should have_content('Sample App') …
absessive
  • 1,121
  • 5
  • 14
  • 36
6
votes
0 answers

How do you make a gemfile group for a specific operating system?

I need to install some gems on development only if the developer is on a certain operating system. In my particular case, I want to make a group for Linux. How can I make a group for this?
Ramon Tayag
  • 15,224
  • 9
  • 43
  • 69
6
votes
1 answer

Your Ruby version is 2.7.0, but your Gemfile specified 2.6.3

Why is a Gemfile being created what specifies 2.6.3? How do I make it create a Gemfile that specifies 2.7.0??? Thank you
Richard Martin
  • 61
  • 1
  • 1
  • 3
6
votes
2 answers

Why does a Gem provide ~> AND => in RubyGems?

The gem for bcrypt at https://rubygems.org/gems/bcrypt/versions/3.1.11 shows this usage gem 'bcrypt', '~> 3.1', '>= 3.1.11' Why have the two versions of the pessimistic operator ? We normally use just one version for other gems
Michael Durrant
  • 93,410
  • 97
  • 333
  • 497
6
votes
1 answer

Bundler cannot continue; error parsing 'Gemfile': ()

While using these installation instructions, https://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_30x_on_Ubuntu_1404_with_Apache2_Phusion_Passenger_MySQL_Subversion_and_Git_%28Gitolite%29, I ran into an issues when I performed the…
Louis Gillette
  • 65
  • 1
  • 1
  • 7
6
votes
1 answer

RVM Gemsets and Ruby Gemfile confusion

Someone please help me understand how a ruby app manages both the gemfile and the rvm gemsets for an app. If i am currently using a Gemset, with a bunch of installed gems, and i also have gems in my gemfile, is the Ruby app using the gems from the…
Josh C
  • 261
  • 3
  • 14