mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00

This avoids can avoid UID/EUID related issues with Ruby scripts passed over `stdin` clashing with Ruby security features. It's also just a bit nicer to have Ruby scripts in files instead. While we're here: - refactor some shared logic into a new `setup-gem-home-bundle-gemfile` function in `ruby.sh` - do some general cleanup of `lock.sh` - prioritise `flock` over `python` in `lock.sh`
6 lines
104 B
Ruby
6 lines
104 B
Ruby
# typed: strict
|
|
# frozen_string_literal: true
|
|
|
|
require "rbconfig"
|
|
puts RbConfig::CONFIG["ruby_version"]
|