Skip to content

Commit

Permalink
Appease the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Mar 16, 2020
1 parent 2ca0585 commit b32ba96
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bundler/lib/bundler/cli/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def self.print_post_install_message(name, msg)
def self.output_fund_metadata_summary(gems_seeking_funding)
gem_names = gems_seeking_funding.keys
current_dependencies = Bundler.definition.current_dependencies.map(&:name)
direct_gems_seeking_funding = gem_names.reject { |g| !current_dependencies.include?(g) }
direct_gems_seeking_funding = gem_names.reject {|g| !current_dependencies.include?(g) }
return if direct_gems_seeking_funding.empty?

count = direct_gems_seeking_funding.length
Expand Down
12 changes: 6 additions & 6 deletions bundler/lib/bundler/cli/fund.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ def initialize(options)
def run
Bundler.definition.validate_runtime!

groups = Array(options[:group]).map(&:to_sym)
groups = Array(options[:group]).map(&:to_sym)

deps = if groups.any?
Bundler.definition.current_dependencies.select { |d| (d.groups & groups).any? }
else
Bundler.definition.current_dependencies
end
Bundler.definition.current_dependencies.select {|d| (d.groups & groups).any? }
else
Bundler.definition.current_dependencies
end

fund_info = deps.each_with_object([]) do |dep, arr|
spec = Bundler.definition.specs[dep.name].first
if spec.metadata.key?("funding_uri")
arr << "* #{spec.name} (#{spec.version})\n Funding: #{spec.metadata['funding_uri']}"
arr << "* #{spec.name} (#{spec.version})\n Funding: #{spec.metadata["funding_uri"]}"
end
end

Expand Down

0 comments on commit b32ba96

Please sign in to comment.