mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 12:50:24 +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.
|
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:
|
using:
|
||||||
|
- Ansible: https://github.com/ansible/ansible/blob/devel/COPYING
|
||||||
- Bash: https://git.savannah.gnu.org/cgit/bash.git/tree/COPYING
|
- Bash: https://git.savannah.gnu.org/cgit/bash.git/tree/COPYING
|
||||||
- GIMP: https://git.gnome.org/browse/gimp/tree/COPYING
|
- GIMP: https://git.gnome.org/browse/gimp/tree/COPYING
|
||||||
- Privacy Badger: https://github.com/EFForg/privacybadgerfirefox/blob/master/LICENSE
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
- commercial-use
|
- commercial-use
|
||||||
|
@ -64,6 +64,8 @@ describe 'license meta' do
|
|||||||
example_url = example.values[0]
|
example_url = example.values[0]
|
||||||
if example_url.index('https://github.com/') == 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')
|
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
|
end
|
||||||
content = open(example_url).read
|
content = open(example_url).read
|
||||||
detected = Licensee::ProjectFiles::LicenseFile.new(content, 'LICENSE').license
|
detected = Licensee::ProjectFiles::LicenseFile.new(content, 'LICENSE').license
|
||||||
|
Loading…
x
Reference in New Issue
Block a user