Sha256: 5253c391b4e41afe118e32420513e7aada898fff53ce41db45913200f5d25444
Contents?: true
Size: 998 Bytes
Versions: 13
Compression:
Stored size: 998 Bytes
Contents
require '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' 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
13 entries across 13 versions & 1 rubygems