Skip to content

Instantly share code, notes, and snippets.

@halorgium
Created February 5, 2010 03:36
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save halorgium/791f92b770205495411a to your computer and use it in GitHub Desktop.
GEMDIR=/root/.gem
dumpgemmd5s () {
find $GEMDIR -type f -exec openssl md5 {} \; > $HOME/log.$1
}
rm -fr $GEMDIR
gem install twitter4r --no-rdoc --no-ri -v 0.3.2 -V
dumpgemmd5s 1
gem uninstall twitter4r -aIx
dumpgemmd5s 2
gem install twitter4r --no-rdoc --no-ri -v 0.3.2 -V
dumpgemmd5s 3
ruby <<EOT
require 'rubygems'
require 'pp'
specs = Marshal.load(File.read("${GEMDIR}/specs/gems.rubyforge.org%80/specs.4.8"))
matches = specs.select {|x| x.first == "twitter4r"}
pp matches
EOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment