Sha256: 8334f8d436ce038ab8005449c4d3ddd245707795f5fb24ed9e3c9883407bd401
Contents?: true
Size: 235 Bytes
Versions: 15
Compression:
Stored size: 235 Bytes
Contents
module Latest class MagLevRetriever def retrieve(maglev) page = Net::HTTP.get(URI(maglev.source)) page.scan(/MagLev-(\d\.\d\.\d)\.tar\.gz/). uniq.flatten.map { |v| RubyVersion.new(v) }.max end end end
Version data entries
15 entries across 15 versions & 1 rubygems