Module: Latest

Defined in:
lib/latest_ruby.rb,
lib/latest_ruby/ruby.rb,
lib/latest_ruby/rubies/mri.rb,
lib/latest_ruby/rubies/jruby.rb,
lib/latest_ruby/ruby_version.rb,
lib/latest_ruby/rubies/maglev.rb,
lib/latest_ruby/rubies/macruby.rb,
lib/latest_ruby/rubies/rubinius.rb,
lib/latest_ruby/retrievers/mri_retriever.rb,
lib/latest_ruby/retrievers/jruby_retriever.rb,
lib/latest_ruby/retrievers/maglev_retriever.rb,
lib/latest_ruby/retrievers/macruby_retriever.rb,
lib/latest_ruby/retrievers/rubinius_retriever.rb

Defined Under Namespace

Classes: JRuby, JRubyRetriever, MRI, MRIRetriever, MacRuby, MacRubyRetriever, MagLev, MagLevRetriever, Rubinius, RubiniusRetriever, Ruby, RubyVersion

Constant Summary collapse

VERSION_FILE =

The VERSION file must be in the root directory of the library.

File.expand_path('../../VERSION', __FILE__)
VERSION =
File.exist?(VERSION_FILE) ?
File.read(VERSION_FILE).chomp : '(could not find VERSION file)'

Class Method Summary collapse

Class Method Details

.jrubyObject



42
43
44
# File 'lib/latest_ruby.rb', line 42

def jruby
  Ruby.new(JRuby.new(JRubyRetriever.new))
end

.macrubyObject



55
56
57
# File 'lib/latest_ruby.rb', line 55

def macruby
  Ruby.new(MacRuby.new(MacRubyRetriever.new))
end

.maglevObject



51
52
53
# File 'lib/latest_ruby.rb', line 51

def maglev
  Ruby.new(MagLev.new(MagLevRetriever.new))
end

.rubiniusObject Also known as: rbx



46
47
48
# File 'lib/latest_ruby.rb', line 46

def rubinius
  Ruby.new(Rubinius.new(RubiniusRetriever.new))
end

.ruby18Object



38
39
40
# File 'lib/latest_ruby.rb', line 38

def ruby18
  Ruby.new(MRI.new('1.8', MRIRetriever.new))
end

.ruby19Object



34
35
36
# File 'lib/latest_ruby.rb', line 34

def ruby19
  Ruby.new(MRI.new('1.9', MRIRetriever.new))
end

.ruby20Object



30
31
32
# File 'lib/latest_ruby.rb', line 30

def ruby20
  Ruby.new(MRI.new('2.0', MRIRetriever.new))
end

.ruby21Object Also known as: ruby



23
24
25
# File 'lib/latest_ruby.rb', line 23

def ruby21
  Ruby.new(MRI.new('2.1', MRIRetriever.new))
end