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



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

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

.macrubyObject



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

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

.maglevObject



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

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

.rubiniusObject Also known as: rbx



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

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

.ruby18Object



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

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

.ruby19Object



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

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

.ruby20Object



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

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

.ruby21Object



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

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

.ruby22Object



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

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

.ruby23Object



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

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

.ruby24Object



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

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

.ruby25Object Also known as: ruby



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

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