Update Licensee and Licensed gems (#3982)

* Update licensee version

This pulls in Licensed 0.10.0 too.

* Use a full path to the grammars

Licensed now enforces this as it's easier then guessing.

* Ensure full path

* Use new path for FSProject

* Starting to adjust tests

* require licensee again

* Fix grammar tests

* verify -> status

* whitelist -> allowed

* explicitly set cache_path in configuration

default for licensed v1.0 changed from `vendor/licenses` to `.licenses`

* load configuration from file location

default configuration file location changed from `vendor/licenses/config.yml` to `.licensed.yml`

* update gemspec for licensed 1.0.0

* Remove unused license hash
This commit is contained in:
Colin Seymour
2018-04-03 16:35:24 +01:00
committed by GitHub
parent 0bf4b8a482
commit f452612666
5 changed files with 46 additions and 47 deletions

View File

@@ -40,12 +40,12 @@ OptionParser.new do |opts|
end
end.parse!
source = Licensed::Source::Filesystem.new(module_path || "vendor/grammars/*/", type: "grammar")
config = Licensed::Configuration.new
source = Licensed::Source::Filesystem.new(module_path || "#{File.expand_path("../", File.dirname(__FILE__))}/vendor/grammars/*/", type: "grammar")
config = Licensed::Configuration.load_from(File.expand_path("../vendor/licenses/config.yml", File.dirname(__FILE__)))
config.sources << source
command = if ARGV[0] == "verify"
Licensed::Command::Verify.new(config)
command = if ARGV[0] == "status"
Licensed::Command::Status.new(config)
else
Licensed::Command::Cache.new(config)
end