From c3a3432fae028451abd731a2b8a4e48f96ae1826 Mon Sep 17 00:00:00 2001 From: Yuji Yaginuma Date: Thu, 29 Jan 2026 07:38:59 +0900 Subject: [PATCH] Add `benchmark` gem as a runtime dependency Since Ruby 4.0.0, `benchmark` gem is not part of the default gems. We need to add that to use on Ruby 4.0+. Fixes: https://github.com/Shopify/packwerk/issues/444 --- Gemfile.lock | 1 + packwerk.gemspec | 1 + 2 files changed, 2 insertions(+) diff --git a/Gemfile.lock b/Gemfile.lock index 160a5bcb..b5f099cf 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -4,6 +4,7 @@ PATH packwerk (3.2.3) activesupport (>= 6.0) ast + benchmark better_html bundler constant_resolver (>= 0.3) diff --git a/packwerk.gemspec b/packwerk.gemspec index 82e0c10b..9a682ca3 100644 --- a/packwerk.gemspec +++ b/packwerk.gemspec @@ -39,6 +39,7 @@ Gem::Specification.new do |spec| spec.required_ruby_version = ">= 3.1" spec.add_dependency("activesupport", ">= 6.0") + spec.add_dependency("benchmark") spec.add_dependency("bundler") spec.add_dependency("constant_resolver", ">= 0.3") spec.add_dependency("parallel")