Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

simplify gemspec loading, fix spec warnings under 1.9

  • Loading branch information...
commit 466cc74b8f393f98de227122c78ed55cb745cbc6 1 parent 9b82444
@rtomayko rtomayko authored
Showing with 2 additions and 8 deletions.
  1. +2 −8 Rakefile
View
10 Rakefile
@@ -16,14 +16,8 @@ end
# Load the gemspec using the same limitations as github
def spec
- @spec ||=
- begin
- require 'rubygems/specification'
- data = File.read('sinatra.gemspec')
- spec = nil
- Thread.new { spec = eval("$SAFE = 3\n#{data}") }.join
- spec
- end
+ require 'rubygems' unless defined? Gem::Specification
+ @spec ||= eval(File.read('sinatra.gemspec'))
end
def package(ext='')
Please sign in to comment.
Something went wrong with that request. Please try again.