Overview:
I've been watching Ben Smith's work on hacking with gems and was wondering if there's any kind of 'preview' command implemented somewhere or n the plans. Otherwise, I might look into writing one.
Background:
Yes, there's gem fetch and gem unpack and specification, and there's some gem open command extensions, but it seems it would be great for there to be a kind of 'preview the gem before installation',
Details:
, kind of like how rvm says 'hey, this .rvmrc is executable. take a look before trusting it'. Then there could be flags for various kinds of verification, cert, pgp, checksum, comparing the a tag on a repo, including viewing the yaml metadata before parsing. It would also be great to preview a gem's dependencies, recursively, fully-resolved.
Relevant commands?
cert Manage RubyGems certificates and signing settings
contents Display the contents of the installed gems
dependency Show the dependencies of an installed gem
fetch Download a gem and place it in the current directory
query Query gem information in local or remote repositories
specification Display gem specification (in yaml)
unpack Unpack an installed gem to the current directory
gem install
-P, --trust-policy POLICY Specify gem trust policy
--ignore-dependencies Do not install any required dependent gems
-- need a flag to stop before compiling extensions to review code
or external tools? fseventer, little snitch, whatever
Ben Smith talk links:
http://confreaks.com/videos/1243-aloharuby2012-hacking-with-gems /
http://www.youtube.com/watch?v=z-5bO0Q1J9s
-Benjamin