Sha256: e092333ee47f94ea19dbc8f67c48c2393d874896f850e639aaf320e35a992154

Contents?: true

Size: 549 Bytes

Versions: 15

Compression:

Stored size: 549 Bytes

Contents

module Latest
  class JRuby

    SOURCE = 'http://jruby.org.s3.amazonaws.com/downloads/'
    WEB_SOURCE = 'http://jruby.org/download'
    AVAILABLE_EXTS = ['.tar.gz', '.zip']

    attr_reader :source, :web_source

    def initialize(retriever)
      @retriever = retriever
      @source = WEB_SOURCE
    end

    def version
      @version ||= @retriever.retrieve(self)
    end

    def link(ext = '.tar.gz')
      if AVAILABLE_EXTS.include?(ext)
        SOURCE + '/' + version.to_s + '/jruby-bin-' + version.to_s + ext
      end
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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