Each gem has a gemspec file where the dependencies are specified. Use bundle to install the gem and it will also install the dependencies.
How to add additional gems inside a RubyGem package?
-
09-10-2022 - |
質問
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:
- How can I add the Gem inside the package to be shipped with my app?
- Should I instead not add the gem inside but create dependencies list, which is to be executed upon installation of my gem?
- What is the right way to ship dependencies with my gem?
Thanks!
解決
所属していません StackOverflow