gemspecs

What's the best way to do Ruby gemspec creation and dependency management?

Over the last few months, there have been a number of rapid developments in the state of Ruby dependency management and gem creation, to the point where I've been having trouble keeping up with everything. If I'm writing a new gem, what's the best tool for me to use to create my gemspec? Are there disadvantages of using this tool over ...

How do I get the version from a gemspec file?

Is there a clean way to extract the version string from a .gemspec file? (The gem is not yet installed) e.g. somethingcool.gemspec is Gem::Specification.new do |s| s.name = "somethingcool" s.version = "1.2.3" ... etc ... end I want to extract "1.2.3". I could grep it out but there must be a better way. ...

Questions about building a new gem using Wycats template

I'm writing a new gem I'm basing off of Yehuda's new gem template and I'm slightly confused. Having a Gemfile with dependencies, and also specifying a gemspec with dependencies seems redundant to me. Can someone explain why this is desirable and if it's truly necessary? Note, this is the first gem I've ever written so I'm new to all o...

What's the easiest way to maintain a patched set of rails gems, with bundler?

We're transitioning from 'frozen' rails gems to using bundler and would like to maintain the rails gems with patches, merges etc. say from an external git source. What's the easiest way to set this up, adding gemspecs to the patch branches etc.? ...