Class: Licensee
- Inherits:
-
Object
show all
- Defined in:
- lib/licensee.rb,
lib/licensee/license.rb,
lib/licensee/project.rb,
lib/licensee/version.rb,
lib/licensee/licenses.rb,
lib/licensee/license_file.rb
Defined Under Namespace
Classes: License, LicenseFile, Licenses, Project
Constant Summary
collapse
- CONFIDENCE_THRESHOLD =
".90".to_f
- VERSION =
"0.1.1"
Class Method Summary
collapse
Class Method Details
.diff(path, options = nil) ⇒ Object
26
27
28
|
# File 'lib/licensee.rb', line 26
def self.diff(path, options=nil)
Licensee::Project.new(path).license_file.diff(options)
end
|
.license(path) ⇒ Object
18
19
20
|
# File 'lib/licensee.rb', line 18
def self.license(path)
Licensee::Project.new(path).license
end
|
.licenses ⇒ Object
14
15
16
|
# File 'lib/licensee.rb', line 14
def self.licenses
Licensee::Licenses.list
end
|
.matches(path) ⇒ Object
22
23
24
|
# File 'lib/licensee.rb', line 22
def self.matches(path)
Licensee::Project.new(path).matches
end
|