Ben Balter
f4f2cde02b
normalize quotes in license text
2018-01-22 13:19:42 -05:00
Ben Balter
a7ffc53237
Merge pull request #263 from andrew/ruby-2.5
...
Test against ruby 2.5.0
2018-01-16 10:43:40 -05:00
Andrew Nesbitt
2f409eb513
Merge branch 'master' into ruby-2.5
2018-01-09 15:56:02 +00:00
Andrew Nesbitt
6809b728a9
Test against ruby 2.5.0
2018-01-09 15:28:00 +00:00
Ben Balter
45a8108634
Merge pull request #261 from wking/cargo-spdx-expressions
...
matchers/cargo: Allow SPDX expressions
2018-01-09 09:44:39 -05:00
W. Trevor King
87cfeb43c0
matchers/cargo: Allow SPDX expressions
...
Using a regex that is similar to the one in
lib/licensee/matchers/spdx.rb in allowing spaces and parens. Parens
aren't currently supported by Cargo's crates.io backing [1,2], but
that's hopefully a temporary limitation. And Cargo/crates.io already
supports OR forms [3].
Ideally licensee would return the full license expression in these
cases instead of 'other' [4]. But since that conversion is happening
outside the matcher, this commit isn't making that any worse (although
it means this test isn't quite a unit test).
[1]: https://github.com/rust-lang-nursery/license-exprs/issues/3
[2]: c89dd6452c
[3]: https://github.com/rust-lang/cargo/pull/4920
[4]: https://github.com/benbalter/licensee/issues/244
2018-01-08 16:40:51 -08:00
Ben Balter
3a105b0e40
Merge pull request #259 from andrew/elm
...
Allow detection of license in elm-package.json
2018-01-05 09:51:42 -05:00
Andrew Nesbitt
3752e273f0
Merge branch 'master' into elm
2018-01-05 10:39:08 +00:00
Andrew Nesbitt
a99b08e186
Merge pull request #260 from andrew/add-cargo-test
...
Add missing test for Cargo.toml in PackageManagerFile spec
2018-01-04 23:10:14 +00:00
Andrew Nesbitt
8b9bcb9f7c
Add missing test for Cargo.toml in PackageManagerFile spec
2018-01-04 18:51:38 +00:00
Andrew Nesbitt
ce51d65aac
Allow detection of license in elm-package.json
...
Uses the NpmBower matcher as the format is almost identical
2018-01-04 18:49:28 +00:00
Mike Linksvayer
1264dc9d7c
Merge pull request #258 from benbalter/cargo-slash
...
multiple licenses in Cargo.toml obtains other rather than nil
2018-01-03 17:48:33 -08:00
Mike Linksvayer
73798e9b1c
rubocop
2018-01-03 16:54:44 -08:00
Mike Linksvayer
54aa183ab5
/ in license field obtains other
...
http://doc.crates.io/manifest.html#package-metadata
also remove _ which is not used in license ids, add + which is
2018-01-03 16:50:23 -08:00
Ben Balter
ef47643d65
Merge pull request #257 from andrew/cargo
...
Add support for matching licenses in Cargo.toml
2018-01-03 11:17:28 -05:00
Andrew Nesbitt
5093a2682c
Add support for Cargo.toml
2018-01-03 10:23:34 +00:00
Ben Balter
4e20608c72
Bump to 9.7.0
2018-01-02 11:01:45 -05:00
Ben Balter
17b0980828
Merge branch 'master' of https://github.com/benbalter/licensee
2018-01-02 10:59:17 -05:00
Ben Balter
6000964cd7
bump rubocop dependency
2018-01-02 10:58:45 -05:00
Ben Balter
37152ba317
Merge pull request #256 from benbalter/dot-header
...
Exclude license.header files from matching
2018-01-02 10:57:43 -05:00
Ben Balter
06918fcae9
Merge branch 'master' into dot-header
2018-01-02 10:49:47 -05:00
Ben Balter
4593ffc585
update vendored licenses
2018-01-02 10:49:35 -05:00
Ben Balter
19f939853e
Merge branch 'master' into dot-header
2018-01-02 10:44:49 -05:00
Ben Balter
6f69f10c89
Merge pull request #255 from benbalter/dot-repo
...
allow repos to have . in name
2018-01-02 10:44:30 -05:00
Mike Linksvayer
e3d88aa465
more explicit documentation
2017-12-31 10:37:38 -08:00
Mike Linksvayer
1e17049d0e
Exclude .header ext from being a license file
2017-12-31 10:21:45 -08:00
Mike Linksvayer
5970a74d8f
add LICENSE.header to fixture to make test fail
...
see https://github.com/benbalter/licensee/issues/248
2017-12-31 10:11:51 -08:00
Mike Linksvayer
d59046d33b
rm test sometimes hitting GitHub API rate limit when run in CI context
2017-12-30 15:13:12 -08:00
Mike Linksvayer
533c63af20
rubocop
2017-12-30 14:37:57 -08:00
Mike Linksvayer
c70e2c14bd
allow repos to have . in name
2017-12-30 14:34:08 -08:00
Ben Balter
e32df8c033
make shellcheck happy
2017-12-28 12:07:10 -05:00
Ben Balter
f8d5ae5472
test bin can recieve a URL
2017-12-28 12:06:00 -05:00
Ben Balter
d1c8c12aca
allow script/git-repo to accept a owner/repo in addition to URLs
2017-12-28 12:03:23 -05:00
Ben Balter
0e81259ed4
Merge pull request #249 from benbalter/strip-markdown
...
Strip markdown prior to comparison
2017-12-28 12:03:03 -05:00
Ben Balter
043cd77845
test markup stripping
2017-12-28 11:54:07 -05:00
Ben Balter
3ddd9f1f05
update test expectations
2017-12-28 11:50:43 -05:00
Ben Balter
7bd1aa65a7
allow END OF TERMS AND CONDITIONS to be bold or italic
2017-12-28 11:47:50 -05:00
Ben Balter
08f3779600
blacklist markup characters
2017-12-28 11:46:16 -05:00
Ben Balter
c9c571c38c
Merge branch 'master' into strip-markdown
2017-12-28 11:41:33 -05:00
Ben Balter
ddf13220c4
Merge pull request #252 from benbalter/github-project-tests
...
Use webmock to test stub Octokit responses
2017-12-28 11:34:22 -05:00
Ben Balter
435ae88718
correct shellcheck errors
2017-12-27 20:17:14 -05:00
Ben Balter
c5505620b6
script/git-repo should use GitHubProject
2017-12-27 20:14:58 -05:00
Ben Balter
a5d614efd0
no submodules!
2017-12-27 19:58:23 -05:00
Ben Balter
95018e0c1e
test GitHub project as part of project_spec
2017-12-27 19:56:57 -05:00
Ben Balter
b6788ba02c
test GitHub project as part of project_spec.rb
2017-12-27 19:43:20 -05:00
Ben Balter
cf7ee51ca3
add real gemspec
2017-12-27 19:03:32 -05:00
Ben Balter
301898308a
use webmock to test stub Octokit responses
2017-12-27 18:55:00 -05:00
Ben Balter
b2dda1a141
minor style changes to github project spec
2017-12-27 18:35:44 -05:00
Nick Campbell
1b9d1f2b00
Add support for GitHub projects
...
Rather than querying the local filesystem, we can use the Github API to
resolve folder contents and the individual files within.
This isn't going to be performant - requests are not made in parallel -
and there is absolutely no error handling.
2017-12-27 22:08:40 +00:00
Ben Balter
61e7501d37
also allow commas
2017-12-20 14:22:55 -05:00