Questions tagged [gem-bundler]

38 questions
1
vote
1 answer

How to change bundle install from default to my project gemfile?

I am trying to install the gems from my Gemfile to my project, but when I have performed "bundle install", the bundler started installing the default gems, but not that one from my Gemfile. Gemfile dir:…
1
vote
0 answers

Ruby bundle console is not loading aws shared credentials from ~/.aws/credentials

How can I load aws credentials to ruby if I use bundler console. Scenario: I have the following code in samplefile.rb and aws credentials in ~/.aws/credentials require 'aws-sdk-core' require 'aws-sdk-s3' require 'json' class Publisher def…
1
vote
2 answers

Can't install gem using Bundler's Rakefile install task when developing a custom gem

I'm developing a couple of private gems and I think I don't understand correctly the PATH/GEM_PATH and/or Bundler/RVM installation flow, would love if someone could chip in. I have a repository with two gems (A & B for simplicity sake). I've…
Fdo
  • 1,053
  • 4
  • 15
  • 38
1
vote
2 answers

How to manage dependencies between my ruby projects?

This sounds like a basic question, but I can't find any answer to it on the Internet. So I have a git ruby project database_models. It's a gem. I want 3 other project to use it. I've added a dependency on this project to those 3 projects like…
Zhenya
  • 6,020
  • 6
  • 34
  • 42
1
vote
2 answers

How to generate 'minitest/spec' based gems via bundler?

bundle gem gem_name --test=minitest allows for choosing minitest, but how to make bundler generate code for minitest/spec instead of minitest/test.
I'm Mo
  • 131
  • 8
1
vote
0 answers

Could not find activesupport-5.0.0.1 in any of the sources (Bundler::GemNotFound)

I have done the 'bundle install' as the error message suggests, then I verified activesupport is installed using 'bundle show activesupport' which it is. Then I verified ruby is using the correct version that it was installed to, which it is. Now…
mydoglixu
  • 934
  • 1
  • 7
  • 25
1
vote
0 answers

Bundler uses wrong path to ruby

I have some problems running bundle install. I get messages like Errno::EACCES: Permission denied @ rb_sysopen - /bundler_cache/extensions/x86_64-linux/2.3.0-static/ffi-1.9.10/gem_make.out and running bundle install --verbose showed me such…
Ngoral
  • 4,215
  • 2
  • 20
  • 37
1
vote
2 answers

Failed generating controller due to Bundler version conflict

I'm learning Rails with tutorials from Ruby on Rails by Michael Hartl: https://www.railstutorial.org/book I used the following command to generate a controller: rails generate controller StaticPages home help Which generates the following error…
Rajan
  • 312
  • 3
  • 13
1
vote
2 answers

error while trying to load the gem 'activeadmin'. (Bundler::GemRequireError)

After I add a gem in the gemfile (gem 'presto-client', '~>0.4.5'), I do a bundle install and bundle update. My ruby version is -> ruby-2.1.6 While starting a rails application, I am getting the following error -…
user2851669
0
votes
1 answer

Cannot install Jekyll after updating to Catalina - An error occurred while installing ffi (1.9.18)

I have updated my mac to use Catalina and now I am having all sorts of issues when I try and install Jekyll. This is what I get when I run my usual grunt setup: Running "jekyll:dist" (jekyll) task >> Error: Command failed: bundle exec jekyll -v >>…
ChrisD
  • 59
  • 7
0
votes
1 answer

installing correct version of gem bundler for redmine install

I'm trying to get redmine set up on my ubuntu 16.04 machine, and I'm working off this tutorial. I should also say that I tried to get redmine installed some months ago, ran into some passenger/phusion problems and put it aside. So, I started…
badperson
  • 1,554
  • 3
  • 19
  • 41
0
votes
1 answer

Unable to update rake (12.3.1, 12.3.0) to version 12.3.2 within Docker container

I'm currently working on a Rails application within docker. When trying to install Rspec by running docker-compose run web rails generate rspec:install I get the following error. Could not find rake-12.3.2 in any of the sources Run `bundle install`…
Steven Aguilar
  • 3,107
  • 5
  • 39
  • 89
0
votes
1 answer

Bundler on Heroku won't run correct version

I am working in aws c9 and I am trying to send my app to heroku but it keeps telling me I am running the wrong version of bundler, so I run gem install bundler locally and I get 2.0.1, but on Heroku it keeps running 1.17.1 and I can't change this…
0
votes
0 answers

Rake fails to install on Cygwin

We just installed the latest cygwin (setup version: 2.891 - 64bit on the latest Windows 10) and we've installed rvm (1.29.4) and whenever we run bundle install we obtain the following error: Encoding::CompatibilityError: incompatible character…
Micah Gideon Modell
  • 586
  • 1
  • 9
  • 24
0
votes
0 answers

How to fix "Gem::InvalidSpecificationException" error after breaking a gem?

Gem::Specification.new do |spec| spec.name = "nba_schedule" spec.version = NBA_Schedule::VERSION spec.authors = ["TylerP33"] spec.email = ["tyler3321@gmail.com"] spec.summary = %q{TODO: Write a short…
TylerP3358
  • 65
  • 1
  • 7