A summary of data about the Ruby ecosystem.

https://github.com/activerecord-hackery/ransack

Object-based searching.
https://github.com/activerecord-hackery/ransack

Keywords

activerecord rails ruby ruby-gem ruby-library ruby-on-rails search search-interface sql

Keywords from Contributors

activejob mvc rubygems rubocop rspec static-code-analysis code-formatter rack devise crash-reporting

Last synced: about 6 hours ago
JSON representation

Repository metadata

Object-based searching.

README.md

Ransack

Build Status
Gem Version
Code Climate
Backers on Open Collective Sponsors on Open Collective

Introduction

Ransack will help you easily add searching to your Rails application, without any additional dependencies.

There are advanced searching solutions around, like ElasticSearch or Algolia. Ransack will do the job for many Rails websites, without the need to run additional infrastructure or work in a different language. With Ransack you do it all with standard Ruby and ERB.

Ready to move beyond the basics? Use advanced features like i18n and extensive configuration options.

Ransack is supported for Rails 8.0, 7.2 on Ruby 3.1 and later.

Installation

To install ransack and add it to your Gemfile, run

gem 'ransack'

Bleeding edge

If you would like to use the latest updates not yet published to RubyGems, use the main branch:

gem 'ransack', :github => 'activerecord-hackery/ransack', :branch => 'main'

Documentation

There is extensive documentation on Ransack, which is a Docusaurus project and run as a GitHub Pages site. Alternatively there is AI Generated documentation produced by devin.ai.

This gist has a quick-start cheatsheet, created by @raghubetina

Issue tracker

  • Before filing an issue, please read the Contributing Guide.
  • File an issue if a bug is caused by Ransack, is new (has not already been reported), and can be reproduced from the information you provide.
  • Please consider creating a pull request with a failing test that demonstrates the problem.
  • Contributions are welcome. 😃
  • Please do not use the issue tracker for personal support requests. Stack Overflow or GitHub Discussions is a better place for that where a wider community can help you!

Contributions

To support the project:

  • Consider supporting us via Open Collective
  • Use Ransack in your apps, and let us know if you encounter anything that's
    broken or missing. A failing spec to demonstrate the issue is awesome. A pull
    request with passing tests is even better!
  • Before filing an issue or pull request, be sure to read and follow the
    Contributing Guide.
  • Please use Stack Overflow or GitHub Discussions for questions or discussion not
    directly related to bug reports, pull requests, or documentation improvements.
  • Spread the word on social media if Ransack's been useful
    to you. The more people who are using the project, the quicker we can find and
    fix bugs!

Contributors

Ransack was created by Ernie Miller and is developed and maintained by:

Alumni Maintainers

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers! šŸ™ [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]











Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 1 day ago

Total Commits: 1,529
Total Committers: 249
Avg Commits per committer: 6.141
Development Distribution Score (DDS): 0.578

Commits in past year: 44
Committers in past year: 20
Avg Commits per committer in past year: 2.2
Development Distribution Score (DDS) in past year: 0.636

Name Email Commits
Jon Atack j****k@g****m 646
David RodrĆ­guez d****z@r****t 97
Sean 1****2 72
Yasuo Honda y****a@g****m 48
Ryan Bigg r****r@g****m 44
Ernie Miller e****e@m****s 43
Greg Molnar m****g@g****m 39
Zhomart Mukhamejanov m****t@g****m 37
Andrew Vit a****w@a****a 19
dependabot[bot] 4****] 15
Washington Luiz h****o@g****m 14
Ernie Miller e****e@e****g 12
yuuji.yaginuma y****a@g****m 10
Sean 1****l 9
Mark Huk m****e@g****m 9
Copilot 1****t 9
Sean Linsley x****v@g****m 9
Akira Matsuda r****e@d****p 8
Ryuta Kamizono k****o@g****m 8
Vassilis Rodokanakis v****s@g****r 8
Garett Arrowood g****d@g****m 7
Alejandro Babio a****o@h****m 7
Idean Labib i****b@g****m 6
Niels Kristian n****t@g****m 6
Piers Chambers p****s@v****m 6
Timo Schilling t****o@s****o 6
Tibor Nagy t****r@s****h 5
Steven Jones s****n@r****m 5
Kevin Sjƶberg k****g@g****m 5
Jared Beck j****d@j****m 5
and 219 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 5 days ago

Total issues: 207
Total pull requests: 227
Average time to close issues: almost 2 years
Average time to close pull requests: 3 months
Total issue authors: 168
Total pull request authors: 72
Average comments per issue: 2.82
Average comments per pull request: 1.09
Merged pull request: 94
Bot issues: 0
Bot pull requests: 38

Past year issues: 27
Past year pull requests: 78
Past year average time to close issues: about 2 months
Past year average time to close pull requests: 18 days
Past year issue authors: 19
Past year pull request authors: 20
Past year average comments per issue: 0.85
Past year average comments per pull request: 0.63
Past year merged pull request: 25
Past year bot issues: 0
Past year bot pull requests: 10

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/activerecord-hackery/ransack

Top Issue Authors

  • scarroll32 (20)
  • stereobooster (4)
  • devsheva (4)
  • tagliala (3)
  • Tobias-Knudsen (3)
  • dsusco (3)
  • davideluque (2)
  • alipman88 (2)
  • itsalongstory (2)
  • talalong (2)
  • RailsCod3rFuture (2)
  • tony123S (2)
  • kalsan (2)
  • MtnBiker (2)
  • sigmaray (1)

Top Pull Request Authors

  • dependabot[bot] (38)
  • Copilot (32)
  • deivid-rodriguez (18)
  • scarroll32 (15)
  • gregmolnar (8)
  • jdufresne (4)
  • le0pard (4)
  • jdlubrano (4)
  • tatematsu-k (3)
  • stereobooster (3)
  • robingram (2)
  • adrianthedev (2)
  • Aesthetikx (2)
  • tindron (2)
  • xiaohui-zhangxh (2)

Top Issue Labels

  • Documentation (6)
  • Help Wanted (5)
  • tests wanted (3)
  • Waiting for feedback from reporter (2)
  • simple_form (1)

Top Pull Request Labels

  • dependencies (38)
  • javascript (10)
  • Breaking change (2)

Package metadata

gem.coop: ransack

Powerful object-based searching and filtering for Active Record with advanced features like complex boolean queries, association searching, custom predicates and i18n support.

  • Homepage: https://github.com/activerecord-hackery/ransack
  • Documentation: http://www.rubydoc.info/gems/ransack/
  • Licenses: MIT
  • Latest release: 4.4.1 (published 5 months ago)
  • Last Synced: 2026-02-28T22:31:05.352Z (3 days ago)
  • Versions: 74
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 105,106,298 Total
  • Docker Downloads: 459,303
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Downloads: 0.245%
    • Average: 0.435%
    • Docker downloads count: 1.495%
  • Maintainers (3)
gem.coop: polyamorous

This is just an extraction from Ransack/Squeel. You probably don't want to use this directly. It extends ActiveRecord's associations to support polymorphic belongs_to associations.

  • Homepage: https://github.com/activerecord-hackery/ransack/tree/master/polyamorous
  • Documentation: http://www.rubydoc.info/gems/polyamorous/
  • Licenses: MIT
  • Latest release: 2.3.2 (published about 6 years ago)
  • Last Synced: 2026-03-01T22:03:04.664Z (2 days ago)
  • Versions: 15
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 37,747,316 Total
  • Docker Downloads: 79,065
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 0.568%
    • Downloads: 0.615%
    • Docker downloads count: 1.658%
  • Maintainers (6)
rubygems.org: ransack

Powerful object-based searching and filtering for Active Record with advanced features like complex boolean queries, association searching, custom predicates and i18n support.

  • Homepage: https://github.com/activerecord-hackery/ransack
  • Documentation: http://www.rubydoc.info/gems/ransack/
  • Licenses: MIT
  • Latest release: 4.4.1 (published 5 months ago)
  • Last Synced: 2026-03-02T04:32:58.442Z (2 days ago)
  • Versions: 74
  • Dependent Packages: 156
  • Dependent Repositories: 29,549
  • Downloads: 105,132,107 Total
  • Docker Downloads: 459,303
  • Rankings:
    • Dependent repos count: 0.203%
    • Stargazers count: 0.224%
    • Dependent packages count: 0.227%
    • Downloads: 0.261%
    • Average: 0.571%
    • Forks count: 0.821%
    • Docker downloads count: 1.691%
  • Maintainers (3)
rubygems.org: polyamorous

This is just an extraction from Ransack/Squeel. You probably don't want to use this directly. It extends ActiveRecord's associations to support polymorphic belongs_to associations.

  • Homepage: https://github.com/activerecord-hackery/ransack/tree/master/polyamorous
  • Documentation: http://www.rubydoc.info/gems/polyamorous/
  • Licenses: MIT
  • Latest release: 2.3.2 (published about 6 years ago)
  • Last Synced: 2026-03-02T04:01:54.265Z (2 days ago)
  • Versions: 15
  • Dependent Packages: 8
  • Dependent Repositories: 25,943
  • Downloads: 37,747,726 Total
  • Docker Downloads: 79,065
  • Rankings:
    • Dependent repos count: 0.222%
    • Stargazers count: 0.224%
    • Downloads: 0.508%
    • Forks count: 0.821%
    • Average: 0.95%
    • Docker downloads count: 1.881%
    • Dependent packages count: 2.044%
  • Maintainers (6)
proxy.golang.org: github.com/activerecord-hackery/ransack


Dependencies

.github/workflows/codeql.yml actions
  • actions/checkout v3 composite
  • github/codeql-action/analyze v2 composite
  • github/codeql-action/autobuild v2 composite
  • github/codeql-action/init v2 composite
.github/workflows/cronjob.yml actions
  • actions/checkout v2 composite
  • ruby/setup-ruby v1 composite
  • postgres * docker
.github/workflows/deploy.yml actions
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
  • peaceiris/actions-gh-pages v3 composite
.github/workflows/rubocop.yml actions
  • actions/checkout v2 composite
  • ruby/setup-ruby v1 composite
.github/workflows/test-deploy.yml actions
  • actions/checkout v3 composite
  • actions/setup-node v3 composite
.github/workflows/test.yml actions
  • actions/checkout v2 composite
  • ruby/setup-ruby v1 composite
  • postgres * docker
docs/package.json npm
  • @docusaurus/core ^2.2.0
  • @docusaurus/preset-classic ^2.2.0
  • @easyops-cn/docusaurus-search-local ^0.33.5
  • @mdx-js/react ^1.6.22
  • clsx ^1.1.1
  • prism-react-renderer ^1.3.1
  • react ^17.0.2
  • react-dom ^17.0.2
docs/yarn.lock npm
  • 1154 dependencies
Gemfile rubygems
  • machinist ~> 1.0.6 development
  • rspec >= 0 development
  • simplecov >= 0 development
  • actionpack >= 0
  • activemodel >= 0
  • activerecord >= 0
  • activesupport >= 0
  • byebug >= 0
  • faker >= 0
  • mysql2 >= 0
  • pg >= 0
  • pry >= 0
  • rake >= 0
  • rubocop >= 0
  • sqlite3 >= 0
ransack.gemspec rubygems
  • activerecord >= 6.1.5
  • activesupport >= 6.1.5
  • i18n >= 0

Score: 33.69199531776019