Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Basic Ruby question

I'm not a developer but I need to install ruby tools from time to time. Can someone please explain in simple words the following terms:

  • ruby-on-rails
  • bundler
  • rubygems & gems

Thanks in advance

like image 333
lisa1987 Avatar asked Sep 19 '26 06:09

lisa1987


2 Answers

Ruby on Rails (or just Rails for short) is a web development framework written in the Ruby language. It's basically just a set of tools and standards that allow you to create websites easier and faster.

Ruby Gems (or just gems for short) are plugins, extensions, libraries, etc. for Ruby. Some are specifically created for Rails and even Rails itself is actually a gem.

Bundler handles installing and using the right gems for Ruby projects (like Rails). It examines all of your project's gem dependencies and the dependencies of their dependencies and determines an exact list of gems and correct gem versions that will be available to your project. Bundler is also, itself a gem.

If you've had some Linux experience, you could say that Rails is like Gnome, gems are like debs or rpms and Bundler is like apt or yum.

like image 122
aNoble Avatar answered Sep 22 '26 02:09

aNoble


Ruby on Rails: Ruby on Rails is a web development framework written in Ruby programming language. It is the most powerful and popular tool for building dynamic web applications.

Bundler: Once we create a new Rails application,we use Bundler to install and include the gems needed by the app.The rails command for Bundler is "bundle install".

Rubygems & gem: RubyGems is a package manager for the Ruby programming language that provides a standard format for distributing Ruby programs and libraries, a tool designed to easily manage the installation of gems, and a server for distributing them Each gem has a name, version, and platform.

like image 30
Shanmathi S Avatar answered Sep 22 '26 01:09

Shanmathi S



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!