Commit Graph

108 Commits

Author SHA1 Message Date
Mike Linksvayer ebef287bbd
accommodate code.qt.io in tests 2022-09-26 09:53:00 -07:00
Mike Linksvayer cce738fbed
remove agpl-3.0 from legacy list with no examples since we're adding 3 2022-08-25 15:27:30 -07:00
Mike Linksvayer 8b99ed7734
Merge branch 'gh-pages' into gh-pages 2022-06-10 12:06:19 -04:00
Mike Linksvayer 8359cdcb3f
avoid master->gh-pages redirect 2022-04-27 07:43:32 -07:00
Baoshuo Ren 1a2ed66239
chore: remove git.io
All links on git.io will stop redirecting after April 29, 2022.

- https://github.blog/changelog/2022-04-25-git-io-deprecation/
2022-04-27 17:19:40 +08:00
Mike Linksvayer 85703571e2
Merge branch 'gh-pages' into gh-pages 2022-01-22 14:14:48 -08:00
Mike Linksvayer 20d853259a
rubocop suggestions 2022-01-05 17:51:14 -08:00
nytpu da312bcaa9 add ohwr.org to license_meta_spec.rb 2021-08-24 10:05:25 -06:00
Mike Linksvayer ec9bbeaeae
Allow bundle updae and tests to be run under ruby 3 2021-04-04 23:09:00 -07:00
Mike Linksvayer af860ab642
rubocop: indent 2021-03-29 09:32:31 -07:00
Mike Linksvayer 07e3e9521f
rubocop fixes 2021-03-29 09:30:10 -07:00
Mike Linksvayer d4f8e2afe1 license-list-XML as submodule and further monkeypatch licensee to use it 2021-02-26 13:47:53 -08:00
Mike Linksvayer 926d3eb55d more concise comment 2020-10-03 11:35:53 -07:00
ObserverOfTime e655e40c30
Fix linter warning 2020-10-03 12:01:45 +03:00
ObserverOfTime a5e495914c
Convert license `using` array to map 2020-10-03 11:34:50 +03:00
Nick Schonning 0575f3d094 chore: Use GitHub Actions for CI 2020-09-11 17:45:21 -04:00
Mike Linksvayer 3074bf679a Suppress warning about pending cops, changes suggested by enabled cops 2020-07-30 11:53:51 -07:00
Mike Linksvayer 2d9e5be8c2 slightly reduce branches apparent to rubocop to satisfy rubocop 2020-07-23 12:28:53 -07:00
Mike Linksvayer 12f42cabb9 add vim to hard to detect licenses pending https://github.com/licensee/licensee/pull/437
update NCSA exmaple
2020-06-21 15:53:25 -07:00
Mike Linksvayer 4c002534af Show BSL-1.0 between MIT and Unlicense in license spectrum 2019-12-26 13:41:37 -08:00
Mike Linksvayer 5419f535ce Amend [G]GPL-3.0 how to apply and "hide" LGPL-3.0 from PR initiator
as it requires multiple steps not supported by GitHub license picker,
should be carried out by people who know exactly what they're doing.
2019-12-24 13:51:15 -08:00
Mike Linksvayer dee309c3b5
Merge branch 'gh-pages' into cc0-source-text 2019-11-23 14:28:11 -08:00
Mike Linksvayer 379bf41d44 fix yaml, test 2019-11-20 08:11:57 -08:00
Mike Linksvayer 7a93042df8
Merge branch 'gh-pages' into bin-no-by 2019-11-19 15:48:46 -08:00
Waldir Pimenta 3aec270042 Add examples for Creative Commons licenses and OFL
Also adjust instructions in README.md to match CONTRIBUTING.md
2019-11-19 23:13:41 +00:00
Mike Linksvayer 08ec1de724 Add BSL-1.0 and Zlib examples 2019-11-18 10:32:39 -08:00
Mike Linksvayer 4b67edf0db relax github.com regex to allow for more branch names 2019-06-17 18:35:00 -07:00
Mike Linksvayer 3909e2190a bow to new rubocop rule 2018-09-24 15:39:55 -07:00
Mike Linksvayer 719b9bd02e BSD-2/3-Clause numbered list, uses
SPDX and OSI have numbered lists for these licenses
2018-08-18 16:17:46 -07:00
Mike Linksvayer 9f263936b2 http->https for misc links outside of license texts
artistic-2.0 source changed because perlfoundation website timing out
2018-05-22 13:39:44 -07:00
Mike Linksvayer 278bae2316 test handle repo name with . in it 2018-04-24 16:43:47 -07:00
W. Trevor King 24fbf6685d spec_helper: Adjust to new 'licenses' key in the FSF API
The old root object has been moved under 'licenses' with
wking/fsf-api@8398a357 (pull: Add JSON-LD markup, 2018-01-04,
wking/fsf-api#12) for better forward/backward compatibility.
Unfortunately, this results in another one-time incompatible change,
which this commit accommodates.

The protection from future changes (which should be rare) isn't great,
because we're still parsing the document as JSON.  There is at least
one JSON-LD parser for Ruby [1], but I've stuck with vanilla JSON to
avoid pullling in an external dependency just for this rather
peripheral functionality.

[1]: https://github.com/ruby-rdf/json-ld/
2018-04-07 16:22:44 -07:00
Mike Linksvayer adb35c0c82 Rubocop 0.53 doesn't like kernel#open use more specific OpenURI.open_uri instead
841569b305/manual/cops_security.md (securityopen)

Not sure this is really a problem for tests, but easiest to just change.
2018-03-14 18:45:10 -07:00
W. Trevor King 84a7bbbf96 spec_helper: Extract FSF approval from wking.github.io/fsf-api
Ideally the FSF would be maintaining the API (or any API), but until
someone can talk them into that I think we can save work by
collaborating on the mock API.  Using a JSON API also allows us to
drop the Nokogiri dependency.

The parens feel excessive, and I'm not familiar with Ruby, so they
might be.  However, removing the parens from the libre check resulted
in:

  $ ./script/check-approval ISC
  ./script/check-approval:8:in `require_relative': /.../choosealicense.com/spec/spec_helper.rb:108: syntax error, unexpected tSTRING_BEG, expecting keyword_then or ';' or '\n' (SyntaxError)
  ...gs') && meta['tags'].include? 'libre'
  ...                               ^
  /.../choosealicense.com/spec/spec_helper.rb:116: syntax error, unexpected keyword_end, expecting end-of-input
          from ./script/check-approval:8:in `<main>'
2018-01-03 11:53:36 -08:00
W. Trevor King af78adb4fe spec_helper: Restore case-insensitive matching in find_spdx
The previous case-insensitive matching was removed in e5f46faa (test
required spdx-ids against data from spdx, 2016-05-25, #418).  That
commit was designed [1] to allow case-sensitive matching as discussed
in [2].  But while I'm in favor of case-sensitive keys in spdx_list,
the case-sensitive match breaks script/check-approval which downcases
its argument since it was added in 8e56bb83 (add
script/check-approval, 2016-01-18, #318).

There are more notes on SPDX's plans for case sensitivity in [3], so
we should see a clearer policy there soon.  I'm arguing for
case-sensitive *display* with optional case-insensitive matching.  I
am optimistic that the SPDX will at least agree not to register short
IDs that only differ by case, which is all we need to make this
case-insensitive match safe here.

[1]: https://github.com/github/choosealicense.com/pull/418#issuecomment-221404630
[2]: https://github.com/benbalter/licensee/issues/72
[3]: https://github.com/spdx/spdx-spec/issues/63
2018-01-03 11:13:08 -08:00
Mike Linksvayer 316bd0b828 match _ fields, require preceding space (ex CECILL-2.1) 2018-01-02 14:35:04 -08:00
Mike Linksvayer d7bf3ac98a Revert "rm no longer relevant test"
This reverts commit 5e7b07f998.
2018-01-02 14:25:04 -08:00
Mike Linksvayer a093c99d3c rubocop 2017-12-30 15:48:07 -08:00
Mike Linksvayer 2459e4ff99 add test that this project's license detected as MIT 2017-12-30 15:38:31 -08:00
Mike Linksvayer 7b6067ed2c
Merge branch 'gh-pages' into epl-2.0 2017-12-29 14:58:54 -08:00
Mike Linksvayer 102887fbeb use SPDX license list 3.0 2017-12-29 14:30:08 -08:00
Mike Linksvayer 5c75a337d5
Merge branch 'gh-pages' into epl-2.0 2017-11-27 13:20:23 -08:00
Mike Linksvayer 8630a017f8 @benbalter review suggestions 2017-11-27 12:56:25 -08:00
Mike Linksvayer 2c9fa4907e don't attempt heavily templated NCSA and PostgreSQL for now 2017-11-25 20:57:24 -08:00
Mike Linksvayer 1a841848b3 ECL-2.0 examples 2017-11-25 20:32:19 -08:00
Mike Linksvayer 5130f12df1 Update GPLv3 examples 2017-11-25 20:27:20 -08:00
Mike Linksvayer 642783cf4b GPLv2 examples that can be detected 2017-11-25 20:15:01 -08:00
Mike Linksvayer 0e2a2653bd path item can include - 2017-11-25 19:56:20 -08:00
Mike Linksvayer 7649067151 Test examples provided in 'using:' would be detected by licensee 2017-11-25 16:16:11 -08:00
Mike Linksvayer 3532d9cbed Add EPL-2.0 2017-11-24 14:15:52 -08:00