Sha256: b2ef601d2ad111fd0b4c0b38ebca51386c699acab1146d152d4dfa09bc98d6d0

Contents?: true

Size: 228 Bytes

Versions: 11

Compression:

Stored size: 228 Bytes

Contents

module Latest
  class JRubyRetriever

    def retrieve(jruby)
      page = Net::HTTP.get(URI(jruby.source))
      ver  = page.scan(/Current Release: JRuby (.+)<\/h2>/).flatten.first
      RubyVersion.new(ver)
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
latest_ruby-3.3.0 lib/latest_ruby/retrievers/jruby_retriever.rb
latest_ruby-3.2.0 lib/latest_ruby/retrievers/jruby_retriever.rb
latest_ruby-3.1.0 lib/latest_ruby/retrievers/jruby_retriever.rb
latest_ruby-3.0.2 lib/latest_ruby/retrievers/jruby_retriever.rb
latest_ruby-3.0.1 lib/latest_ruby/retrievers/jruby_retriever.rb
latest_ruby-3.0.0 lib/latest_ruby/retrievers/jruby_retriever.rb
latest_ruby-2.0.0 lib/latest_ruby/retrievers/jruby_retriever.rb
latest_ruby-1.0.0 lib/latest_ruby/retrievers/jruby_retriever.rb
latest_ruby-0.0.7 lib/latest_ruby/retrievers/jruby_retriever.rb
latest_ruby-0.0.6 lib/latest_ruby/retrievers/jruby_retriever.rb
latest_ruby-0.0.5 lib/latest_ruby/retrievers/jruby_retriever.rb