mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 04:40:09 +01:00
Update GPLv3 examples
This commit is contained in:
parent
642783cf4b
commit
5130f12df1
@ -14,9 +14,9 @@ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of
|
||||
note: The Free Software Foundation recommends taking the additional step of adding a boilerplate notice to the top of each file. The boilerplate can be found at the end of the license.
|
||||
|
||||
using:
|
||||
- Ansible: https://github.com/ansible/ansible/blob/devel/COPYING
|
||||
- Bash: https://git.savannah.gnu.org/cgit/bash.git/tree/COPYING
|
||||
- GIMP: https://git.gnome.org/browse/gimp/tree/COPYING
|
||||
- Privacy Badger: https://github.com/EFForg/privacybadgerfirefox/blob/master/LICENSE
|
||||
|
||||
permissions:
|
||||
- commercial-use
|
||||
|
@ -64,6 +64,8 @@ describe 'license meta' do
|
||||
example_url = example.values[0]
|
||||
if example_url.index('https://github.com/') == 0
|
||||
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/')
|
||||
end
|
||||
content = open(example_url).read
|
||||
detected = Licensee::ProjectFiles::LicenseFile.new(content, 'LICENSE').license
|
||||
|
Loading…
x
Reference in New Issue
Block a user