lib/licensee.rb in licensee-9.6.0 vs lib/licensee.rb in licensee-9.7.0
- old
+ new
@@ -33,10 +33,14 @@
def license(path)
Licensee.project(path).license
end
def project(path, **args)
- Licensee::Projects::GitProject.new(path, args)
+ if path =~ %r{\Ahttps://github.com}
+ Licensee::Projects::GitHubProject.new(path, args)
+ else
+ Licensee::Projects::GitProject.new(path, args)
+ end
rescue Licensee::Projects::GitProject::InvalidRepository
Licensee::Projects::FSProject.new(path, args)
end
def confidence_threshold