mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Updating licensor -> licensed
This commit is contained in:
1
Gemfile
1
Gemfile
@@ -1,4 +1,3 @@
|
|||||||
source 'https://rubygems.org'
|
source 'https://rubygems.org'
|
||||||
gemspec :name => "github-linguist"
|
gemspec :name => "github-linguist"
|
||||||
gem 'byebug' if RUBY_VERSION >= '2.0'
|
gem 'byebug' if RUBY_VERSION >= '2.0'
|
||||||
gem 'licensor', :path => "../licensor"
|
|
||||||
|
|||||||
@@ -25,6 +25,6 @@ Gem::Specification.new do |s|
|
|||||||
s.add_development_dependency 'rake'
|
s.add_development_dependency 'rake'
|
||||||
s.add_development_dependency 'yajl-ruby'
|
s.add_development_dependency 'yajl-ruby'
|
||||||
s.add_development_dependency 'color-proximity', '~> 0.2.1'
|
s.add_development_dependency 'color-proximity', '~> 0.2.1'
|
||||||
s.add_development_dependency 'licensee', '6.0.0'
|
s.add_development_dependency 'licensed'
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
# TODO: push these changes to licensor gem
|
# TODO: push these changes to licensor gem
|
||||||
|
|
||||||
require "bundler/setup"
|
require "bundler/setup"
|
||||||
require "licensor/cli"
|
require "licensed/cli"
|
||||||
|
|
||||||
module Licensor
|
module Licensed
|
||||||
module Source
|
module Source
|
||||||
class Filesystem
|
class Filesystem
|
||||||
attr_reader :type
|
attr_reader :type
|
||||||
@@ -22,7 +22,7 @@ module Licensor
|
|||||||
def dependencies
|
def dependencies
|
||||||
Dir.glob(@glob).map do |directory|
|
Dir.glob(@glob).map do |directory|
|
||||||
puts "caching #{directory}"
|
puts "caching #{directory}"
|
||||||
Licensor::Dependency.new(directory, {
|
Licensed::Dependency.new(directory, {
|
||||||
"type" => type,
|
"type" => type,
|
||||||
"name" => File.basename(directory)
|
"name" => File.basename(directory)
|
||||||
})
|
})
|
||||||
@@ -32,12 +32,12 @@ module Licensor
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
source = Licensor::Source::Filesystem.new("vendor/grammars/*/", type: "grammar")
|
source = Licensed::Source::Filesystem.new("vendor/grammars/*/", type: "grammar")
|
||||||
config = Licensor::Configuration.new
|
config = Licensed::Configuration.new
|
||||||
config.sources << source
|
config.sources << source
|
||||||
|
|
||||||
if ARGV[0] == "verify"
|
if ARGV[0] == "verify"
|
||||||
Licensor::Command::Verify.new(config).run
|
Licensed::Command::Verify.new(config).run
|
||||||
else
|
else
|
||||||
Licensor::Command::Cache.new(config).run(force: true)
|
Licensed::Command::Cache.new(config).run(force: true)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user