Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

memoize

  • Loading branch information...
commit 304927ed73e95e91ad1efda970f22d118b8ba21e 1 parent 9724907
@jnewland authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/rack_rubygems.rb
View
1  lib/rack_rubygems.rb
@@ -82,6 +82,7 @@ class RackRubygems < Sinatra::Base
end
def source_index
+ return @source_index if @source_index
@gem_dir = Gem.dir
@spec_dir = File.join @gem_dir, 'specifications'
@source_index = Gem::SourceIndex.from_gems_in @spec_dir
Please sign in to comment.
Something went wrong with that request. Please try again.