Stuff about software development, agile and testing

Tuesday, November 27, 2007

inpsect gem file

Playing around with RubyGems source code. So first thing I wanted to know is the gemspec.

Here is a small script to inspect any gem file

require 'yaml'
require 'rubygems/source_info_cache'

spec ='#{gem}')
p spec.to_yaml

You could also use Gem::SourceIndex to spec out locally installed gems