Skip to content
This repository has been archived by the owner on Sep 29, 2020. It is now read-only.

Commit

Permalink
Remove SAFE constraint.
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Rozet <simon@rozet.name>
  • Loading branch information
defunkt authored and sr committed Jan 22, 2010
1 parent cc3d6cc commit a6ef1e7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/mg.rb
Expand Up @@ -19,14 +19,10 @@ def group
spec.rubyforge_project
end

# Load the gemspec using the same limitations as github
def spec
@spec ||= begin
require "rubygems/specification"
data = File.read(gemspec)
spec = nil
Thread.new { spec = eval("$SAFE = 3\n#{data}") }.join
spec
eval File.read(gemspec)
end
end

Expand Down

0 comments on commit a6ef1e7

Please sign in to comment.