Permalink
Browse files

instantiate specer

  • Loading branch information...
1 parent 282acf4 commit c4e937df2792574723bb435ef5404dc371998955 spox committed Nov 20, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/allgems/App.rb
View
4 lib/allgems/App.rb
@@ -1,7 +1,6 @@
require 'sinatra'
require 'allgems/ViewHelpers'
require 'allgems/Specer'
-require 'rubygems/specification'
module AllGems
@@ -15,6 +14,7 @@ class App < ::Sinatra::Default
before do
@environment = options.environment
+ @specer = AllGems::Specer.new
end
get '/stylesheets/:stylesheet.css' do
@@ -122,7 +122,7 @@ def versions_dataset
def load_gem_spec(gem, version=nil)
version ||= get_latest(gem)
raise 'failed gem' unless version
- Specer.get_spec(gem, version)
+ @specer.get_spec(gem, version)
end
# gem:: name of the gem

0 comments on commit c4e937d

Please sign in to comment.