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 <<END_OF_ABORT_MESSAGE
*** ABORTING: Unsupported Ruby version ***
Ruby version #{min_version} or greater is required, but this Ruby is version
#{RUBY_VERSION}. Consider using a version manager such as rbenv
(https://github.com/sstephenson/rbenv) or rvm (https://rvm.io/) to install a
Ruby version specifically for development.
END_OF_ABORT_MESSAGE
end
end
|