简体   繁体   中英

Adding multiple gem dependencies in gemspec

How do you guys add multiple development/runtime dependencies to your gemspec?

This is the way I do it:

spec.add_development_dependency 'example1', '~> 1.1', '>= 1.1.4'
spec.add_development_dependency 'example2', '~> 1.1', '>= 1.1.4'

But I'd like to know if there are other ways to do it?

Thanks in advance!

Looking at the Gem specification from here the choices are:

add_dependency , add_runtime_dependency , add_development_dependency , add_dependency_with_type

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM