Skip to content

Commit ba5ed87

Browse files
authored
Merge branch 'gh-pages' into home-reform
2 parents b9905b1 + 04f260a commit ba5ed87

55 files changed

Lines changed: 647 additions & 141 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.rubocop.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
AllCops:
2-
TargetRubyVersion: 2.1
2+
TargetRubyVersion: 2.4
33
Exclude:
44
- _site/**/*
55
- vendor/**/*
66

7+
Metrics/BlockLength:
8+
Enabled: false
9+
710
Metrics/LineLength:
811
Enabled: false
912

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ script: "./script/cibuild"
55
#environment
66
language: ruby
77
rvm:
8-
- 2.0.0
8+
- 2.4.0
99

1010
branches:
1111
only:

CONTRIBUTING.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ get. But first, please make sure you understand what
1414

1515
Choosealicense.com is intended to demystify license choices, not present or catalog all of them. As such, only a small number are highlighted on the home page or <http://choosealicense.com/licenses>, and there are several requirements for a license to be [cataloged](http://choosealicense.com/appendix/) on the site:
1616

17-
1. The license must have [an SPDX identifier](https://spdx.org/licenses/). If your license isn't registered with SPDX, please [request that it be added](https://spdx.org/spdx-license-list/request-new-license-or-exception).
17+
1. The license must have [an SPDX identifier](https://spdx.org/licenses/). If your license isn't registered with SPDX, please [request that it be added](https://spdx.org/spdx-license-list/request-new-license).
1818
2. The license must be listed on one of the following approved lists of licenses:
1919
* [List of OSI approved licenses](https://opensource.org/licenses/alphabetical)
2020
* [GNU's list of free licenses](https://www.gnu.org/licenses/license-list.en.html) (*note: the license must be listed in one of the three "free" categories*)
2121
* [Open Definition's list of conformant licenses](http://opendefinition.org/licenses/) (non-code)
2222
3. A [GitHub code search](https://github.com/search?q=MIT+filename%3ALICENSE&type=Code) must reveal at least *1,000* public repositories using the license
23+
4. Identification of 3 notable projects using the license with straightforward LICENSE files which serve as examples newcomers can follow and that could be detected by [licensee](https://github.com/benbalter/licensee) if it knew about the license
2324

2425
If your proposed license meets the above criteria, here's a few other things to keep in mind as you propose the license's addition:
2526

@@ -28,6 +29,7 @@ If your proposed license meets the above criteria, here's a few other things to
2829
* The license files should be in the format of `_licenses/[lowercased-spdx-id].txt` (e.g., `_licenses/mit.txt`)
2930
* Each license has both [required and optional metadata](https://github.com/github/choosealicense.com#license-metadata) that should be included.
3031
* The text of the license should be wrapped to a 78 character width.
32+
* The text of the license should match the corresponding text found at https://spdx.org/licenses/
3133
* The body of the file should be the text of the license in plain text.
3234

3335
## Making Changes

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
source 'https://rubygems.org'
24

35
require 'json'

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2013-2016 GitHub, Inc. and contributors
1+
Copyright (c) 2013-2017 GitHub, Inc. and contributors
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Licenses sit in the `/_licenses` folder. Each license has YAML front matter desc
4444
* `source` - The URL to the license source text
4545
* `description` - A human-readable description of the license
4646
* `how` - Instructions on how to implement the license
47+
* `using` - A list of 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`
4748
* `permissions` - Bulleted list of permission rules
4849
* `conditions` - Bulleted list of condition rules
4950
* `limitations` - Bulleted list of limitation rules
@@ -54,7 +55,6 @@ Licenses sit in the `/_licenses` folder. Each license has YAML front matter desc
5455
* `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)
5556
* `nickname` - Customary short name if applicable (e.g, GPLv3)
5657
* `note` - Additional information about the licenses
57-
* `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`
5858
* `redirect_from` - Relative path(s) to redirect to the license from, to prevent breaking old URLs
5959

6060
### Auto-populated fields
@@ -80,23 +80,26 @@ The license properties (rules) are stored as a bulleted list within the licenses
8080

8181
* `commercial-use` - This software and derivatives may be used for commercial purposes.
8282
* `modifications` - This software may be modified.
83-
* `distribution` - You may distribute this software.
84-
* `private-use` - You may use and modify the software without distributing it.
85-
* `patent-use` - This license provides an express grant of patent rights from the contributor to the recipient.
83+
* `distribution` - This software may be distributed.
84+
* `private-use` - This software may be used and modified in private.
85+
* `patent-use` - This license provides an express grant of patent rights from contributors.
8686

8787
#### Conditions
8888

89-
* `include-copyright` - Include a copy of the license and copyright notice with the code.
90-
* `document-changes` - Indicate changes made to the code.
91-
* `disclose-source` - Source code must be made available when distributing the software.
92-
* `network-use-disclose` - Users who interact with the software via network are given the right to receive a copy of the corresponding source code.
89+
* `include-copyright` - A copy of the license and copyright notice must be included with the software.
90+
* `document-changes` - Changes made to the code must be documented.
91+
* `disclose-source` - Source code must be made available when the software is distributed.
92+
* `network-use-disclose` - Users who interact with the software via network are given the right to receive a copy of the source code.
9393
* `same-license` - Modifications must be released under the same license when distributing the software. In some cases a similar or related license may be used.
94+
* `same-license--file` - Modifications of existing files must be released under the same license when distributing the software. In some cases a similar or related license may be used.
95+
* `same-license--library` - Modifications must be released under the same license when distributing the software. In some cases a similar or related license may be used, or this condition may not apply to works that use the software as a library.
9496

9597
#### Limitations
9698

97-
* `trademark-use` - This license explicitly states that it does NOT grant you trademark rights, even though licenses without such a statement probably do not grant you any implicit trademark rights.
98-
* `no-liability` - Software is provided without warranty and the software author/license owner cannot be held liable for damages.
99-
* `patent-use` - This license explicitly states that it does NOT grant you any rights in the patents of contributors.
99+
* `trademark-use` - This license explicitly states that it does NOT grant trademark rights, even though licenses without such a statement probably do not grant any implicit trademark rights.
100+
* `liability` - This license includes a limitation of liability.
101+
* `patent-use` - This license explicitly states that it does NOT grant any rights in the patents of contributors.
102+
* `warranty` - The license explicitly states that it does NOT provide any warranty.
100103

101104
## License
102105

Rakefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'html-proofer'
24
require 'rspec/core/rake_task'
35

@@ -13,7 +15,8 @@ task :test do
1315
HTMLProofer.check_directory('./_site',
1416
check_html: true,
1517
validation: { ignore_script_embeds: true },
16-
url_swap: { %r{http://choosealicense.com} => '' }).run
18+
url_swap: { %r{https://choosealicense.com} => '' },
19+
check_img_http: true).run
1720
end
1821

1922
task :approved_licenses do
@@ -24,7 +27,7 @@ task :approved_licenses do
2427
puts approved.join(', ')
2528
puts "\n"
2629

27-
potential = approved - licenses.map { |l| l['id'] }
30+
potential = approved - (licenses.map { |l| l['id'] })
2831
puts "#{potential.count} potential additions:"
2932
puts potential.join(', ')
3033
end

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Choose a License
33
description: Non-judgmental guidance on choosing a license for your open source project
44
relative_permalinks: false
55
markdown: kramdown
6-
url: "http://choosealicense.com"
6+
url: "https://choosealicense.com"
77

88
collections:
99
licenses:

_data/meta.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
description: Bulleted list of limited rules
3434
required: true
3535

36+
- name: using
37+
description: 'A list of 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`'
38+
required: true
39+
3640
# Optional fields
3741

3842
- name: featured
@@ -51,10 +55,6 @@
5155
description: Additional information about the licenses
5256
required: false
5357

54-
- name: using
55-
description: '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`'
56-
required: false
57-
5858
- name: redirect_from
5959
description: Relative path(s) to redirect to the license from, to prevent breaking old URLs
6060
required: false

_data/rules.yml

Lines changed: 31 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,53 @@
11
permissions:
22
- description: This software and derivatives may be used for commercial purposes.
3-
label: Commercial Use
3+
label: Commercial use
44
tag: commercial-use
55
- description: This software may be modified.
66
label: Modification
77
tag: modifications
8-
- description: You may distribute this software.
8+
- description: This software may be distributed.
99
label: Distribution
1010
tag: distribution
11-
- description: You may use and modify the software without distributing it.
12-
label: Private Use
11+
- description: This software may be used and modified in private.
12+
label: Private use
1313
tag: private-use
14-
- description: This license provides an express grant of patent rights from the contributor to the recipient.
15-
label: Patent Use
14+
- description: This license provides an express grant of patent rights from contributors.
15+
label: Patent use
1616
tag: patent-use
1717

1818
conditions:
19-
- description: Include a copy of the license and copyright notice with the code.
20-
label: License and Copyright Notice
19+
- description: A copy of the license and copyright notice must be included with the software.
20+
label: License and copyright notice
2121
tag: include-copyright
22-
- description: Indicate changes made to the code.
23-
label: State Changes
22+
- description: Changes made to the code must be documented.
23+
label: State changes
2424
tag: document-changes
25-
- description: Source code must be made available when distributing the software.
26-
label: Disclose Source
25+
- description: Source code must be made available when the software is distributed.
26+
label: Disclose source
2727
tag: disclose-source
28-
- description: Users who interact with the software via network are given the right to receive a copy of the corresponding source code.
29-
label: Network Use is Distribution
28+
- description: Users who interact with the software via network are given the right to receive a copy of the source code.
29+
label: Network use is distribution
3030
tag: network-use-disclose
3131
- description: Modifications must be released under the same license when distributing the software. In some cases a similar or related license may be used.
32-
label: Same License
32+
label: Same license
3333
tag: same-license
34+
- description: Modifications of existing files must be released under the same license when distributing the software. In some cases a similar or related license may be used.
35+
label: Same license (file)
36+
tag: same-license--file
37+
- description: Modifications must be released under the same license when distributing the software. In some cases a similar or related license may be used, or this condition may not apply to works that use the software as a library.
38+
label: Same license (library)
39+
tag: same-license--library
3440

3541
limitations:
36-
- description: This license explicitly states that it does NOT grant you trademark rights, even though licenses without such a statement probably do not grant you any implicit trademark rights.
37-
label: Trademark Use
42+
- description: This license explicitly states that it does NOT grant trademark rights, even though licenses without such a statement probably do not grant any implicit trademark rights.
43+
label: Trademark use
3844
tag: trademark-use
39-
- description: Software is provided without warranty and the software author/license owner cannot be held liable for damages.
40-
label: Hold Liable
41-
tag: no-liability
42-
- description: This license explicitly states that it does NOT grant you any rights in the patents of contributors.
43-
label: Patent Use
45+
- description: This license includes a limitation of liability.
46+
label: Liability
47+
tag: liability
48+
- description: This license explicitly states that it does NOT grant any rights in the patents of contributors.
49+
label: Patent use
4450
tag: patent-use
51+
- description: The license explicitly states that it does NOT provide any warranty.
52+
label: Warranty
53+
tag: warranty

0 commit comments

Comments
 (0)