Automic VaultAutomic Vault

brew

chruby を Homebrew, MacPorts, Nix でインストール

chruby のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install chruby

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install chruby

MacPorts ports tree · ruby/chruby/Portfile · ソース: api.github.com

概要

パッケージ概要

Ruby environment tool

コマンドとエイリアス

  • chruby-exec

履歴

プロジェクトの歴史と使われ方

chruby is a minimal shell-based Ruby version switcher that changes the active Ruby by updating shell environment variables instead of using shims.

プロジェクトの歴史

The GitHub repository was created in August 2012 and early tags begin with v0.0.1 on the same date. The README highlights a deliberately small design: update PATH and RubyGems environment variables, support bash and zsh, default to system Ruby, and keep the implementation around 100 lines.

chruby's README frames its design through anti-features: it does not hook cd by default, does not install executable shims, does not regenerate shims after gem installation, and does not require Rubies to live in the user's home directory.

採用の歴史

The official README documents Homebrew installation, source installation, Arch AUR, Fedora Copr, FreeBSD ports, and pairing with ruby-install or ruby-build. The supplied package facts also show Homebrew, MacPorts, and Nix packaging.

使われ方

Users source chruby.sh from shell startup files and optionally source auto.sh to switch versions by reading .ruby-version files in the current or parent directories. Non-standard Ruby install directories can be appended to the RUBIES shell array.

パッケージ好きにとっての重要性

chruby matters because it is the small-tool answer to heavier Ruby version managers. It plays well with package managers because it separates installing Ruby builds from selecting one in the shell, which keeps version switching inspectable and avoids shim directories.

タイムライン

  • 2012: Repository created and v0.0.1 tag published.
  • 2012: v0.1.x releases established the shell-based switcher.
  • 2013: v0.3.x line matured around auto-switching and compatibility.
  • 2023: v0.3.9 released.
  • 2025: Repository metadata shows continued maintenance activity.

Related projects

  • Related projects include ruby-install, ruby-build, RVM, rbenv, rbfu, RubyGems, Bundler, JRuby, Rubinius, and MagLev.

セキュリティ状態

リスクレベル: グリーン

narrow executable package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 1 個のプラットフォームターゲットで利用できます。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
~/.bashrc~/.zshrc/etc/bashrc/etc/profile.d/chruby.sh~/.bash_profile~/.zprofile.ruby-version~/.ruby-version

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
chruby-execcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-25
マネージャ版0.3.9
マネージャ更新日
ローカルデータOK
上流not checked
検出された最新未検出

https://github.com/postmodern/chruby

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:chruby
バージョン0.3.9
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/chruby
ホームページhttps://github.com/postmodern/chruby
リポジトリhttps://github.com/postmodern/chruby
上流ドキュメントhttps://github.com/postmodern/chruby#readme
ライセンスMIT
ソースアーカイブhttps://github.com/postmodern/chruby/releases/download/v0.3.9/chruby-0.3.9.tar.gz
Bottle利用可能 (対象 all)
Homebrew post-install未定義
サービス宣言なし
注意点Add the following to the ~/.bash_profile or ~/.zshrc file: source $HOMEBREW_PREFIX/opt/chruby/share/chruby/chruby.sh To enable auto-switching of Rubies specified by .ruby-version files, add the following to ~/.bash_profile or ~/.zshrc: source $HOMEBREW_PREFIX/opt/chruby/share/chruby/auto.sh

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namechruby
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Nix95%

chruby

nix profile install nixpkgs#chruby
  • normalized package name match
  • 一致条件: Chruby
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: chruby from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
MacPorts95%

chruby

sudo port install chruby
  • normalized package name match
  • 一致条件: Chruby
MacPorts ports tree · api.github.com · MacPorts ports tree: ruby/chruby/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment