Sha256: 25530d5933c61de01583903db1d82aef56abe7c5759e176e7e349fa2accb6f6d
Contents?: true
Size: 701 Bytes
Versions: 316
Compression:
Stored size: 701 Bytes
Contents
#! /usr/bin/env ruby # frozen_string_literal: true # because rubygems shims assume a gem's executables are Ruby require "ariadne/view_components/commands" begin command = [Ariadne::ViewComponents::Commands.executable, *ARGV] puts command.inspect if Gem.win_platform? # use system rather than exec as exec inexplicably fails to find the executable on Windows # see related https://github.com/rubys/sprockets-esbuild/pull/4 system(*command, exception: true) else exec(*command) end rescue Ariadne::ViewComponents::Commands::UnsupportedPlatformException, Ariadne::ViewComponents::Commands::ExecutableNotFoundException => e $stderr.puts("ERROR: " + e.message) exit(1) end
Version data entries
316 entries across 316 versions & 1 rubygems