Ruby Rubygems

Open-source Ruby projects categorized as Rubygems

Top 22 Ruby Rubygem Projects

  • GitHub repo factory_bot

    A library for setting up Ruby objects as test data.

    Project mention: Learn what is DSL and build your own parser for Gemfile | | 2021-04-08

    For anyone wanting to dive even deeper into the topic of writing DSLs, this thoughtbot post does a pretty good job of explaining how the DSL for factorybot works

  • GitHub repo MailCatcher

    Catches mail and serves it through a dream.

    Project mention: Maily v2 is out | | 2021-04-11

    This looks interesting. Am curious to know how it differs from something like MailCatcher?

  • GitHub repo rubygems

    Library packaging and distribution for Ruby.

    Project mention: Ruby on Rails struggles to install SQLite3 when creating new application | | 2021-04-06

    Could not find gem 'sqlite3 (~> 1.4)' in rubygems repository or installed locally.

  • GitHub repo Karafka

    Framework for Apache Kafka based Ruby and Rails applications development.

    Project mention: Code Loaders in Ruby: Understanding Zeitwerk | | 2021-03-23


  • GitHub repo Appraisal

    A Ruby library for testing your library against different versions of dependencies.

    Project mention: Researcher hacks over 35 tech firms in novel supply chain attack | | 2021-02-10


  • GitHub repo Unread

    Handle unread records and mark them as read with Ruby on Rails

  • GitHub repo gemstash

    A cache and private gem server

    Project mention: MimeMagic versions prior to 0.3.6 have been yanked from RubyGems and it's GPL 2.0 now | | 2021-03-24

    Sorry to hear. I'd say, never "bundle install" in the init script. If using docker, make "bundle install" an intermediate container. If you have your own servers, try network FS sharing your deps (and see if you're ok with the "require" latencies). Alternatively, use a gem cache proxy. You can use "geminabox" with a rubygems mirror, if you can tolerate the space and long mirroring times, or use a purposed "middleman" proxy, like gemstash, or nexus if your company is multilang.

  • GitHub repo ruby-mqtt

    Pure Ruby gem that implements the MQTT protocol, a lightweight protocol for publish/subscribe messaging.

    Project mention: Best of (Ruby) Gems Series - What's Next? What's Hot? | | 2021-03-12


  • GitHub repo Ruby Units

    A unit handling library for ruby

    Project mention: GNU Units | | 2021-01-06

    > I don’t think I can link Ada libraries into my Ruby or Elixir codebase

    Ruby has (among others, I’m certain):

  • GitHub repo DeepPluck

    Allow you to pluck attributes from nested associations without loading a bunch of records.

  • GitHub repo Gemsmith

    A command line interface for smithing Ruby gems.

  • GitHub repo bundler-leak

    Known-leaky gems verification for bundler: `bundle leak` to check your app and find leaky gems in your Gemfile :gem::droplet:

  • GitHub repo bashcov

    Code coverage tool for Bash

    Project mention: Bash Code Coverage Options? | | 2021-03-17

    I've not used it, but maybe investigate bashcov which leverages simplecov for generating HTML reports?

  • GitHub repo gemdiff

    Find source repositories for ruby gems. Open, compare, and update outdated gem versions

  • GitHub repo rails_or

    Cleaner syntax for writing OR Query in Rails 5, 6. And also add #or support to Rails 3 and 4.

  • GitHub repo pluck_all

    A more efficient way to get data from database. Like #pluck method but return array of hashes instead.

  • GitHub repo ActiveModelCachers

    Simply cache whatever you want by using cachers which will help you maintain cached objects and expire them when they are changed.

  • GitHub repo drafting

    Ruby gem for saving drafts of ActiveRecord models

    Project mention: Long forms, persistence and database constraints | | 2021-01-08

    Maybe this is not what you want (and could be useful for other folks), but I love the drafting gem. The implementation is similar to other posts - it has a separate table where you can save anything and come back to it later on. Caveat is - it's not a real object yet, and can only work with new records. Possibly can look into it :)

  • GitHub repo FindWithOrder

    Provides a simple way to find records in the same order of input array. Has better performance than manually sorting. (Support both PostgreSQL and MySQL)

  • GitHub repo Atomically

    An ActiveRecord extension for writing commonly useful atomic SQL statements to avoid race condition.

  • GitHub repo puppet-module-gems

    dependency management gems for all puppet modules

  • GitHub repo SanitizeSqlLike

    Backport #sanitize_sql_like method from Rails 4 for Rails 3. Sanitizes a string so that it is safe to use within an SQL LIKE statement.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2021-04-11.


What are some of the best open-source Rubygem projects in Ruby? This list will help you:

Project Stars
1 factory_bot 7,158
2 MailCatcher 5,258
3 rubygems 2,692
4 Karafka 1,233
5 Appraisal 1,075
6 Unread 644
7 gemstash 643
8 ruby-mqtt 465
9 Ruby Units 392
10 DeepPluck 387
11 Gemsmith 356
12 bundler-leak 189
13 bashcov 114
14 gemdiff 111
15 rails_or 91
16 pluck_all 91
17 ActiveModelCachers 62
18 drafting 41
19 FindWithOrder 31
20 Atomically 26
21 puppet-module-gems 4
22 SanitizeSqlLike 0