Skip to content

Commit 08d8173

Browse files
authored
Merge pull request #456 from github/unhidden-criteria
hidden: false for 'popular' licenses
2 parents b396361 + 570f69e commit 08d8173

8 files changed

Lines changed: 13 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Licenses sit in the `/_licenses` folder. Each license has YAML front matter desc
5151
#### Optional fields
5252

5353
* `featured` - Whether the license should be featured on the main page (defaults to false)
54-
* `hidden` - Whether the license is hidden from the license list (defaults to true)
54+
* `hidden` - Whether the license is neither [popular](https://opensource.org/licenses) nor fills out the [spectrum of licenses](http://choosealicense.com/licenses/) from strongly conditional to unconditional (defaults to true)
5555
* `nickname` - Customary short name if applicable (e.g, GPLv3)
5656
* `note` - Additional information about the licenses
5757
* `using` - A list of up to 3 notable projects using the license with straightforward LICENSE files which serve as examples newcomers can follow and that can be detected by [licensee](https://github.com/benbalter/licensee) in the form of `project_name: license_file_url`

_data/meta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
required: false
4141

4242
- name: hidden
43-
description: Whether the license is hidden from the license list (defaults to true)
43+
description: Whether the license is neither [popular](https://opensource.org/licenses) nor fills out the [spectrum of licenses](http://choosealicense.com/licenses/) from strongly conditional to unconditional (defaults to true)
4444
required: false
4545

4646
- name: nickname

_licenses/bsd-2-clause.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: BSD 2-clause "Simplified" License
33
spdx-id: BSD-2-Clause
44
redirect_from: /licenses/bsd/
55
source: http://opensource.org/licenses/BSD-2-Clause
6+
hidden: false
67

78
description: A permissive license that comes in two variants, the <a href="/licenses/bsd-2-clause/">BSD 2-Clause</a> and <a href="/licenses/bsd-3-clause/">BSD 3-Clause</a>. Both have very minute differences to the MIT license.
89

_licenses/bsd-3-clause.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: BSD 3-clause "New" or "Revised" License
33
spdx-id: BSD-3-Clause
44
source: http://opensource.org/licenses/BSD-3-Clause
5+
hidden: false
56

67
description: A permissive license similar to the <a href="/licenses/bsd-2-clause/">BSD 2-Clause License</a>, but with a 3rd clause that prohibits others from using the name of the project or its contributors to promote derived products without written consent.
78

_licenses/epl-1.0.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: Eclipse Public License 1.0
33
spdx-id: EPL-1.0
44
redirect_from: /licenses/eclipse/
55
source: https://www.eclipse.org/legal/epl-v10.html
6+
hidden: false
67

78
description: This commercially-friendly copyleft license provides the ability to commercially license binaries; a modern royalty-free patent license grant; and the ability for linked works to use other licenses, including commercial ones.
89

_licenses/gpl-2.0.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ spdx-id: GPL-2.0
44
nickname: GNU GPLv2
55
redirect_from: /licenses/gpl-v2/
66
source: http://www.gnu.org/licenses/gpl-2.0.txt
7+
hidden: false
78

89
description: The GNU GPL is the most widely used free software license and has a strong copyleft requirement. When distributing derived works, the source code of the work must be made available under the same license. There are multiple variants of the GNU GPL, each with different requirements.
910

_licenses/lgpl-2.1.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ spdx-id: LGPL-2.1
44
nickname: GNU LGPLv2.1
55
redirect_from: /licenses/lgpl-v2.1/
66
source: http://www.gnu.org/licenses/lgpl-2.1.txt
7+
hidden: false
78

89
description: Primarily used for software libraries, the GNU LGPL requires that derived works be licensed under the same license, but works that only link to it do not fall under this restriction. There are two commonly used versions of the GNU LGPL.
910

spec/license_shown_spec.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,20 @@
66
SHOWN_LICENSES = %w(
77
agpl-3.0
88
apache-2.0
9+
bsd-2-clause
10+
bsd-3-clause
11+
epl-1.0
12+
gpl-2.0
913
gpl-3.0
14+
lgpl-2.1
1015
lgpl-3.0
1116
mit
1217
mpl-2.0
1318
unlicense
1419
).freeze
1520

1621
it 'has the expected number of shown licenses' do
17-
expect(shown_licenses.count).to eql(7)
22+
expect(shown_licenses.count).to eql(12)
1823
end
1924

2025
shown_licenses.each do |license|

0 commit comments

Comments
 (0)