licensee 5.0.0 → 6.0.0b1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -50
- data/bin/licensee +7 -8
- data/lib/licensee.rb +9 -33
- data/lib/licensee/content_helper.rb +7 -8
- data/lib/licensee/license.rb +5 -28
- data/lib/licensee/matchers/copyright_matcher.rb +17 -16
- data/lib/licensee/matchers/dice_matcher.rb +65 -0
- data/lib/licensee/matchers/exact_matcher.rb +12 -6
- data/lib/licensee/matchers/gemspec_matcher.rb +11 -11
- data/lib/licensee/matchers/npm_bower_matcher.rb +10 -10
- data/lib/licensee/matchers/package_matcher.rb +11 -10
- data/lib/licensee/project.rb +96 -30
- data/lib/licensee/project_file.rb +57 -77
- data/lib/licensee/version.rb +1 -1
- data/licensee.gemspec +26 -0
- data/test/fixtures/npm.git/HEAD +1 -0
- data/test/fixtures/npm.git/config +4 -0
- data/test/fixtures/npm.git/objects/info/packs +2 -0
- data/test/fixtures/npm.git/objects/pack/pack-03c0879445cabcc37f91d97c7955465adef26f4a.idx +0 -0
- data/test/fixtures/npm.git/objects/pack/pack-03c0879445cabcc37f91d97c7955465adef26f4a.pack +0 -0
- data/test/fixtures/npm.git/packed-refs +2 -0
- data/test/functions.rb +4 -15
- data/test/test_licensee.rb +1 -13
- data/test/test_licensee_copyright_matcher.rb +19 -28
- data/test/test_licensee_dice_matcher.rb +21 -0
- data/test/test_licensee_exact_matcher.rb +4 -6
- data/test/test_licensee_gemspec_matcher.rb +3 -11
- data/test/test_licensee_license.rb +2 -12
- data/test/test_licensee_npm_bower_matcher.rb +10 -16
- data/test/test_licensee_project.rb +24 -35
- data/test/test_licensee_project_file.rb +5 -10
- data/vendor/choosealicense.com/_licenses/afl-3.0.txt +69 -0
- data/vendor/choosealicense.com/_licenses/isc.txt +2 -2
- metadata +14 -26
- data/lib/licensee/filesystem_repository.rb +0 -38
- data/lib/licensee/matcher.rb +0 -32
- data/lib/licensee/matchers/git_matcher.rb +0 -27
- data/lib/licensee/matchers/levenshtein_matcher.rb +0 -75
- data/test/test_licensee_content_helper.rb +0 -40
- data/test/test_licensee_git_matcher.rb +0 -19
- data/test/test_licensee_levenshtein_matcher.rb +0 -34
- data/test/test_licensee_matcher.rb +0 -7