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!

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top