money-rails is a Ruby gem that integrates the RubyMoney library with Rails, providing a `monetize` macro for ActiveRecord and Mongoid models. It allows developers to map integer cents columns (e.g., `price_cents`) to Money objects, handling currency conversions, validation, formatting, and serialization. The gem includes migration helpers, a custom ActiveModel validator, ActionView helpers, an ActiveJob serializer, test helpers, and configuration for global currency defaults and rounding modes. It supports multiple Rails versions (7.0–8.1), Mongoid 7–9, and Ruby >= 3.1. The codebase is well-structured, extensively tested, and follows Rails plugin conventions with clean separation of concerns.
Mongoid-RSpec is a Ruby gem that provides RSpec matchers for testing Mongoid documents. It offers a comprehensive set of matchers for validating associations, validations, fields, timestamps, and other Mongoid-specific features. The library is designed to work across multiple versions of Mongoid (from 3.x to 9.x) by using a compatibility layer to abstract away API differences. The code is well-organized into matcher-specific files, demonstrating good separation of concerns and handling of version-specific complexities.