---
title: "ruby-magic 0.2.0 Breaking Changes on RubyGems | Since.dev"
description: "What each ruby-magic release removed, renamed or changed: 7 breaking changes in 1 version on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/ruby-magic
last_updated: 2026-12-04
---

# ruby-magic breaking changes

ruby-magic 0.2.0 (March 26, 2015) is its newest release with breaking changes, 7 of them. The first: Ruby 1.8.x support dropped in ruby-magic 0.2.0. Every breaking API change we have recorded in ruby-magic on RubyGems: 7 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.6.0`, released March 14, 2023. [Source repository](https://github.com/kwilczynski/ruby-magic)

Packages on RubyGems run on Ruby. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

## ruby-magic 0.2.0 breaking changes

ruby-magic 0.2.0, released March 26, 2015: 7 breaking changes.

- **Removed**  

Ruby 1.8.x support dropped in ruby-magic 0.2.0 [github.com](https://github.com/kwilczynski/ruby-magic/releases/tag/v0.2.0)
- **Renamed** `Magic.flags_array`  

The flags_array method was renamed to flags_to_a. Code calling flags_array must switch to flags_to_a. [github.com](https://github.com/kwilczynski/ruby-magic/releases/tag/v0.2.0)
- **Behavior changed**  

The File and String core class integration now lives in its own namespace, so code relying on the old location must be updated. [github.com](https://github.com/kwilczynski/ruby-magic/releases/tag/v0.2.0)
- **Behavior changed**  

Behavior now follows the POSIX file utility standard across libmagic versions, which may change results existing code relies on. [github.com](https://github.com/kwilczynski/ruby-magic/releases/tag/v0.2.0)
- **Behavior changed**  

The library no longer catches the generic Magic::Error and always raises on errors from libmagic, so code that relied on silent handling must now handle exceptions. [github.com](https://github.com/kwilczynski/ruby-magic/releases/tag/v0.2.0)
- **Behavior changed** `Magic.version_array`  

version_array is now a singleton method rather than an instance method, so instance calls to it no longer work. [github.com](https://github.com/kwilczynski/ruby-magic/releases/tag/v0.2.0)
- **Behavior changed** `Magic.version_string`  

version_string is now a singleton method rather than an instance method, so instance calls to it no longer work. [github.com](https://github.com/kwilczynski/ruby-magic/releases/tag/v0.2.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
