Method: Jets::Builders::CodeBuilder#check_ruby_version

Defined in:
lib/jets/builders/code_builder.rb

#check_ruby_versionObject



365
366
367
368
369
370
371
# File 'lib/jets/builders/code_builder.rb', line 365

def check_ruby_version
  unless ruby_version_supported?
    puts "You are using Ruby version #{RUBY_VERSION} which is not supported by Jets."
    ruby_variant = Jets::RUBY_VERSION.split('.')[0..1].join('.') + '.x'
    abort("Jets uses Ruby #{Jets::RUBY_VERSION}.  You should use a variant of Ruby #{ruby_variant}".color(:red))
  end
end