Ben Balter
b25fd28792
strip markdown headings
2017-03-28 13:14:26 -04:00
Ben Balter
ff900d31a4
strip HRs before looking for title and copyright
2017-03-28 09:47:55 -04:00
Ben Balter
07262b4006
Bump to 8.8.5
2017-03-20 17:27:08 -04:00
Ben Balter
1432963a62
look up license rule by tag and group
2017-03-20 17:06:44 -04:00
Ben Balter
1b16adfbe3
Bump to 8.8.4
2017-03-15 10:13:37 -04:00
Ben Balter
072f021527
Bump to 8.8.3
2017-03-07 16:27:12 -05:00
Ben Balter
471eff3148
special case bsd title regex
2017-03-05 17:12:53 -05:00
Ben Balter
d3083945fb
Bump to 8.8.2
2017-03-01 18:55:45 -05:00
Ben Balter
48b44457f0
fix for multiple copyrights
2017-03-01 16:12:22 -05:00
Ben Balter
a22b239cd1
strip titles in parenthesis
2017-03-01 16:06:01 -05:00
Ben Balter
feac84f080
s/try/dry/
2017-02-23 15:00:44 -05:00
Ben Balter
2202ad4f46
anchor copyright regex to start of file
2017-02-23 14:42:57 -05:00
Ben Balter
1ac12a180a
anchor attribution detection to the first normalized line
2017-02-23 14:36:39 -05:00
Ben Balter
2610f8d33e
Bump to 8.8.1
2017-02-23 13:12:09 -05:00
Ben Balter
dd15a16d15
Bump to 8.8.0
2017-02-23 12:31:40 -05:00
Ben Balter
3579d6fabd
clarify CC_FALSE_POSITIVE_REGEX comment
2017-02-21 16:25:36 -05:00
Ben Balter
c8f0ea23c0
push CC false positive logic into the dice matcher
2017-02-21 15:49:57 -05:00
Ben Balter
19a84890b6
Merge branch 'ncndignore' of https://github.com/mlinksva/licensee into mlinksva-ncndignore
2017-02-21 15:05:23 -05:00
Ben Balter
0cabf90ced
Merge branch 'master' of https://github.com/talisein/licensee into talisein-master
2017-02-21 13:49:30 -05:00
Ben Balter
f18bfc4d75
Merge branch 'master' into feature/dist_ini_matcher
2017-02-21 12:22:55 -05:00
Ben Balter
e3d9e77f3c
Merge branch 'master' into ncndignore
2017-02-21 12:22:51 -05:00
Mike Linksvayer
397835ff3a
comments
2017-02-18 14:16:55 -08:00
Mike Linksvayer
72c338aa81
only check for CC false positives when relevant
...
- exact matches can't have false positives, so
move to dice matcher/similarity
- only do check if matching against CC-BY[-SA]
- and if match above threshold
- if false positive check, bump down score
2017-02-18 12:43:48 -08:00
Mike Linksvayer
754adc52e1
avoid detecting CC -NC or -ND licenses
...
fixes #116
2017-02-15 19:35:42 -08:00
Ben Balter
a11d32c4bd
anchor title and copyright normalization to the start of the string
2017-01-27 11:40:18 -08:00
Pablo Rodríguez González
3d6aef82f2
Merge branch 'master' into feature/dist_ini_matcher
2017-01-22 20:17:21 +01:00
Pablo Rodríguez González
2ac59f2147
Simplify spdx mapping with substitutions
2017-01-22 20:14:55 +01:00
Pablo Rodríguez González
f4863978eb
dist.ini should be preferred over DESCRIPTION
2017-01-22 20:09:27 +01:00
Ben Balter
b855dc90e9
fix rubocop offenses and drop Ruby < 2.1 support
2017-01-22 13:38:41 -05:00
Pablo Rodríguez González
c21cada215
Add support for non-spdx names in dist.ini
2017-01-21 21:20:52 +01:00
Pablo Rodríguez González
d43b6a8595
Eliminate innecesary @
2017-01-21 19:59:45 +01:00
Pablo Rodríguez González
99c7ca8310
Simplify license regex and replace . with _ character
2017-01-21 19:58:28 +01:00
Pablo Rodríguez González
7c97df8c75
Downrank dist.ini file matcher to 0.8
2017-01-21 19:50:25 +01:00
Pablo Rodríguez González
ebc6d23e0d
Add dist.ini file matcher for Perl modules using Dist::Zilla
2017-01-08 00:39:06 +01:00
Ben Balter
e8762b04ca
Merge branch 'master' into master
2017-01-03 10:27:59 -05:00
Ben Balter
1bde890782
abstract copyright regex
2017-01-02 14:32:26 -05:00
Andrew Potter
5c2f582015
Only consider license content until 'END OF TERMS AND CONDITIONS'
2016-12-28 13:51:30 -08:00
Ben Balter
38e3cdeffa
Bump to 8.7.0
2016-11-15 13:55:16 -05:00
Ben Balter
ecbd14ec24
obay the rubocop
2016-11-11 16:16:13 -05:00
Ben Balter
9eeba32652
expose license rules
2016-11-11 15:02:45 -05:00
Ben Balter
f5e3358aab
fix rubocop offense
2016-10-25 11:52:43 -04:00
Sebastian Schuberth
9cc65afe99
fs_project: Fix for calling "files" with a file multiple times
...
This fixes a bug where calling FSProject.files with a single file for the
second time would return all files in the directory instead of that single
file. This is because in case of a single file the original implementation
would overwrite @path with the directory of the single file. The next time
FSProject.files is called, @path is not a file anymore, and the pattern
will be set to "*", matching all files.
Fix this by splitting the path into directory and pattern, and always
constructing the path from these.
2016-10-25 16:35:13 +02:00
Sebastian Schuberth
282999a230
fs_project: Fix globbing Windows paths
...
Dir.glob() does not take backslashes, not even when running on Windows,
see http://stackoverflow.com/a/20668433/1127485 .
2016-10-25 16:35:13 +02:00
Sebastian Schuberth
9c3c9f05f5
Fix minor typos in some comments
2016-10-25 16:35:08 +02:00
Ben Balter
6307ba2ff5
Revert "Fixes to running licensee against a single file (on Windows)"
2016-10-25 10:07:09 -04:00
Sebastian Schuberth
8c78d98c65
Do not create the list of files multiple times
...
This is a performance optimization to avoid expressions like "files.empty?
|| files.nil?" like in "project.rb" to trigger the creation of the list of
files multiple times.
As a side effect, this fixes a bug where calling FSProject.files with a
single file for the second time would return all files in the directory
instaed of that single file. This is because in case of a single file the
implementation overwrites @path with the directory of the single file.
The next time FSProject.files is called, @path is not a file anymore, and
the pattern will be set to "*", matching all files.
2016-10-25 15:41:35 +02:00
Sebastian Schuberth
908f2a1c62
fs_project: Fix globbing Windows paths
...
Dir.glob() does not take backslashes, not even when running on Windows,
see http://stackoverflow.com/a/20668433/1127485 .
2016-10-25 15:26:35 +02:00
Sebastian Schuberth
63029a2f8f
project: Fix a minor typo in a comment
2016-10-25 15:25:33 +02:00
Paul Chaignon
7459d2b23b
Recognize underlined license headers in READMEs
...
The following license header will now be recognized
as the beginning of a license text in a README
License
-------
2016-10-07 21:46:39 +02:00
Ben Balter
9541183852
Bump to 8.6.1
2016-10-07 12:55:55 -04:00
Ben Balter
6dffa73832
Bump to 8.6.0
2016-09-26 10:22:07 -04:00
Ben Balter
a6ecb6c505
add Cran tests
2016-09-26 10:13:02 -04:00
Ben Balter
eae9e8f543
Merge branch 'CRAN' of https://github.com/jimhester/licensee into jimhester-CRAN
2016-09-26 09:56:02 -04:00
Ben Balter
a270d419d0
Merge branch 'mdown-readme-extension' of https://github.com/pchaigno/licensee into pchaigno-mdown-readme-extension
2016-09-26 09:52:21 -04:00
Ben Balter
8dd4cdf520
convert tests to rspec
2016-09-25 18:42:36 -04:00
Paul Chaignon
59f540ac57
Add .mdown README extension
2016-09-25 22:28:58 +02:00
Jim Hester
f7cb765985
Verify the file starts with 'Package:' as well
...
This check is cheap and should give us very few false positives.
2016-09-23 10:15:44 -04:00
Jim Hester
46a6f9acec
Use modifier if
2016-09-23 10:15:44 -04:00
Jim Hester
7394be1e73
Add support for the CRAN package manager for R packages.
2016-09-23 10:15:44 -04:00
Ben Balter
09543fc8d3
add tests for each regex component
2016-09-23 09:34:36 -04:00
Ben Balter
b504109184
rename constants to ANY_EXT and PREFERRED_EXT
2016-09-23 09:18:06 -04:00
Ben Balter
96d8dd6b24
break license regex into constants
2016-09-22 11:24:31 -04:00
Waldir Pimenta
5da8c7f7d5
score LICENSE.md et al. over COPYING/COPYRIGHT
2016-09-21 14:51:15 +01:00
Waldir Pimenta
b418cc6772
harmonize scoring based on extension ( fixes #109 )
...
This change implements the following ranking:
1. No extension: LICENSE, COPYING, etc.
3. Filetype extension (syntactic annotation): UNLICENSE.txt, COPYRIGHT.md, etc.
2. Content-related extension (semantic annotation): COPYING.image, LICENCE.go, etc.
2016-09-21 14:51:15 +01:00
Ben Balter
722d09dad1
Bump to 8.5.0
2016-09-20 15:20:13 -04:00
Ben Balter
3120af2836
expose list of licenses by similarity to help debug false negatives
2016-09-20 15:14:53 -04:00
Ben Balter
943272720e
fix rubocop offenses
2016-09-20 14:20:30 -04:00
Ben Balter
588755486b
strip HRs from license before comparison
2016-09-20 13:56:01 -04:00
Ben Balter
f8c0526d57
Bump to 8.4.0
2016-09-15 09:16:38 -04:00
Ben Balter
3a404407a3
check for COPYING.lesser, not LICENSE.lesser
2016-09-14 17:03:16 -04:00
Ben Balter
41d639ccfd
edge case LICENSE.lesser for LGPL
2016-09-14 16:42:56 -04:00
Ben Balter
1c730ae1c0
absract out file, find_files, and find_file methods
2016-09-14 16:07:23 -04:00
Ben Balter
b76ff7da0e
fix for concatenated license detection
2016-09-13 13:23:02 -04:00
Ben Balter
7f74d4d9da
zlib license doesnt begin with copyright, use (c) instead
2016-09-13 13:20:48 -04:00
Ben Balter
c62db67cd6
exact matcher should also take into account length
2016-09-13 11:35:43 -04:00
Ben Balter
01baa08358
Bump to 8.3.1
2016-08-02 12:26:06 -04:00
Ben Balter
8a6e297062
pseudo licenses should have default meta
2016-08-02 12:03:08 -04:00
Ben Balter
aec0efafa0
Bump to 8.3.0
2016-07-05 12:03:39 -04:00
Ben Balter
70f9a85745
Bump to 8.2.1
2016-07-05 12:02:50 -04:00
Ben Balter
97171abc55
Bump to 8.2.0
2016-06-15 11:32:56 -04:00
Ben Balter
e0f244a768
update tests to match vendored licenses
2016-06-15 11:26:59 -04:00
Sebastian Schuberth
6087368af7
Properly close GitProject repositories when tearing down tests
2016-05-09 13:54:25 +02:00
Sebastian Schuberth
565d41ddcd
Commonly use Licensee.project() both for scanning files and directories
...
Defer the file check to the begin / rescue block in Licensee.project() as
creating a GitProject would fail for a file.
2016-05-03 16:23:40 +02:00
Ben Balter
93764265f2
Bump to 8.1.0
2016-04-28 07:33:23 -07:00
Sebastian Schuberth
23b8f7a371
Allow Licensee.license() to scan a single file
...
This is useful if you alread know the path to the license file (or want to
ensure the license file exists at the given path) and just want to check
for the type of license.
2016-04-28 11:54:32 +02:00
Sebastian Schuberth
2ca899165c
GitProject: Be clearer that also bare repositories are supported
...
As regular local Git repositories have working trees that could also be
processed by an FSProject, the main advantage of GitProject is that it can
handle bare repositories without actually checking the files out into a
working tree.
2016-04-14 16:52:24 +02:00
Sebastian Schuberth
abe81ecede
GitProject: Omit a superfluous module prefix
...
This equalizes the code a bit to the FSProject one.
2016-04-14 16:51:16 +02:00
Sebastian Schuberth
f58f7638aa
Ensure files are read with UTF-8 encoding by default
...
On Windows, simply running
$ bin/licensee LICENSE.md
resulted in
content_helper.rb:22: in `gsub!': incompatible encoding regexp match
(UTF-8 regexp with IBM437 string)
because both the input file and the license files (like "afl-3.0.txt"
which contains Unicode quotes) were read as IBM437-encoded strings. Fix
this by explicitly reading them as UTF-8 strings.
2016-04-14 11:14:38 +02:00
Paul Chaignon
d18c7d20c9
Fix shadowing local variable warnings
...
warning: shadowing outer local variable - name
2016-03-19 15:36:56 +01:00
Ben Balter
f183eda18c
Bump to 8.0.0
2016-03-10 10:39:27 -05:00
Ben Balter
9d2785e27e
Bump to 7.0.1
2016-03-10 10:33:56 -05:00
Ben Balter
1268cdbd99
Bump to 7.0.0
2016-02-22 14:53:05 -05:00
Ben Balter
ecbc2b5d6d
update vendored licenses
2016-02-22 14:40:23 -05:00
Ben Balter
dd110b13c8
disable failing tests
2016-01-13 12:03:35 -05:00
Ben Balter
478ffb8466
more rubocop fixes
2016-01-09 22:07:22 -05:00
Ben Balter
7d1a23249e
fix tests
2016-01-09 21:53:39 -05:00
Ben Balter
8f68377a75
rubocop fixes
2016-01-09 21:10:13 -05:00
Ben Balter
4a9ec6218b
initial commit of rubocop
2016-01-09 20:16:55 -05:00
Ben Balter
665766fc42
Merge branch 'master' into module
2016-01-04 11:25:54 -05:00
Brandon Keepers
b4dcebf1cd
Merge remote-tracking branch 'origin/master' into readme
...
* origin/master:
script/git-repo should shallow clone
move git project and fs project into their own files
Bump to 6.1.0
update vendored licenses
whitespace
normalize content before computing hash
expose license hash
Adding more info on how to call licensee. Also moved the command line usage above the library usage as it's a quicker way to get to use the code
fix for invalid byte sequence
expose licensee.project
allow License#all to be filtered by featured
update vendored licenses
update vendored licenses
💎 bump
update MPL text
2016-01-04 11:18:13 -05:00
Ben Balter
ef975dbed9
make licensee a module, not a class
2016-01-03 14:35:59 -05:00
Ben Balter
6ed519658d
move git project and fs project into their own files
2016-01-03 14:32:47 -05:00
Ben Balter
d4a4a70c4c
Bump to 6.1.0
2016-01-03 14:23:59 -05:00
Ben Balter
a5954aa42b
normalize content before computing hash
2015-11-26 16:22:58 -06:00
Ben Balter
4d08f578ef
expose license hash
2015-11-26 15:35:34 -06:00
Ben Balter
7a1f64092a
fix for invalid byte sequence
2015-11-09 15:52:29 -05:00
Ben Balter
e985d761ca
expose licensee.project
2015-11-09 15:28:34 -05:00
Ben Balter
34454f7c13
allow License#all to be filtered by featured
2015-11-03 11:37:22 -05:00
Ben Balter
bc03ab5635
💎 bump
2015-10-31 14:37:09 -04:00
Brandon Keepers
669b34f6e4
Only use the README if it has license content
2015-10-25 10:21:52 +01:00
Brandon Keepers
ee4fe3e00d
Add flag to enable readme detection
2015-10-24 18:07:59 +02:00
Brandon Keepers
db3b2f95d6
Add readme file that extracts license content
...
This only matches if there is a “License” heading in the content.
2015-10-24 17:51:55 +02:00
Vicent Marti
3bf6b0a4ed
Bump to 6.0.0b1
2015-09-28 02:34:24 -07:00
Vicent Marti
f14874f6aa
dice: Do not call `matches` twice
2015-09-28 02:07:29 -07:00
Ben Balter
76e8c8aef5
score all licenses since scoring is cheap
2015-09-25 12:17:45 -04:00
Vicent Marti
843d8ba18b
dice: Remove unused functions
2015-09-25 08:39:12 -07:00
Vicent Marti
0e8bd73a84
Deep refactoring for `script/benchmark`
2015-09-24 11:58:25 -07:00
Vicent Marti
aca09c73cc
Add support for filesystem-based projects
2015-09-24 11:46:19 -07:00
Vicent Marti
91b7a0f63f
Rename Matcher module
2015-09-24 08:30:20 -07:00
Vicent Marti
76d7394193
Cleanup requires
2015-09-24 07:46:24 -07:00
Vicent Marti
d2379d8b2a
More filename helpers
2015-09-24 07:45:18 -07:00
Vicent Marti
f48a5b8274
Remove FilesystemRepository abstraction
2015-09-24 07:34:38 -07:00
Vicent Marti
30c60c0b91
Rename a couple classes
2015-09-24 07:24:10 -07:00
Vicent Marti
4e36ec0cba
Fix filename in ProjectFile
2015-09-24 03:19:18 -07:00
Vicent Marti
0ce0910eb0
Refactor
2015-09-24 02:59:03 -07:00
Ben Balter
6671e07d2e
💎 bump
2015-09-08 13:35:11 -04:00
Ben Balter
f6b3c6deb3
fix comment
2015-09-08 12:35:14 -04:00
Ben Balter
72fa8653d0
reorder license preference
2015-09-08 12:29:10 -04:00
Ben Balter
eaeb596ddf
prefer license files without an extension to license files with an extension
2015-09-08 12:19:56 -04:00
Ben Balter
cc5b70c3d8
memoize false and nil values
2015-09-03 18:52:38 -04:00
Ben Balter
1bb6857df8
💎 bump
2015-09-03 17:45:45 -04:00
Ben Balter
71ba32723e
fix for rewrapped MIT with no title
2015-09-03 17:39:11 -04:00
Ben Balter
f5a2c025a3
💎 bump
2015-09-02 12:44:51 -04:00
Ben Balter
d9c39adc6f
strip null bytes
2015-09-02 12:18:45 -04:00
Ben Balter
9bc82c3fc1
💎 bump
2015-09-02 12:10:10 -04:00
Ben Balter
5f620e43ce
verify MIT w/o title is detected
2015-09-02 12:00:39 -04:00
Ben Balter
86bc169ccf
next, not return
2015-09-02 11:50:50 -04:00
Ben Balter
d476a6b7de
Merge branch 'master' of https://github.com/benbalter/licensee into shoutout
2015-09-01 19:28:05 -04:00
Ben Balter
8e5abe96e5
test
2015-09-01 18:58:02 -04:00
Ben Balter
b94497a16b
remove diff method
2015-09-01 18:46:06 -04:00
Ben Balter
cb23de537f
fix benchmark to respect copyright line breaks
2015-09-01 18:36:33 -04:00
Ben Balter
c2c853338a
strip attribution prior to comparison
2015-09-01 17:50:41 -04:00
Ben Balter
01c50f1c1c
spike out attribution detection
2015-09-01 16:32:49 -04:00
Ben Balter
c2d8180350
confirm license contains the license name or nickname if it should
2015-09-01 16:10:47 -04:00
Ben Balter
19d0134719
add the other license
2015-09-01 11:11:35 -04:00
Ben Balter
b264699dd9
dont error on comparison of license with nil
2015-09-01 10:51:21 -04:00
Ben Balter
f8c51c5351
💎 bump
2015-09-01 10:36:49 -04:00
Ben Balter
fa3dcf3c4d
hide hidden licenses by default
2015-09-01 10:36:27 -04:00
Ben Balter
20c24e2f1a
allow all to accept options
2015-09-01 10:07:37 -04:00
Ben Balter
a141a488d6
fix for projects with license files and package files
2015-08-27 16:50:46 -04:00
Ben Balter
160db7b519
beta1
2015-08-27 16:23:07 -04:00
Ben Balter
0b05170082
fix benchmark
2015-08-27 16:18:24 -04:00
Ben Balter
128c8fbce4
remove the licenses class
2015-08-27 16:15:25 -04:00
Ben Balter
6acf8c072e
dont error if no license is found
2015-08-27 15:41:22 -04:00
Ben Balter
b09831ac90
turn on package matching in a few more places
2015-08-27 15:38:37 -04:00
Ben Balter
57a300ab5c
remove ::File
2015-08-27 13:06:33 -04:00
Ben Balter
4b945196af
Rename File to ProjectFile
2015-08-27 13:05:34 -04:00
Ben Balter
0d6cb62d78
use regex to parse json
2015-08-27 12:55:34 -04:00
Ben Balter
7f15532679
add gemspec matcher
2015-08-26 19:55:51 -04:00
Ben Balter
31de86b2a7
spike out support for package managers
2015-08-26 19:14:47 -04:00
Ben Balter
06d600118e
💎 bump
2015-08-22 16:24:36 -04:00
Ben Balter
a5c33f0f6c
add hidden? method
2015-08-22 16:24:05 -04:00
Ben Balter
e56011e7be
💎 bump
2015-08-22 16:14:52 -04:00
Ben Balter
e74e6276e3
meta defaults
2015-08-22 16:09:56 -04:00
Ben Balter
a6e6e61318
update vendored licenses
2015-08-22 15:59:59 -04:00
Ben Balter
6600631f05
make confidence threshold configurable
2015-08-20 12:04:21 -04:00
Ben Balter
3af5516ebb
💎 bump
2015-08-19 13:19:42 -04:00
Ben Balter
afd2d3f435
test ruby 1.9.3
2015-08-19 13:03:15 -04:00
Ben Balter
cf8029979b
💎 bump
2015-08-19 11:56:23 -04:00
Ben Balter
88ba5657ac
fix for ascii-8bit encoded licenses
2015-08-19 11:54:25 -04:00
Arfon Smith
c3f0f72dd2
Fixing some typos
2015-07-25 18:06:54 +01:00
Juanito Fatas
3a8f979252
Fix a typo in lib/licensee.rb
2015-07-24 15:23:26 +08:00
Ben Balter
e72ff8a01e
Merge branch 'master' of https://github.com/benbalter/licensee
2015-07-20 19:15:26 -04:00
Ben Balter
92ad3be2c6
💎 bump
2015-07-20 19:15:20 -04:00
Ben Balter
67ed5ecf8f
Merge pull request #39 from benbalter/no-license
...
Properly return nil from license_hash when no_license is found
2015-07-20 19:15:07 -04:00
Ben Balter
36654dd16d
s/safe_yaml/safe_load
2015-07-20 19:11:30 -04:00
Ben Balter
d576083271
test for lack of license
2015-07-20 19:09:42 -04:00
Ben Balter
00d492dbbf
💎 bump
2015-07-20 18:31:42 -04:00
Ben Balter
de7e6aad8e
Merge pull request #38 from benbalter/ruby-2.0
...
Check if safe_yaml exists before calling
2015-07-20 18:30:56 -04:00
Ben Balter
1f0b704d15
Merge pull request #36 from benbalter/license-precidence
...
License preference
2015-07-20 18:13:37 -04:00
Ben Balter
1f449ea817
ruby 2.0 support
2015-07-20 18:06:44 -04:00
Ben Balter
f31209e8b3
use yaml.safe_load
2015-07-20 17:20:35 -04:00
Ben Balter
e796c9b424
prioritize regex
2015-07-20 17:12:18 -04:00
Ben Balter
a8466a51f7
support other license
2015-07-09 11:15:35 -04:00
Ben Balter
8c7ee0dc53
fail loudly on invalid licenses
2015-07-09 10:58:57 -04:00
Ben Balter
65f7900e96
remove rescues
2015-07-09 10:31:46 -04:00
Ben Balter
536ecfd7b9
💎 bump
2015-07-09 10:07:46 -04:00
Ben Balter
fe332deeed
whitespace
2015-07-09 10:01:39 -04:00
Ben Balter
e325ba62fc
document match_license_file method
2015-07-09 10:00:59 -04:00
Ben Balter
1ef9b705f0
expose match_license_file method
2015-07-09 09:57:36 -04:00
Ben Balter
a7261903de
better file matching regex
2015-06-29 18:25:12 -04:00
Ben Balter
09ac2b63fc
💎 bump
2015-06-27 13:10:55 +09:00
Ben Balter
a6871315ca
expose license_file path
2015-06-27 13:00:55 +09:00
Ben Balter
ec4188974f
💎 bump
2015-06-25 08:51:07 +09:00
Mislav Marohnić
0f1e9b9d86
Handle non-git repos in Licensee::Project
...
If a project is detected to not be a git repo, simply scan the files in
that directory manually using FilesystemRepository substituting
Rugged::Repository.
2015-06-24 15:20:49 -05:00
Ben Balter
8b0369ded0
use real ruby string start anchor
2015-04-01 17:28:03 -04:00
Ben Balter
29f94b4558
Merge pull request #24 from jontro/patch-1
...
Add copyright to list of filenames
2015-04-01 17:02:50 -04:00
Ben Balter
2b4b89c109
💎 bump
2015-04-01 16:16:23 -04:00
Ben Balter
937e6097f2
strip leading newlines from body
2015-04-01 16:06:37 -04:00
Arfon Smith
42520c51f0
Update version.rb
2015-03-24 13:59:06 -05:00
Jonas Trollvik
d282cc53c6
Add copyright to list of filenames
...
COPYRIGHT is also used as specifying the license.
Searching github gives 276499 matches for files named copyright.
2015-03-09 23:00:10 +01:00
Ben Balter
5d633f5449
💎 bump
2015-03-08 10:55:18 -04:00
Ben Balter
78042fc121
prefer copyright over exact matcher
2015-03-07 16:27:18 -05:00
Ben Balter
c4a6fc6699
cleanup
2015-03-07 16:23:00 -05:00
Ben Balter
8e6a9543a7
better regex
2015-03-07 16:20:19 -05:00
Ben Balter
55e231bdee
better no license matching
2015-03-07 16:06:34 -05:00
Ben Balter
6366002e2f
less chaos
2015-03-07 15:29:17 -05:00
Ben Balter
f8bd2dbeb2
add support for detecting non-licensed projects
2015-03-07 15:06:29 -05:00
Ben Balter
d72a362f48
💎 bump
2015-03-07 14:25:31 -05:00
Ben Balter
d86fcd66e4
💎 bump
2015-03-05 19:52:02 -05:00
Ben Balter
e4ef84599e
support licence files
2015-03-05 19:50:33 -05:00
Ben Balter
612ba278eb
break things up a bit for easier testing
2015-02-27 17:40:47 -05:00
Ben Balter
cd29df5c39
💎 bump
2015-02-27 17:03:26 -05:00
Ben Balter
3dea53842f
filter for blobs before looking for a license
2015-02-27 17:03:14 -05:00
Ben Balter
971efc65d5
Merge branch 'master' of https://github.com/benbalter/licensee
2015-02-27 16:21:42 -05:00
Ben Balter
bba6d3d6d6
💎 bump
2015-02-27 16:18:54 -05:00
Ben Balter
e32adecc6e
support for FOO-LICENSE and LICENSE-FOO filenames
2015-02-27 16:12:48 -05:00
Ben Balter
4c54b1d12b
💎 bump
2015-02-26 13:58:31 -05:00
Ben Balter
a17f595275
featured? should always return a bool
2015-02-26 13:56:12 -05:00
Ben Balter
f6d57324ea
💎 bump
2015-02-26 12:39:23 -05:00
Ben Balter
9b2eff623c
require version
2015-02-26 12:39:07 -05:00
Ben Balter
32f38673db
bump to 4.2.2
2015-01-14 15:38:52 -05:00
Ben Balter
b046298674
fix for case sensitive license filenames
2015-01-14 15:26:57 -05:00
Ben Balter
90c6104c60
💎 bump
2014-12-22 12:45:07 -05:00
Ben Balter
04d84fef2b
fix for Licensee::License.all
2014-12-01 12:39:08 -06:00
Ben Balter
99a2212faf
💎 bump
2014-12-01 12:27:29 -06:00
Ben Balter
bfc7c29b34
expose license url
2014-12-01 12:26:31 -06:00
Ben Balter
33dce53606
💎 bump
2014-11-19 12:45:04 -05:00
Ben Balter
822bab5724
better handling of content-less licenses
2014-11-11 13:35:36 -06:00
Ben Balter
62b8008ea5
expose keys
2014-11-10 10:30:50 -05:00
Ben Balter
2bede1c2b8
expose find and sorted_licenses methods
2014-11-10 10:11:42 -05:00
Ben Balter
bbd65fdbfe
use key and name to expose license info
2014-11-10 10:01:59 -05:00
Ben Balter
2dd2e06aba
💎 bump
2014-10-10 17:06:20 -04:00
Ben Balter
d99503b63b
fine tuning
2014-10-10 17:03:24 -04:00
Ben Balter
e92f6b124f
moar documentation
2014-10-10 16:50:59 -04:00
Ben Balter
2e2b2c74c5
comment all the things
2014-10-10 16:42:34 -04:00
Ben Balter
8e230f4151
passing tests!
2014-10-10 16:23:04 -04:00
Ben Balter
2cdb48028a
refactor all the htings
2014-10-10 16:12:47 -04:00
Ben Balter
526b84343d
reimplement levenshtein as a fallback
2014-10-07 19:07:09 -04:00
Ben Balter
3e6a2ed2b3
failing test for wrapped licenses
2014-10-02 18:11:15 -04:00
Ben Balter
0e6b490188
remove cruft
2014-10-02 13:20:44 -04:00
Ben Balter
e8bae208fa
drop .to_h, fixes #7
2014-10-02 13:03:28 -04:00
Ben Balter
2a24dff3b4
💎 bump
2014-10-02 12:57:13 -04:00
Vicent Marti
7ae0ca4976
Fix arguments to Project
2014-10-02 18:41:15 +02:00
Vicent Marti
1f5db75546
Implement diff using Rugged :)
2014-10-02 18:22:30 +02:00
Vicent Marti
ec3f734864
Use Rugged instead of accessing the filesystem directly
2014-10-01 15:48:45 +02:00
Ben Balter
b5d633b641
💎 bump
2014-09-29 13:18:03 -04:00
Ben Balter
770050c6f5
💎 bump
2014-09-28 14:50:09 -05:00
Ben Balter
c907b20c80
use sorted licenses
2014-09-28 14:37:00 -05:00
Ben Balter
3d7b2aecaa
simplify threshold
2014-09-28 14:23:06 -05:00