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.
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…
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…
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,…
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:…
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
*…
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…
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:
…
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…
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…
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…
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…
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…
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…
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.…
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)