summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEarlopain <14981592+Earlopain@users.noreply.github.com>2024-06-18 18:38:08 +0200
committergit <svn-admin@ruby-lang.org>2024-06-18 17:53:59 +0000
commitb8a592fe6e2d1b537b229625cd3d439a7d5a6eb5 (patch)
tree30dfd0d5e64f75fbd27cfcedc953c23420a6d418 /lib
parent4b04da1ee81c460c591456d8d24792af55cd5c5f (diff)
[rubygems/rubygems] Fix `bundle fund` when the gemfile contains optional groups
`current_dependencies` doesn't return gems in optional groups, while `specs` would Closes https://github.com/rubygems/rubygems/pull/7757 https://github.com/rubygems/rubygems/commit/c797e95636
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/cli/fund.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/cli/fund.rb b/lib/bundler/cli/fund.rb
index 52db5aef68..ad7f31f3d6 100644
--- a/lib/bundler/cli/fund.rb
+++ b/lib/bundler/cli/fund.rb
@@ -16,7 +16,7 @@ module Bundler
deps = if groups.any?
Bundler.definition.dependencies_for(groups)
else
- Bundler.definition.current_dependencies
+ Bundler.definition.requested_dependencies
end
fund_info = deps.each_with_object([]) do |dep, arr|