From e3b4c8d0c5f5f33febffbd01fe9d1eb6dd83faf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Mon, 8 Aug 2022 16:24:05 +0200 Subject: [PATCH] Address recent change in Bundler `Bundler::Definition#specs_for` no longer behaves as before. Admittedly the previous behavior was more intuitive. --- lib/warbler/traits/bundler.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/warbler/traits/bundler.rb b/lib/warbler/traits/bundler.rb index 6859b154..18ee9087 100644 --- a/lib/warbler/traits/bundler.rb +++ b/lib/warbler/traits/bundler.rb @@ -127,7 +127,8 @@ def bundler_specs bundle_without = config.bundle_without.map { |s| s.to_sym } definition = ::Bundler.definition all = definition.specs.to_a - requested = definition.specs_for(definition.groups - bundle_without).to_a + dependencies = definition.dependencies_for(definition.groups - bundle_without) + requested = definition.send(:materialize, dependencies).to_a excluded_git_specs = (all - requested).select { |spec| ::Bundler::Source::Git === spec.source } excluded_git_specs.each { |spec| spec.groups << :warbler_excluded } requested + excluded_git_specs