Class: Spandx::Dotnet::NugetGateway
Overview
Instance Attribute Summary
#http
Instance Method Summary
collapse
#initialize
#all, #inherited, #registry
Instance Method Details
#each(start_page: 0) ⇒ Object
17
18
19
20
21
22
23
|
# File 'lib/spandx/dotnet/nuget_gateway.rb', line 17
def each(start_page: 0)
each_page(start_page: start_page) do |page_json|
items_from(page_json).each do |item|
yield(fetch_json(item['@id']), page_number_from(page_json['@id']))
end
end
end
|
#licenses_for(dependency) ⇒ Object
9
10
11
|
# File 'lib/spandx/dotnet/nuget_gateway.rb', line 9
def licenses_for(dependency)
(nuspec_for(dependency.name, dependency.version))
end
|
#matches?(dependency) ⇒ Boolean
13
14
15
|
# File 'lib/spandx/dotnet/nuget_gateway.rb', line 13
def matches?(dependency)
dependency.package_manager == :nuget
end
|