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

Version Path
latest_ruby-3.3.0 lib/latest_ruby/retrievers/maglev_retriever.rb
latest_ruby-3.2.0 lib/latest_ruby/retrievers/maglev_retriever.rb
latest_ruby-3.1.0 lib/latest_ruby/retrievers/maglev_retriever.rb
latest_ruby-3.0.2 lib/latest_ruby/retrievers/maglev_retriever.rb
latest_ruby-3.0.1 lib/latest_ruby/retrievers/maglev_retriever.rb
latest_ruby-3.0.0 lib/latest_ruby/retrievers/maglev_retriever.rb
latest_ruby-2.0.0 lib/latest_ruby/retrievers/maglev_retriever.rb
latest_ruby-1.0.0 lib/latest_ruby/retrievers/maglev_retriever.rb
latest_ruby-0.0.7 lib/latest_ruby/retrievers/maglev_retriever.rb
latest_ruby-0.0.6 lib/latest_ruby/retrievers/maglev_retriever.rb
latest_ruby-0.0.5 lib/latest_ruby/retrievers/maglev_retriever.rb
latest_ruby-0.0.4 lib/latest_ruby/retrievers/maglev_retriever.rb
latest_ruby-0.0.3 lib/latest_ruby/retrievers/maglev_retriever.rb
latest_ruby-0.0.2 lib/latest_ruby/retrievers/maglev_retriever.rb
latest_ruby-0.0.1 lib/latest_ruby/retrievers/maglev_retriever.rb