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
.jruby ⇒ Object
46
47
48
|
# File 'lib/latest_ruby.rb', line 46
def jruby
Ruby.new(JRuby.new(JRubyRetriever.new))
end
|
.macruby ⇒ Object
59
60
61
|
# File 'lib/latest_ruby.rb', line 59
def macruby
Ruby.new(MacRuby.new(MacRubyRetriever.new))
end
|
.maglev ⇒ Object
55
56
57
|
# File 'lib/latest_ruby.rb', line 55
def maglev
Ruby.new(MagLev.new(MagLevRetriever.new))
end
|
.rubinius ⇒ Object
Also known as:
rbx
50
51
52
|
# File 'lib/latest_ruby.rb', line 50
def rubinius
Ruby.new(Rubinius.new(RubiniusRetriever.new))
end
|
.ruby18 ⇒ Object
42
43
44
|
# File 'lib/latest_ruby.rb', line 42
def ruby18
Ruby.new(MRI.new('1.8', MRIRetriever.new))
end
|
.ruby19 ⇒ Object
38
39
40
|
# File 'lib/latest_ruby.rb', line 38
def ruby19
Ruby.new(MRI.new('1.9', MRIRetriever.new))
end
|
.ruby20 ⇒ Object
34
35
36
|
# File 'lib/latest_ruby.rb', line 34
def ruby20
Ruby.new(MRI.new('2.0', MRIRetriever.new))
end
|
.ruby21 ⇒ Object
30
31
32
|
# File 'lib/latest_ruby.rb', line 30
def ruby21
Ruby.new(MRI.new('2.1', MRIRetriever.new))
end
|
.ruby22 ⇒ Object
Also known as:
ruby
23
24
25
|
# File 'lib/latest_ruby.rb', line 23
def ruby22
Ruby.new(MRI.new('2.2', MRIRetriever.new))
end
|