module Middleman

def rubygems_latest_specs

Returns:
  • (Array) - Array of latest Gem::Specification

Other tags:
    Private: -
def rubygems_latest_specs
  # If newer Rubygems
  if ::Gem::Specification.respond_to? :latest_specs
    ::Gem::Specification.latest_specs
  else
    ::Gem.source_index.latest_specs
  end
end