Question

I am going through the documentation at http://guides.rubygems.org/ to learn about RubyGems.

My goal is to package a Ruby application (no executables) which depends on some other Gems (for example, say, Rails!).

I am not a Ruby expert so I am confused and have the following two questions:

  1. How can I add the Gem inside the package to be shipped with my app?
  2. Should I instead not add the gem inside but create dependencies list, which is to be executed upon installation of my gem?
  3. What is the right way to ship dependencies with my gem?

Thanks!

Was it helpful?

Solution

Each gem has a gemspec file where the dependencies are specified. Use bundle to install the gem and it will also install the dependencies.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top