Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

simplify gemspec loading to workaround warnings under 1.9

  • Loading branch information...
commit 432952dcc9dacb10f7ffed0f0b9bd4f117d5245f 1 parent 7196fa8
@rtomayko rtomayko authored
Showing with 1 addition and 8 deletions.
  1. +1 −8 Rakefile
View
9 Rakefile
@@ -35,14 +35,7 @@ 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
+ @spec ||= eval(File.read('sinatra.gemspec'))
end
def package(ext='')
Please sign in to comment.
Something went wrong with that request. Please try again.