Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b5091e8

Browse files
author
Arfon Smith
committed
Updating licensor -> licensed
1 parent 2610808 commit b5091e8

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
source 'https://rubygems.org'
22
gemspec :name => "github-linguist"
33
gem 'byebug' if RUBY_VERSION >= '2.0'
4-
gem 'licensor', :path => "../licensor"

github-linguist.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ Gem::Specification.new do |s|
2525
s.add_development_dependency 'rake'
2626
s.add_development_dependency 'yajl-ruby'
2727
s.add_development_dependency 'color-proximity', '~> 0.2.1'
28-
s.add_development_dependency 'licensee', '6.0.0'
28+
s.add_development_dependency 'licensed'
2929

3030
end

script/licensor

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
# TODO: push these changes to licensor gem
44

55
require "bundler/setup"
6-
require "licensor/cli"
6+
require "licensed/cli"
77

8-
module Licensor
8+
module Licensed
99
module Source
1010
class Filesystem
1111
attr_reader :type
@@ -22,7 +22,7 @@ module Licensor
2222
def dependencies
2323
Dir.glob(@glob).map do |directory|
2424
puts "caching #{directory}"
25-
Licensor::Dependency.new(directory, {
25+
Licensed::Dependency.new(directory, {
2626
"type" => type,
2727
"name" => File.basename(directory)
2828
})
@@ -32,12 +32,12 @@ module Licensor
3232
end
3333
end
3434

35-
source = Licensor::Source::Filesystem.new("vendor/grammars/*/", type: "grammar")
36-
config = Licensor::Configuration.new
35+
source = Licensed::Source::Filesystem.new("vendor/grammars/*/", type: "grammar")
36+
config = Licensed::Configuration.new
3737
config.sources << source
3838

3939
if ARGV[0] == "verify"
40-
Licensor::Command::Verify.new(config).run
40+
Licensed::Command::Verify.new(config).run
4141
else
42-
Licensor::Command::Cache.new(config).run(force: true)
42+
Licensed::Command::Cache.new(config).run(force: true)
4343
end

0 commit comments

Comments
 (0)