Sha256: 9ec172cade7b6f3c59d839434962069bd5701ba6cfe22fafdc783d9592ca0d24
Contents?: true
Size: 1.03 KB
Versions: 7
Compression:
Stored size: 1.03 KB
Contents
require_relative './coconductor/version' require 'licensee' module Coconductor autoload :CodeOfConduct, 'coconductor/code_of_conduct' autoload :Field, 'coconductor/field' autoload :Matchers, 'coconductor/matchers' autoload :Projects, 'coconductor/projects' autoload :ProjectFiles, 'coconductor/project_files' autoload :Vendorer, 'coconductor/vendorer' CONFIDENCE_THRESHOLD = 90 class << self attr_writer :confidence_threshold def codes_of_conduct CodeOfConduct.all end def code_of_conduct(path) Coconductor.project(path).code_of_conduct end def project(path, **args) if path =~ %r{\Ahttps://github.com} Coconductor::Projects::GitHubProject.new(path, args) else Coconductor::Projects::GitProject.new(path, args) end rescue Coconductor::Projects::GitProject::InvalidRepository Coconductor::Projects::FSProject.new(path, args) end def confidence_threshold @confidence_threshold ||= CONFIDENCE_THRESHOLD end end end
Version data entries
7 entries across 7 versions & 1 rubygems