samg/diffy
Easy Diffing in Ruby observed · 2026-08-28
Health v2 · maintenance only
44/100
- Activity 25
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5909
- days_rel: n/a
- days_push: 450
- n_releases_24m: 0
Adoption not part of the score
1307 stars · 104 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Ruby gem that provides a convenient interface for generating diffs between two strings or files. It wraps the battle-tested Unix diff tool and outputs plain text, ANSI-colored, or HTML-formatted diffs.
Use cases
- generate diffs between two strings in ruby
- show file differences with html highlighting
- colorized diff output for terminal
- compare two files in a ruby app
- render inline character-level changes in html
- diff text in tests or code review tools
When to choose
- you need diffs in a Ruby application without implementing LCS yourself
- you want HTML or ANSI-colored diff output out of the box
- you trust Unix diff semantics and want a thin wrapper
When to avoid
- you need a pure-Ruby diff with no external diff binary dependency
- you're on Windows without a diff executable available
- you need word-level or semantic diffs beyond line and inline character highlighting
Facets
library · maturity stable
parser developer-tools developer-tools text-editors files ruby cross-platform cli diff unix-diff html-diff ansi-color ruby-gem
4 sources
- readme: https://github.com/samg/diffy · fetched 2026-08-28 · 4523a25e5d50
- homepage: http://rubygems.org/gems/diffy · fetched 2026-08-29 · 102c1185b21e
- site_page: https://guides.rubygems.org/command-reference · fetched 2026-08-29 · ef62154d6253
- site_page: https://rubygems.org/pages/about · fetched 2026-08-29 · e4248571fa5d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| samg/diffy | main | 44 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem