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
On this page
Latest version 0.6.0, released March 14, 2023. Source repository
Packages on RubyGems run on Ruby. Ruby end of life dates.
ruby-magic 0.2.0 breaking changes
- Removed
Ruby 1.8.x support dropped in ruby-magic 0.2.0 github.com - 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 - 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 - Behavior changed
Behavior now follows the POSIX file utility standard across libmagic versions, which may change results existing code relies on. github.com - 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 - 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 - 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
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.