Skip to content
CAI
Produce a survey ↗Verify a survey

drapergem/draper

Draper is a Ruby gem that provides a decorator pattern for Rails models, enabling the separation of view logic from models. It offers a modular architecture for managing decorators, including support for collections, associations, and ActiveJob integration. The system includes generators for scaffolding decorators and tests, along with comprehensive test infrastructure for RSpec, Minitest, and Test::Unit.

58.5

Adequate · 2 August 2026

1.3k

lines of production code

Ruby

primary language

3

bus factor · 203 authors in all

3

measurements over time

CAI band scale
CAI trend line

How it got here

2011 · Architectural modernization and test infrastructure

This period focused on refactoring Draper into a modular architecture and modernizing the development workflow. The codebase was updated to support Ruby 2.6+ and ActiveModel serialization, while the generator system was restructured to support RSpec, Test::Unit, and Rails scaffolding. Comprehensive test coverage was added to validate the new modular components and ensure stability.

13 changes

2012 · Integration testing infrastructure and internal refactoring

This period focused on establishing a comprehensive integration testing environment by creating a dummy Rails application and adding extensive test coverage for decorators, helpers, and mailers. Concurrently, the library's internal architecture was refactored to improve decorator instantiation and view context management.

22 changes

2013–2021 · Test infrastructure and generator enhancements

This period focused on expanding test coverage and automation, introducing Rake tasks and generators for MiniTest and RSpec to streamline the testing workflow. It also added generators for creating decorator classes alongside controllers and implemented compatibility patches for modern Rails features like ActiveJob and Turbo.

16 changes

CAI lens gauges

Survey your own repository

drapergem/draper was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point the surveyor at a repository you know and see whether you agree with it.

Survey a repository

About this page

  • The description of this project is derived from its own commit history, not from its README.
  • The score is its highest published measurement, taken on 2 August 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 7fc015f80c — the exact code this score is about.
  • Scored under rubric rubric-2026.08.18. Score the same commit under that rubric and you get the same number.
CAI link cards