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



67
68
69
# File 'lib/latest_ruby.rb', line 67

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

.macrubyObject



80
81
82
# File 'lib/latest_ruby.rb', line 80

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

.maglevObject



76
77
78
# File 'lib/latest_ruby.rb', line 76

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

.rubiniusObject Also known as: rbx



71
72
73
# File 'lib/latest_ruby.rb', line 71

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

.ruby18Object



63
64
65
# File 'lib/latest_ruby.rb', line 63

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

.ruby19Object



59
60
61
# File 'lib/latest_ruby.rb', line 59

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

.ruby20Object



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

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

.ruby21Object



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

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

.ruby22Object



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

def ruby22
  Ruby.new(MRI.new('2.2', MRIRetriever.new))
end

.ruby23Object



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

def ruby23
  Ruby.new(MRI.new('2.3', MRIRetriever.new))
end

.ruby24Object



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

def ruby24
  Ruby.new(MRI.new('2.4', MRIRetriever.new))
end

.ruby25Object



32
33
34
# File 'lib/latest_ruby.rb', line 32

def ruby25
  Ruby.new(MRI.new('2.5', MRIRetriever.new))
end

.ruby26Object



28
29
30
# File 'lib/latest_ruby.rb', line 28

def ruby26
  Ruby.new(MRI.new('2.6', MRIRetriever.new))
end

.ruby27Object Also known as: ruby



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

def ruby27
  Ruby.new(MRI.new('2.7', MRIRetriever.new))
end