blob: f186f8082b28a29ff3cf50d90d8797fdd075a081 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# frozen_string_literal: true
require 'pathname'
require 'yaml'
require 'json'
require 'license_finder'
require 'license/management/loggable'
require 'license/management/verifiable'
require 'license/management/repository'
require 'license/management/report'
require 'license/management/version'
# This applies a monkey patch to the JsonReport found in the `license_finder` gem.
LicenseFinder::JsonReport.prepend(License::Management::Report)
module LicenseFinder
class Nuget
def self.package_management_command
'nuget'
end
def self.nuget_check
'which nuget'
end
end
end
module License
module Management
def self.root
Pathname.new(File.dirname(__FILE__)).join('../..')
end
def self.http
@http ||= Net::Hippie::Client.new.tap do |client|
client.logger = ::Logger.new('http.log')
client.follow_redirects = 3
end
end
end
end
|