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
0
votes
1 answer

nginx+passenger and Gemfile in non-common location

We have an application which uses non-standard rails Gemfile location. It worked with Nginx+unicorn just fine but I'm having a hard time to get it work with Nginx+Passenger. After setting root parameter to the Rails public folder I notice it didn't…
Adrian
  • 9,102
  • 4
  • 40
  • 35
0
votes
1 answer

Using Gemfiles with Budler with two projects

TL;TR We have two projects (minitest project, and a page objects project). The Minitest project uses the page object project. When Jenkins runs the tests, we use a remote git path to the page objects project. When we run it locally we change the gem…
Daryn
  • 3,394
  • 5
  • 30
  • 41
0
votes
3 answers

Is `Gemfile.lock` contains all dependency information of a ruby project?

For a ruby project, I need to find a way to check if I know a gem contains some issues, I can tell if the project is impacted. I can see there is a Gemfile.lock contains many dependency information, which is helpful, but since I'm very new to ruby,…
Freewind
  • 193,756
  • 157
  • 432
  • 708
0
votes
2 answers

Heroku App trouble with pg in Gemfile

I have a Heroku app/RoR server set. When trying to run the command bundle exec rake db:create db:migrate I get a LoadError: cannot load such file -- 2.1/pg_ext? I have this in my gemfile: source 'https://rubygems.org' # Bundle edge Rails instead:…
Timothy Frisch
  • 2,995
  • 2
  • 30
  • 64
0
votes
2 answers

Running rails git cloned repo locally: How to handle gem errors?

All the time when I do a git clone https://github.com/[REPO_NAME] and then cd into the repo and run bundle install I get Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /Users/name/.rvm/rubies/ruby-2.1.3/bin/ruby extconf.rb *…
Antoine
  • 559
  • 8
  • 21
0
votes
1 answer

Unable to run `rails g` or `rails c` without `sudo`

I am unable to run rails g or rails c, because of the following error message: Could not find mysql2-0.3.18 in any of the sources Run `bundle install` to install missing gems. I can run 'rails server', which works fine, as expected. I also have ran…
Ben Aubin
  • 5,542
  • 2
  • 34
  • 54
0
votes
3 answers

Terminal “rails generate controller pages home” not working

So, I type the following command to generate a page : rails generate controller Pages home Following this terminal stopped responding and it took a whole lot of my time. I had to use C^ to exit. When I do this the following text is displayed: …
0
votes
1 answer

Unable to require pry via Bundler.setup for a Ruby application that uses a Gemfile

I'm writing a simple ruby application(basically using PORO's). I've added a Gemfile to it and I'm trying to require the pry gem(which is useful for adding breakpoints while debugging, as the application grows) via the Gemfile but I'm unable to…
boddhisattva
  • 6,908
  • 11
  • 48
  • 72
0
votes
1 answer

Rails 4 and declarative_authorization gem

I'm trying to use declarative_authorization gem within my Rails 4 app but after inserting it within my gemfile gem 'declarative_authorization' and run the bundle command I try to install it with the command rails g authorization:install…
0
votes
1 answer

How do I get Phusion Passenger to recognize the correct version of bundler?

First of all, I am a programming newbie and even more recent Ruby/Rails newbie. I have a site that I am trying to upload (http://suzyogi.com). Most of the pages are just HTML and CSS with a bit of jQuery, but I wanted to include a blog, so I built…
fastasleep
  • 243
  • 3
  • 15
0
votes
1 answer

Bundler: using shared gem when it exists, rather than downloading from gem server

Say, I have Gemfile like following. source "GEM_REPOSITORY" gem 'gem_A' # gem_A has no additional dependency gem 'gem_B' # gem_B depends on gem_B_1 and gem_B_2 When I run bundle install, I want Bundler to do the following. If a gem already…
Ryo
  • 2,003
  • 4
  • 27
  • 42
0
votes
1 answer

Why does my Rails engine need me to require it (unlike a typical gem) even if it's in the Gemfile and has require_paths configured?

I've written a Rails engine called annotator-store. It requires an explicit require 'annotator_store' in the /config/application.rb in the main app (even if it's in the Gemfile). This baffles me because I've written a gem before that doesn't need…
King'ori Maina
  • 4,440
  • 3
  • 26
  • 38
0
votes
1 answer

What is "group" from Gemfiles in the ruby language?

I'm just learning Ruby/Rails. Consider this excerpt from a Gemfile: group :production do gem 'pg', '0.17.1' gem 'rails_12factor', '0.0.2' end What is group in the ruby language? I initially thought of a function but why would the…
ben
  • 5,671
  • 4
  • 27
  • 55
0
votes
1 answer

Unable to get LocomotiveCMS-Search to work

I am having multiple issues getting locomotivecms-search to run. First one is that after I have added the locomotive-search gem and ran the install with the bundler which has installed the gem, I do not see any changes happening in the back-office.…
iboros
  • 317
  • 2
  • 5
  • 15
0
votes
1 answer

How to update bundler, gem-wrappers gems

How to update bundler, gem-wrappers gems in my Gemfile. The following gems are shown as outdated but I don't see a direct reference to them in the Gemfile. gem outdated bundler (1.7.3 < 1.7.7) ... gem-wrappers (1.2.4 < 1.2.7)
Rpj
  • 5,348
  • 16
  • 62
  • 122