brew/Library/Homebrew/utils/ruby_sh/ruby_gem_version.rb
Mike McQuaid bc0f5ee62a
Library/Homebrew: move stdin ruby scripts to files under utils.
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`
2024-05-02 10:33:42 +01:00

6 lines
104 B
Ruby

# typed: strict
# frozen_string_literal: true
require "rbconfig"
puts RbConfig::CONFIG["ruby_version"]