Skip to content

Instantly share code, notes, and snippets.

@monde
Created September 24, 2008 18:35
Show Gist options
  • Save monde/12630 to your computer and use it in GitHub Desktop.
Save monde/12630 to your computer and use it in GitHub Desktop.
# this file resides in dev_tools/github.rb of mms2r's project
# based on Trouble shooting section in http://gems.github.com/
require 'rubygems'
require 'rubygems/specification'
data = File.read(File.join(File.dirname(__FILE__), "..", "mms2r.gemspec"))
spec = nil
result = Thread.new { spec = eval("$SAFE = 3\n#{data}") }.join
puts spec
(!!result) ? exit(0) : exit(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment