Class: Licensee
- Inherits:
-
Object
- Object
- Licensee
- 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
- .diff(path, options = nil) ⇒ Object
- .license(path) ⇒ Object
- .licenses ⇒ Object
- .matches(path) ⇒ Object
Class Method Details
.diff(path, options = nil) ⇒ Object
26 27 28 |
# File 'lib/licensee.rb', line 26 def self.diff(path, =nil) Licensee::Project.new(path).license_file.diff() end |
.license(path) ⇒ Object
18 19 20 |
# File 'lib/licensee.rb', line 18 def self.license(path) Licensee::Project.new(path).license end |