I am working on a new Ruby Gem. I am familiar with using the Bundler to manage gems:
source "https://rubygems.org"
gemspec
gem 'rspec-rails'
I am familiar with defining dependencies in the gemspec file:
Gem::Specification.new do |s|
s.add_dependency "rails", "~> 4.1.5"
end
The created Gemfile mentions that I should move the dependency declarations from my Gemfile to my gemspec when I am ready for release.
Why do I want to do this? Why does my gemspec care about which gems I use in development? What purpose development_dependencydoes what the Bundler no longer does for me?
source
share