I think you have it backwards. Bundler only works because every library has a gemspec. Bundler (and Gemfiles) are for _applications_ to declare their dependencies. Gemspecs are for _libraries_ to declare their dependencies.
Since Bundler is built on top of gemspecs, it is not possible to deprecate gemspecs and continue using Bundler.
— Andre
I think he meant something like, "When can we, as library developers,
use the nice, clean Gemfile format, with all its varied options, to
declare gem dependencies, instead of the clunky old gemspec format
which just allows two lists of gem dependencies and is redundant with
the Gemfile?"
And the answer to that is, you can't, but you can go the other
direction: there's a "gemspec" directive that you can put inside your
Gemfile that sucks in dependencies from the .gemspec file and puts
them in the :default and :development groups.
http://gembundler.com/man/gemfile.5.html#GEMSPEC-gemspec-
I agree with the OP that it would be nice if we could go the other
direction, and just use the Gemfile to declare all dependencies,
possibly with a command that would build or rebuild a .gemspec file
based on the Gemfile's default and development groups. I might even be
tempted to build that command if enough people think it's a good idea.
--
Alex Chaffee - al...@stinky.com - http://alexch.github.com
Stalk me: http://friendfeed.com/alexch | http://twitter.com/alexch |
http://alexch.tumblr.com