From 5419f535cea0394db796544abbb9d7958d6f5b0f Mon Sep 17 00:00:00 2001 From: Mike Linksvayer Date: Tue, 24 Dec 2019 13:51:15 -0800 Subject: [PATCH] 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. --- _includes/sidebar.html | 2 ++ _licenses/gpl-3.0.txt | 2 +- _licenses/lgpl-3.0.txt | 1 - spec/license_shown_spec.rb | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 72e56af..56d4d93 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -1,6 +1,7 @@ + {% endunless %}

How to apply this license

diff --git a/_licenses/gpl-3.0.txt b/_licenses/gpl-3.0.txt index 2e93005..fa71f4a 100644 --- a/_licenses/gpl-3.0.txt +++ b/_licenses/gpl-3.0.txt @@ -8,7 +8,7 @@ hidden: false description: Permissions of this strong copyleft license are conditioned on making available complete source code of licensed works and modifications, which include larger works using a licensed work, under the same license. Copyright and license notices must be preserved. Contributors provide an express grant of patent rights. -how: Create a text file in the root of your source code, typically named COPYING (a GNU convention), LICENSE or LICENSE.txt. Then copy the text of the license into that file. +how: Create a text file in the root of your source code, typically named COPYING (a GNU convention). Then copy the text of the license into that file. 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. diff --git a/_licenses/lgpl-3.0.txt b/_licenses/lgpl-3.0.txt index e27c333..407ae1f 100644 --- a/_licenses/lgpl-3.0.txt +++ b/_licenses/lgpl-3.0.txt @@ -3,7 +3,6 @@ title: GNU Lesser General Public License v3.0 spdx-id: LGPL-3.0 nickname: GNU LGPLv3 redirect_from: /licenses/lgpl-v3/ -hidden: false description: Permissions of this copyleft license are conditioned on making available complete source code of licensed works and modifications under the same license or the GNU GPLv3. Copyright and license notices must be preserved. Contributors provide an express grant of patent rights. However, a larger work using the licensed work through interfaces provided by the licensed work may be distributed under different terms and without source code for the larger work. diff --git a/spec/license_shown_spec.rb b/spec/license_shown_spec.rb index 438a536..384da13 100644 --- a/spec/license_shown_spec.rb +++ b/spec/license_shown_spec.rb @@ -15,14 +15,14 @@ describe 'shown licenses' do gpl-2.0 gpl-3.0 lgpl-2.1 - lgpl-3.0 mit mpl-2.0 unlicense ].freeze it 'has the expected number of shown licenses' do - expect(shown_licenses.count).to eql(13) + expect(shown_licenses.count).to eql(12) + expect(SHOWN_LICENSES.count).to eql(shown_licenses.count) end shown_licenses.each do |license|