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.('../../VERSION', __FILE__)
- VERSION =
File.exist?(VERSION_FILE) ? File.read(VERSION_FILE).chomp : '(could not find VERSION file)'
Class Method Summary collapse
- .jruby ⇒ Object
- .macruby ⇒ Object
- .maglev ⇒ Object
- .rubinius ⇒ Object (also: rbx)
- .ruby18 ⇒ Object
- .ruby19 ⇒ Object
- .ruby20 ⇒ Object
- .ruby21 ⇒ Object (also: ruby)
Class Method Details
.jruby ⇒ Object
42 43 44 |
# File 'lib/latest_ruby.rb', line 42 def jruby Ruby.new(JRuby.new(JRubyRetriever.new)) end |
.macruby ⇒ Object
55 56 57 |
# File 'lib/latest_ruby.rb', line 55 def macruby Ruby.new(MacRuby.new(MacRubyRetriever.new)) end |
.maglev ⇒ Object
51 52 53 |
# File 'lib/latest_ruby.rb', line 51 def maglev Ruby.new(MagLev.new(MagLevRetriever.new)) end |
.rubinius ⇒ Object Also known as: rbx
46 47 48 |
# File 'lib/latest_ruby.rb', line 46 def rubinius Ruby.new(Rubinius.new(RubiniusRetriever.new)) end |
.ruby18 ⇒ Object
38 39 40 |
# File 'lib/latest_ruby.rb', line 38 def ruby18 Ruby.new(MRI.new('1.8', MRIRetriever.new)) end |
.ruby19 ⇒ Object
34 35 36 |
# File 'lib/latest_ruby.rb', line 34 def ruby19 Ruby.new(MRI.new('1.9', MRIRetriever.new)) end |
.ruby20 ⇒ Object
30 31 32 |
# File 'lib/latest_ruby.rb', line 30 def ruby20 Ruby.new(MRI.new('2.0', MRIRetriever.new)) end |
.ruby21 ⇒ Object 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 |