5

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!

Cecille Manalang
  • 213
  • 3
  • 14
  • Looking at the Gem specification from [here](https://docs.ruby-lang.org/en/2.5.0/Gem/Specification.html#method-i-add_runtime_dependency) that seems to be the only way – mfaani Dec 23 '20 at 20:40

1 Answers1

-1

Looking at the Gem specification from here the choices are:

add_dependency, add_runtime_dependency, add_development_dependency, add_dependency_with_type

mfaani
  • 33,269
  • 19
  • 164
  • 293