Class: GithubFlowReadiness::Checks::GemSources
- Defined in:
- lib/core/github_flow_readiness/checks.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from GithubFlowReadiness::Checks::Base
Instance Method Details
#call ⇒ Object
117 118 119 120 121 122 123 124 125 126 |
# File 'lib/core/github_flow_readiness/checks.rb', line 117 def call non_public = service.gem_dependencies.reject { |dep| service.public_rubygems_dependency?(dep) } return pass("All direct Ruby gems resolve from public RubyGems sources.") if non_public.empty? names = non_public.map { |dep| dep[:name] }.sort warn_result( "Direct Ruby dependencies using git/path or non-public gem sources need manual review: " \ "#{names.map { |name| "`#{name}`" }.join(', ')}." ) end |