lib/concourse-resource/rubygems/check.rb in concourse-resource-rubygems-0.1.6 vs lib/concourse-resource/rubygems/check.rb in concourse-resource-rubygems-0.1.7

- old
+ new

@@ -1,18 +1,19 @@ require 'contracts' require 'concourse-fuselage' require 'concourse-resource/rubygems/core' require 'concourse-resource/rubygems/gem_not_found' +require 'gems' module ConcourseResource module RubyGems # Check Step class Check < Fuselage::Check include Core Contract None => ArrayOf[HashOf[String, String]] def versions - Gems + ::Gems .versions(gem) .tap { |response| raise GemNotFound, response if response.is_a? String } .sort_by { |version| version['created_at'] } .map { |version| { 'version' => version.fetch('number') } } rescue GemNotFound => message