Gemfile option to bypass dependency checks

We have an option to force the gem installation gem install -f <gemname> -f, -​-[no-]force - Force gem to install, bypassing dependency checks Do we have a similar option in Gemfile. We are trying to install
more »

2017-10-04 12:10 (0) Answers

How to redirect gem file installation

The edited gem file is located in the same folder as the application I'm working on. The path is /Users/name/Ruby/Instagram. I need to install it, but I can't just use gem 'gem_name' install because it will install the general version from GitHub. Ho...
more »

2017-09-05 05:09 (2) Answers

installing gem from a github fork

I have installed a mongify gem from original source: then I want to install a newer version from a fork (has not been accepted yet for pull by original source, but it has an update that i need), link to the fork: h...
more »

2017-08-05 12:08 (1) Answers

rails gem friendly_id and mail_form error

I already bundle installed friendly_id gem but when I try to install the mail_form gem, it shows errors like this. I am using rails in windows. $ bundle install Resolving dependencies... Bundler could not find compatible versions for gem "activ...
more »

2017-06-13 11:06 (0) Answers

Rails annotate file/command not found

I tried the below and got the following errors: run annotate returns /Users/johndoe/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/annotate-2.7.1/lib/annotate.rb:12:in require: cannot load such file -- active_support/core_ext/hash/indifferent_acce...
more »

2017-05-23 18:05 (0) Answers

Could not find a valid gem 'metaclass'

My test did not run because 'mocha' was missing so I added to my Gemfile: source "" gem 'mocha' Then I got: Error installing mocha: [14:47:00][Step 2/4] mocha requires metaclass (~> 0.0.1, runtime) So I added to my Gem...
more »

2017-01-29 14:01 (1) Answers

Ruby error when running bundle install

When I run rails s in the console, command fails and I get this response: Could not find nokogiri- in any of the sources Run bundle install to install missing gems. First issue here is that nokogiri is not in my Gemfile because I'm not usin...
more »

2016-12-17 22:12 (1) Answers

I have an error with gem devise

I have create a simple project on Ruby on Rails. I have added gem devise in my Gemfile. When I launch the command rails g devise:install I have the output in the error below: /usr/local/rvm/gems/ruby-2.3.0/gems/actionpack-
more »

2016-12-11 19:12 (0) Answers

Understanding the tilde operator in Gemfile.lock

I currently have a dependency of the following i18n (~> 0.6, >= 0.6.4) I've been having a read through of the Ruby Gems - Declaring Dependency Guide And I've found out that the '~> 0.6' part means anything between 0.6 and 1.0 - correct me i...
more »

2016-11-08 14:11 (1) Answers

How do I build "gem install json"?

I’m using Rails 4.2.7. I’m trying to build this tutorial —, but getting a strange error, “An error occurred while installing json (1.8.0), and Bundler cannot continue.” So I tried “gem install json...
more »

2016-10-07 18:10 (1) Answers

Ignore Gemfile `source` if source not accessible

We have an internal gem server to store some organisation specific gems. We use it via a source option in Gemfile: source '' do gem 'local-gem' end The internal gem server is only available on the internal network. ...
more »

2016-09-08 11:09 (1) Answers