1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 04:40:09 +01:00

ECL-2.0 examples

This commit is contained in:
Mike Linksvayer 2017-11-25 20:32:19 -08:00
parent 5130f12df1
commit 1a841848b3
2 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,7 @@ note: The Apereo Foundation recommends taking the additional step of adding a bo
using:
- Sakai: https://github.com/sakaiproject/sakai/blob/master/LICENSE
- OAE: https://github.com/oaeproject/Hilary/blob/master/LICENSE
- Opencast: https://bitbucket.org/opencast-community/opencast/src/905077ba5e6483f8c49869a1fc13bf9268790a79/LICENSE?at=develop
- Opencast: https://bitbucket.org/opencast-community/opencast/src/905077ba5e6483f8c49869a1fc13bf9268790a79/LICENSE
permissions:
- commercial-use

View File

@ -66,6 +66,8 @@ describe 'license meta' do
example_url.gsub!(%r{\Ahttps://github.com/([\w-]+/[\w-]+)/blob/([\w-]+/\S+)\z}, 'https://raw.githubusercontent.com/\1/\2')
elsif example_url.index('https://git.savannah.gnu.org/') == 0 || example_url.index('https://git.gnome.org/') == 0
example_url.gsub!(%r{/tree/}, '/plain/')
elsif example_url.index('https://bitbucket.org/') == 0
example_url.gsub!(%r{/src/}, '/raw/')
end
content = open(example_url).read
detected = Licensee::ProjectFiles::LicenseFile.new(content, 'LICENSE').license