I am using RVM, what is the difference between using package installation and installing rvm package?

I would like to know the difference?

I can run both and they install, but what is the actual difference?

I am making a tutorial / screencast from Michael Hart and it uses package installation, how is this different from using rvm package installation?

I also decided to try the trial version of "rubimine", and I noticed that after starting the package, install it in the terminal and then opening ide, it tells me that I need to update some gems, so I'm sure that it does not install packages in that same place.

I loaded the rvm project into it.

+4
source share
1 answer

I think from this question that you do not quite understand the difference between rvm and bundler and what exactly everyone does. I will try to explain the difference.

RVM is an abbreviation for Ruby enVironment (Version) Manager. This is a set of command line scripts that help the sandbox ruby ​​binaries and gems for a project or set of projects. Thus, if you have one project that requires Ruby 1.8 and another that uses Ruby 1.9, you can easily switch between the two ruby ​​settings and avoid unpleasant incompatibilities or cumbersome configurations.

You can also install different gems from each ruby ​​version, so if you need to develop some applications with Ruby on Rails 2.3 and some with 3.0, or if you want to try the new 3.1 preset, you can do this without breaking other dependencies applications.

The Bundler is a ruby ​​stone that, according to the website, manages application dependencies over its entire life on many machines in a systematic and repeatable way.

Bundler makes it easy to copy one application source from one computer to another and quickly and (relatively) easily install all the gems and dependencies needed for that particular application.

So, I understand the confusion as there is a bit of overlap. RVM gems are like pearl ligaments. The difference is that the coherent manages gems and dependencies for one application and several machines. Rvm gemset is a sandbox that holds a group of gems in one place, tied to a specific ruby ​​installation on one machine, sometimes used for several applications.

So, when you say that you downloaded the rvm project in your IDE, this is not particularly true. RVM is a sandbox, not a framework.

+10
source

All Articles