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? 回答1: They are the same. add_dependency is just an alias for add_runtime_dependency . 来源: https://stackoverflow.com/questions/24333152/difference-between-add-dependency-and-add-runtime-dependency