File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11source 'https://rubygems.org'
22gemspec :name => "github-linguist"
33gem 'byebug' if RUBY_VERSION >= '2.0'
4- gem 'licensor' , :path => "../licensor"
Original file line number Diff line number Diff 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
3030end
Original file line number Diff line number Diff line change 33# TODO: push these changes to licensor gem
44
55require "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
3333end
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
3737config . sources << source
3838
3939if ARGV [ 0 ] == "verify"
40- Licensor ::Command ::Verify . new ( config ) . run
40+ Licensed ::Command ::Verify . new ( config ) . run
4141else
42- Licensor ::Command ::Cache . new ( config ) . run ( force : true )
42+ Licensed ::Command ::Cache . new ( config ) . run ( force : true )
4343end
You can’t perform that action at this time.
0 commit comments