Sha256: 4f1fe6df1cbc0a59eb6ebd9a6c21db9e8aa55c3c0674207b2ea90a3415863c5d
Contents?: true
Size: 901 Bytes
Versions: 5
Compression:
Stored size: 901 Bytes
Contents
# frozen_string_literal: true require 'rbconfig' class Shoes module SelectedBackend class << self def validate if RUBY_ENGINE != "jruby" puts <<-EOS ******************************************************************************* The shoes-swt backend requires a 9.X version of JRuby. You are running the following Ruby instead: #{RUBY_DESCRIPTION} Please download JRuby from http://jruby.org (or your favorite Ruby version manager), then check our https://github.com/shoes/shoes4#installing-shoes-4 to get Shoes installed. Sorry for the inconvenience! ******************************************************************************* EOS exit 1 end end def generate(path) options = "-J-XstartOnFirstThread" if RbConfig::CONFIG["host_os"] =~ /darwin/ "jruby #{options} #{path}/shoes-swt" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems