From e4cc5c1dde8897de4aa72d982d75c5aae58a554b Mon Sep 17 00:00:00 2001 From: Arron Mabrey Date: Tue, 18 Oct 2011 17:24:24 -0400 Subject: [PATCH] Fixing: a Gem scoping bug. --- lib/middleman.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/middleman.rb b/lib/middleman.rb index a79e1bc1..da5f49d1 100755 --- a/lib/middleman.rb +++ b/lib/middleman.rb @@ -163,10 +163,10 @@ module Middleman def self.rubygems_latest_specs # If newer Rubygems - if Gem::Specification.respond_to? :latest_specs - Gem::Specification.latest_specs + if ::Gem::Specification.respond_to? :latest_specs + ::Gem::Specification.latest_specs else - Gem.source_index.latest_specs + ::Gem.source_index.latest_specs end end