# 使用 Homebrew 安装 imessage-ruby

查看 imessage-ruby 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:imessage-ruby
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install imessage-ruby
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:imessage-ruby
- **软件包管理器:** Homebrew
- **版本:** 0.4.0
- **来源摘要:** Command-line tool to send text and attachment in Message.app
- **主页:** <https://github.com/linjunpop/imessage>
- **仓库:** <https://github.com/linjunpop/imessage>
- **最后更新:** 2026-06-06T17:23:03Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- imessage (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.4.0
## 项目历史与用法

imessage-ruby is a small Ruby command-line tool and gem for sending text and attachments through macOS Message.app. Its scope is intentionally narrow: expose Apple's desktop messaging app to shell commands.

### 项目历史

The GitHub repository was created in November 2013, and the RubyGems API records version 0.0.1 on the same day. The changelog describes the initial implementation as sending iMessage, followed by attachment support in 0.1.0 and standalone execution support in 0.2.0.

The project presents itself as the imessage gem, while Homebrew packages it as imessage-ruby to avoid ambiguity with Apple's service name and to make the executable installable through brew.

### 采用历史

Adoption appears modest and Mac-specific, which matches the tool's dependency on Message.app. The README documents installation as either a Homebrew package or a Ruby gem, and RubyGems records tens of thousands of total downloads across the gem's lifetime.

The changelog shows a small maintenance burst in 2015, then later packaging fixes in 2022, including Homebrew installation behavior and gem builds without git installed.

### 使用方式

The CLI accepts text, an optional attachment, and comma-separated contacts. A typical invocation sends a message body to an email address or phone contact and optionally includes a file attachment.

Because it drives Message.app on macOS, it belongs to local automation and developer convenience scripts rather than cross-platform messaging infrastructure.

### 为什么软件包爱好者会关心

imessage-ruby is interesting as a tiny wrapper around a proprietary desktop capability. It is the sort of package that exists because a platform has a useful local automation hook and users want it in cron jobs, shell scripts, or quick developer workflows.

Its Homebrew formula is arguably as important as the gem: brew gives Mac users a one-command install path for a tool whose usefulness is inherently tied to macOS.

### 时间线

- 2013: Version 0.0.1 is published on RubyGems and implements sending iMessage.
- 2014: Version 0.0.2 keeps Ruby 1.9 compatibility.
- 2015: Version 0.1.0 adds attachment sending; 0.2.0 makes standalone execution possible; 0.3.x improves errors and Homebrew installation behavior.
- 2022: Version 0.4.0 fixes gem builds without git installed.

### Related projects

- Message.app on macOS is the platform application the tool automates.
- RubyGems distributes the imessage gem, while Homebrew distributes the imessage-ruby formula.
- Other Mac messaging automation projects, including Python and Rust iMessage tooling, occupy adjacent but usually broader reverse-engineering or API-wrapper territory.

### 来源

- <https://formulae.brew.sh/api/formula/imessage-ruby.json>
- <https://github.com/linjunpop/imessage>
- <https://raw.githubusercontent.com/linjunpop/imessage/master/CHANGELOG.md>
- <https://raw.githubusercontent.com/linjunpop/imessage/master/README.md>
- <https://rubygems.org/api/v1/gems/imessage.json>
- <https://rubygems.org/api/v1/versions/imessage.json>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## Combined YAML source

View the package source record on GitHub. [combined/imessage-ruby.yml](https://github.com/mxcl/pkgdb/blob/main/combined/imessage-ruby.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
