Questions tagged [gemset]

Gemset refers to the RVM (Ruby Version Manager) feature that gives a self-contained environment for gems, i.e. a container one can use to keep gems separate from each other. Use this tag for questions related to the RVM feature.

Gemset refers to the RVM (Ruby Version Manager) feature that gives a self-contained environment for gems, i.e. a container one can use to keep gems separate from each other. Use this tag for questions related to the RVM feature.

70 questions
100
votes
5 answers

Where does bundler store gems?

I know that when using gem install, the gem will be stored under /home/username/.rvm/gems/, under which gemset the gem was installed. But if I use Bundler and specify the gem in the Gemfile, when I run bundle install, where will those gems be…
gerky
  • 6,267
  • 11
  • 55
  • 82
59
votes
4 answers

Create .ruby-version and .ruby-gemset with rvm

Is there a way to create the associated .ruby-version and .ruby-gemset files when creating a new gemset? With older versions of rvm, one could do rvm --create --rvmrc 1.8.7@project, but that creates .rvmrc files. I thought I read somewhere we could…
Tyler DeWitt
  • 23,366
  • 38
  • 119
  • 196
37
votes
3 answers

RVM: List all gems in current gemset ignoring global & default

Looking for something like gem list within an RVM gemset but to have it ignore gems in the global and default gemsets so I can see, easily, exactly what gems are in the active gemset (and only the active gemset).
Meltemi
  • 37,979
  • 50
  • 195
  • 293
7
votes
1 answer

RVM .ruby-gemset file does not switch gemsets

Why doesn't rvm switch to @project_gemset when I cd into my project's directory? The gemset name in my .ruby-gemset file matches the name listed from rvm gemset list. > cd project > ls -A .ruby-gemset > cat .ruby-gemset project_gemset > rvm gemset…
David Winiecki
  • 4,093
  • 2
  • 37
  • 39
6
votes
3 answers

Open new tab terminal reset gemset by rvm

When I open terminal then enter to the rails application, the rvm will load the gemset in .ruby-gemset file as the following: > cd my_application/ > rvm gemset list The output as the following: gemsets for ruby-2.2.2 (found in…
Mohamed Yakout
  • 2,868
  • 1
  • 25
  • 45
6
votes
4 answers

Using RVM Gemsets & Bundler & RubyMine

I use RVM to manage Ruby versions. In my project I use Bundler to manage gems for the project. RVM also have gemsets. Gem in gemset don't have a connection with Bundler's gem. ← Is this correct? I came to this conclusion because gem files stored in…
Alex Fedoseev
  • 1,135
  • 11
  • 18
5
votes
0 answers

`require': incompatible library version

I'm using RVM as version management for Ruby and installed Ruby 2.2.5. The bundle is installed completely and successfully. But when I started the rails server using rails s it is giving me 'require': incompatible library version (LoadError) for…
Akanksha
  • 178
  • 8
5
votes
1 answer

How to use a different version of ruby but with the same gemset?

On my computer, I run ruby1.9.2-p290 with a system gemset. I want to keep testing out the edge version of Ruby in my development env, but I don't want to install all the gems again and keep mostly identical copies of the same gem files. How could I…
steveyang
  • 9,178
  • 8
  • 54
  • 80
4
votes
4 answers

a fatal error has occurred. Please see the Bundler troubleshooting documentation at http://bit.ly/bundler-issues

When I'm doing bundle install, I got the exception below. What is this? rajesh@rajesh:~/workspace/Cybermedia_Test$ bundle install Fetching gem metadata from http://rubygems.org/.Unfortunately, a fatal error has occurred. Please see the Bundler…
Kanna
  • 990
  • 1
  • 11
  • 30
3
votes
1 answer

CentOS RVM Error: Unknown ruby string (do not know how to handle): ruby-2.1.0

I am setting up a rails app on a CentOS server. We have installed rvm and ruby-2.1.0. From my app directory when I try to create a gemset or use a gemset etc. I keep getting the following message: Unknown ruby string (do not know how to handle):…
septerr
  • 6,445
  • 9
  • 50
  • 73
3
votes
2 answers

Why does Passenger says that my gem 'json' can't be found, when my gem list shows it?

I got the following error message with phusion passenger for Ruby on Rails on my Apache server : It looks like Bundler could not find a gem. This is probably because your application is being run under a different environment than it's supposed…
Douglas
  • 5,229
  • 3
  • 43
  • 54
3
votes
2 answers

What does `@something` stand for in `rvm use 2.0.0@something`?

As the title says, can't find any documentation on what @something does in rvm use 2.0.0@something?
Arman H
  • 5,488
  • 10
  • 51
  • 76
2
votes
0 answers

can't require my gem - cannot load such file

I want to require my gem. I create gemset, сhoose it. After create two files .ruby-version and .ruby-gemset, next i do bundle init in Gemfile i write gem 'codebreaker', git: 'https://github.com/somerepo', branch: 'development' After this, bundle…
Smile
  • 21
  • 6
2
votes
1 answer

How to keep gemset on changing tab in mac terminal?

I am trying to keep the gemset of rvm when I create a new terminal tab on Mac OS. I know that I can set a gemset as a default but I don't want to do this. Maybe someone can help me with this question. Thanks a lot.
2
votes
3 answers

Rails: Why do we need gemsets?

I would like to understand a very basic concept in Ruby on Rails. Everytime I create a new Rails application, I used to create a gemset and then install gems to that gemset. Once my friend asked me why I do that and I failed to make him understand…
Nimmi Mathew
  • 283
  • 2
  • 10
1
2 3 4 5