Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between add_dependency and add_runtime_dependency?

What is the difference between using add_dependency and add_runtime_dependency in a Rails engine's gemspec?

For example:

Gem::Specification.new do |s|   s.add_dependency 'jquery-rails'   s.add_runtime_dependency 'jquery-rails' end 

What's the difference between them?

like image 870
Jacob Avatar asked Jun 20 '14 18:06

Jacob


1 Answers

They are the same. add_dependency is just an alias for add_runtime_dependency.

like image 60
O-I Avatar answered Sep 23 '22 17:09

O-I