Package · RubyGems

ancestry

RubyGems · v5.1.0 · MIT

Ancestry allows the records of a ActiveRecord model to be organized in a tree structure, using the materialized path pattern. It exposes the standard relations (ancestors, parent, root, children, siblings, descendants) and allows them to be fetched in a single query. Additional features include named scopes, integrity checking, integrity restoration, arrangement of (sub)tree into hashes and different strategies for dealing with orphaned records.

Tentative categories were assigned with moderate confidence (0.5 to 0.75): they are shown, but they do not count toward a category’s momentum. How categories work

Install

gem install ancestry

Adoption

All-time downloads
40.2M
Observeddownloads, all time
Popularity
Top 50% on RubyGems
Derived60th percentile within RubyGems
Dependents
77
Observedpackages that depend on it
Maintenance
0.34
DerivedRelease cadence and recency, 0 to 1
Releases per year
2.3
38 versions over its life

Growth by period

Derived by Crest of Tech from two observations of RubyGems’s own figure, a period apart. Nothing is stored or estimated: without an observation near the period’s start, the period is still collecting.

7 days
Collectinghistory
Collecting
30 days
Collectinghistory
Collecting
90 days
Collectinghistory
Collecting
1 year
Collectinghistory
Collecting

Adoption history

Adoption historydownloads, all time

Observations in this range began OCT 6, 2026. The chart appears after 7 observations; 2 so far. Collecting history.

Table of observations (2)
Daydownloads, all timeDependents
OCT 24, 202640,237,47777
OCT 6, 202639,553,846Not observed

Facts from the registry

Latest version
v5.1.0
38 versions
First published
OCT 16, 2009
Last release
MAR 8, 2026
8mo ago
Licence
MIT

Repository

In the Crest catalog

stefankroes/ancestry

Organise ActiveRecord model into a tree structure

Stars
3.9K
Forks
473
Language
Ruby
Last push
4mo ago
Last release
None recorded

Linked by the package’s own registry metadata.GitHub (opens in a new tab)

Dependencies latest version · v5.1.0

Runtime 2

  • activerecord>= 5.2.6
  • logger>= 0

Related news

No published news event mentions this package or its repository yet.