development dependency on jeweler?

11 views
Skip to first unread message

rogerdpack

unread,
Dec 22, 2009, 10:29:27 AM12/22/09
to jeweler.rb
Is it expected that gemspec's default not include jeweler?


Jeweler::Tasks.new do |gem|
gem.name = "gem_conflict_plugin"
gem.summary = %Q{TODO: one-line summary of your gem}
gem.description = %Q{TODO: longer description of your gem}
gem.email = "rogerp...@gmail.com"
gem.homepage = "http://github.com/rdp/gem_conflict_plugin"
gem.authors = ["rdp"]
gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20
for additional settings
end

(not mention of gem.add_development_dependency 'jeweler')

Just wondering.
Thanks.
-r

Josh Nichols

unread,
Dec 22, 2009, 11:07:01 AM12/22/09
to jewel...@googlegroups.com
Yeah, it's kinda expected. The default way of handling that is that the Jeweler::Tasks is in a begin/rescue block that informs you to gem install it.

Also, development dependencies are typically used by gem when you try to gem install --test some-gem. That invokes the tests directly, so unless you're using jeweler in your tests, it isn't really a development dependency in that sense.

- Josh
Reply all
Reply to author
Forward
0 new messages