Skip to content

Commit

Permalink
Address recent change in Bundler
Browse files Browse the repository at this point in the history
`Bundler::Definition#specs_for` no longer behaves as before. Admittedly
the previous behavior was more intuitive.
  • Loading branch information
deivid-rodriguez committed Aug 8, 2022
1 parent d733557 commit d712228
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/warbler/traits/bundler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d712228

Please sign in to comment.