Skip to content

Instantly share code, notes, and snippets.

@duien
duien / sl_gems_update.rb
Created February 8, 2010 22:21 — forked from coty/sl_gems_update.rb
List gems needing to be recompiled
#!/usr/bin/env ruby
require 'rubygems'
require 'set'
puts "looking for the gems to upgrade..."
gem_info = Struct.new(:name, :version)
to_reinstall = Set.new
Dir.glob("#{Gem.dir}/**/*.bundle").map do |path|
path =~ /.*1.8\/gems\/(.*)-(.*?)\/.*/
name, version = $1, $2