Top Level Namespace
Defined Under Namespace
Modules: Getargv
Instance Method Summary collapse
Instance Method Details
#darwin_check ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'ext/getargv_ruby/extconf.rb', line 5 def darwin_check require "pathname" src = RbConfig::CONFIG["srcdir"] || __dir__ require_relative Pathname.new("#{src}/../../lib/getargv_ruby/version.rb").realpath.to_s abort <<EOF unless RUBY_PLATFORM.include?("darwin") getargv can only work on macOS, fix your Gemfile like this: gem "getargv", "~> #{Getargv::VERSION}", platforms: :ruby, install_if: RbConfig::CONFIG["host_os"].include?("darwin") EOF end |