Merge pull request #138 from arronmabrey/fix/gem-scoping-issue

Fixing: a Gem scoping bug.
This commit is contained in:
Thomas Reynolds 2011-10-18 15:40:53 -07:00
commit 7d6386fdc0

View file

@ -163,10 +163,10 @@ module Middleman
def self.rubygems_latest_specs def self.rubygems_latest_specs
# If newer Rubygems # If newer Rubygems
if Gem::Specification.respond_to? :latest_specs if ::Gem::Specification.respond_to? :latest_specs
Gem::Specification.latest_specs ::Gem::Specification.latest_specs
else else
Gem.source_index.latest_specs ::Gem.source_index.latest_specs
end end
end end