Sha256: b1af7b1652319bc836c7cbb242751d3483912d17a79212aa2d1dd81904604bf6

Contents?: true

Size: 454 Bytes

Versions: 15

Compression:

Stored size: 454 Bytes

Contents

module Latest
  class MagLev

    SOURCE = 'http://glass-downloads.gemstone.com/maglev/'
    AVAILABLE_EXTS = ['.tar.gz']

    attr_reader :source

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

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

    def link(ext = '.tar.gz')
      if AVAILABLE_EXTS.include?(ext)
        source + 'MagLev-' + 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/maglev.rb
latest_ruby-3.2.0 lib/latest_ruby/rubies/maglev.rb
latest_ruby-3.1.0 lib/latest_ruby/rubies/maglev.rb
latest_ruby-3.0.2 lib/latest_ruby/rubies/maglev.rb
latest_ruby-3.0.1 lib/latest_ruby/rubies/maglev.rb
latest_ruby-3.0.0 lib/latest_ruby/rubies/maglev.rb
latest_ruby-2.0.0 lib/latest_ruby/rubies/maglev.rb
latest_ruby-1.0.0 lib/latest_ruby/rubies/maglev.rb
latest_ruby-0.0.7 lib/latest_ruby/rubies/maglev.rb
latest_ruby-0.0.6 lib/latest_ruby/rubies/maglev.rb
latest_ruby-0.0.5 lib/latest_ruby/rubies/maglev.rb
latest_ruby-0.0.4 lib/latest_ruby/rubies/maglev.rb
latest_ruby-0.0.3 lib/latest_ruby/rubies/maglev.rb
latest_ruby-0.0.2 lib/latest_ruby/rubies/maglev.rb
latest_ruby-0.0.1 lib/latest_ruby/rubies/maglev.rb