Sha256: 0efd175a13dbc24320b62336d30de18c76b753778e26a12daf34592c704cd60a

Contents?: true

Size: 227 Bytes

Versions: 15

Compression:

Stored size: 227 Bytes

Contents

module Latest
  class MacRubyRetriever

    def retrieve(macruby)
      page = Net::HTTP.get(URI(macruby.source))
      page.scan(/MacRuby (.+)\.zip/).
        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/macruby_retriever.rb
latest_ruby-3.2.0 lib/latest_ruby/retrievers/macruby_retriever.rb
latest_ruby-3.1.0 lib/latest_ruby/retrievers/macruby_retriever.rb
latest_ruby-3.0.2 lib/latest_ruby/retrievers/macruby_retriever.rb
latest_ruby-3.0.1 lib/latest_ruby/retrievers/macruby_retriever.rb
latest_ruby-3.0.0 lib/latest_ruby/retrievers/macruby_retriever.rb
latest_ruby-2.0.0 lib/latest_ruby/retrievers/macruby_retriever.rb
latest_ruby-1.0.0 lib/latest_ruby/retrievers/macruby_retriever.rb
latest_ruby-0.0.7 lib/latest_ruby/retrievers/macruby_retriever.rb
latest_ruby-0.0.6 lib/latest_ruby/retrievers/macruby_retriever.rb
latest_ruby-0.0.5 lib/latest_ruby/retrievers/macruby_retriever.rb
latest_ruby-0.0.4 lib/latest_ruby/retrievers/macruby_retriever.rb
latest_ruby-0.0.3 lib/latest_ruby/retrievers/macruby_retriever.rb
latest_ruby-0.0.2 lib/latest_ruby/retrievers/macruby_retriever.rb
latest_ruby-0.0.1 lib/latest_ruby/retrievers/macruby_retriever.rb