Class: GoScript::Version
- Inherits:
-
Object
- Object
- GoScript::Version
- Defined in:
- lib/go_script/version.rb
Class Method Summary collapse
Class Method Details
.check_ruby_version(min_version) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/go_script/version.rb', line 7 def self.check_ruby_version(min_version) unless RUBY_VERSION >= min_version abort "\n*** ABORTING: Unsupported Ruby version ***\n\nRuby version \#{min_version} or greater is required, but this Ruby is version\n\#{RUBY_VERSION}. Consider using a version manager such as rbenv\n(https://github.com/sstephenson/rbenv) or rvm (https://rvm.io/) to install a\nRuby version specifically for development.\n\n" end end |