mirror of
https://github.com/github/choosealicense.com
synced 2024-11-05 19:28:50 +01:00
ECL-2.0 examples
This commit is contained in:
parent
5130f12df1
commit
1a841848b3
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user