20 |
21 | {% include breadcrumbs.html %}
22 |
23 | {% if page.title %}
24 |
{{ page.title | markdownify | strip_html | strip_newlines }}
25 | {% endif %}
26 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | Copyright (c) 2013-2018 GitHub, Inc. and contributors
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/script/generate-docs:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | # frozen_string_literal: true
3 |
4 | # Usage: script/generate-docs
5 | # Reads in the fields, meta, and rules YAML files and produces markdown output
6 | # suitable for documenting in the project's README
7 |
8 | require 'yaml'
9 |
10 | fields = YAML.load_file('_data/fields.yml')
11 | meta = YAML.load_file('_data/meta.yml')
12 | rules = YAML.load_file('_data/rules.yml')
13 |
14 | puts "\n### Fields\n\n"
15 | fields.each do |field|
16 | puts "* `#{field['name']}` - #{field['description']}"
17 | end
18 |
19 | puts "\n### YAML front matter\n"
20 | meta = meta.group_by { |m| m['required'] }
21 |
22 | puts "\n#### Required fields\n\n"
23 | meta[true].each do |field|
24 | puts "* `#{field['name']}` - #{field['description']}"
25 | end
26 |
27 | puts "\n#### Optional fields\n\n"
28 | meta[false].each do |field|
29 | puts "* `#{field['name']}` - #{field['description']}"
30 | end
31 |
32 | puts "\n### Rules\n"
33 | rules.each do |group, group_rules|
34 | puts "\n#### #{group.capitalize}\n\n"
35 | group_rules.each do |rule|
36 | puts "* `#{rule['tag']}` - #{rule['description']}"
37 | end
38 | end
39 |
--------------------------------------------------------------------------------
/assets/vendor/normalize-css/LICENSE.md:
--------------------------------------------------------------------------------
1 | Copyright (c) Nicolas Gallagher and Jonathan Neal
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of
4 | this software and associated documentation files (the "Software"), to deal in
5 | the Software without restriction, including without limitation the rights to
6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7 | of the Software, and to permit persons to whom the Software is furnished to do
8 | so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 | SOFTWARE.
20 |
--------------------------------------------------------------------------------
/_includes/breadcrumbs.html:
--------------------------------------------------------------------------------
1 | {% unless page.hide_breadcrumbs == true %}
2 |
3 | -
4 | {% if page.layout == "license" %}
5 | Home / Licenses
6 | {% else %}
7 | Home
8 | {% endif %}
9 |
10 |
11 |
39 | {% endunless %}
40 |
--------------------------------------------------------------------------------
/assets/vendor/qtip2/.bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "qtip2",
3 | "description": "Introducing... qTip2. The second generation of the advanced qTip plugin for the ever popular jQuery framework.",
4 | "version": "2.2.0",
5 | "homepage": "http://qtip2.com",
6 | "location": "https://github.com/qTip2/bower",
7 | "repository": {
8 | "type": "git",
9 | "url": "git://github.com/Craga89/qTip2.git"
10 | },
11 | "authors": [
12 | {
13 | "name": "Craig Michael Thompson",
14 | "email": "craig@craigsworks.com",
15 | "url": "http://craigsworks.com/"
16 | }
17 | ],
18 | "license": [
19 | "MIT",
20 | "GPL"
21 | ],
22 | "keywords": [
23 | "tooltip",
24 | "tooltips",
25 | "jquery",
26 | "qtip",
27 | "qtip2",
28 | "craig",
29 | "thompson",
30 | "craigsworks"
31 | ],
32 | "main": [
33 | "./jquery.qtip.js",
34 | "./basic/jquery.qtip.js"
35 | ],
36 | "ignore": [
37 | "bin"
38 | ],
39 | "_release": "2.2.0",
40 | "_resolution": {
41 | "type": "version",
42 | "tag": "v2.2.0",
43 | "commit": "f5300e9a698f203d47307cfdf90399504fd2f6b2"
44 | },
45 | "_source": "git://github.com/qTip2/bower.git",
46 | "_target": "~2.2.0",
47 | "_originalSource": "qtip2"
48 | }
--------------------------------------------------------------------------------
/Rakefile:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | require 'html-proofer'
4 | require 'rspec/core/rake_task'
5 |
6 | desc 'Run specs'
7 | RSpec::Core::RakeTask.new do |t|
8 | t.pattern = 'spec/**/*_spec.rb'
9 | t.rspec_opts = ['--order', 'rand', '--color']
10 | end
11 |
12 | task :test do
13 | sh 'bundle exec jekyll build'
14 | Rake::Task['spec'].invoke
15 | HTMLProofer.check_directory('./_site',
16 | check_html: true,
17 | enforce_https: true,
18 | validation: { ignore_script_embeds: true },
19 | url_swap: { %r{https://choosealicense.com} => '' },
20 | url_ignore: [%r{https://github.com/github/choosealicense.com/edit/gh-pages/_licenses/}],
21 | hydra: { max_concurrency: 10 },
22 | check_img_http: true).run
23 | end
24 |
25 | task :approved_licenses do
26 | require './spec/spec_helper'
27 | approved = approved_licenses
28 | approved.select! { |l| spdx_ids.include?(l) }
29 | puts "#{approved.count} approved licenses:"
30 | puts approved.join(', ')
31 | puts "\n"
32 |
33 | potential = approved - (licenses.map { |l| l['id'] })
34 | puts "#{potential.count} potential additions:"
35 | puts potential.join(', ')
36 | end
37 |
--------------------------------------------------------------------------------
/spec/ci_ruby_version_spec.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | require 'json'
4 | require 'open-uri'
5 | require 'spec_helper'
6 | require 'yaml'
7 |
8 | describe 'ruby version' do
9 | pages_versions = JSON.parse(open('https://pages.github.com/versions.json').read)
10 | pages_ruby_version = pages_versions['ruby']
11 |
12 | ci_config_file = '.travis.yml'
13 | ci_config = YAML.load_file(ci_config_file)
14 | ci_ruby_version = ci_config['rvm'][0]
15 |
16 | context "in #{ci_config_file} and pages ruby version" do
17 | it 'match' do
18 | msg = "#{ci_ruby_version} != #{pages_ruby_version}; please add a commit bumping in #{ci_config_file}"
19 | expect(ci_ruby_version).to eql(pages_ruby_version), msg
20 | end
21 | end
22 |
23 | rubocop_config_file = '.rubocop.yml'
24 | rubocop_config = YAML.load_file(rubocop_config_file)
25 | rubocop_ruby_version = rubocop_config['AllCops']['TargetRubyVersion']
26 | pages_ruby_version_minor = pages_ruby_version.match('^(\d+)\.(\d+)')[0]
27 |
28 | context "in #{rubocop_config_file} and pages ruby minor version" do
29 | it 'match' do
30 | msg = "#{rubocop_ruby_version} != #{pages_ruby_version_minor}; please add a commit bumping in #{rubocop_config_file}"
31 | expect(rubocop_ruby_version.to_s).to eql(pages_ruby_version_minor), msg
32 | end
33 | end
34 | end
35 |
--------------------------------------------------------------------------------
/licenses.html:
--------------------------------------------------------------------------------
1 | ---
2 | layout: default
3 | permalink: licenses/
4 | class: license-types
5 | title: Licenses
6 | ---
7 |
8 |
Open source licenses grant permission to everyone to use, modify, and share licensed software for any purpose, subject to conditions preserving the provenance and openness of the software. The following licenses are arranged from one with the strongest of these conditions (GNU AGPLv3) to one with no conditions (Unlicense). Notice that the popular licenses featured on the home page (GNU GPLv3 and MIT) fall within this spectrum.
9 |
If you were looking for a reference table of all of the licenses on choosealicense.com, see the appendix.
10 |
11 | {% include license-overview.html license-id="agpl-3.0" %}
12 | {% include license-overview.html license-id="gpl-3.0" %}
13 | {% include license-overview.html license-id="lgpl-3.0" %}
14 | {% include license-overview.html license-id="mpl-2.0" %}
15 | {% include license-overview.html license-id="apache-2.0" %}
16 | {% include license-overview.html license-id="mit" %}
17 | {% include license-overview.html license-id="unlicense" %}
18 |
19 | The above licenses represent the entire spectrum of open source licenses, from highly protective to unconditional. One of these should work for most new open source projects. Many other open source licenses exist, including older versions of and close substitutes for some of the above. See the resources listed on our
about page if you'd like to read more.
20 |
--------------------------------------------------------------------------------
/_licenses/zlib.txt:
--------------------------------------------------------------------------------
1 | ---
2 | title: zlib License
3 | spdx-id: Zlib
4 |
5 | description: A short permissive license, compatible with GPL. Requires altered source versions to be documented as such.
6 |
7 | how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.
8 |
9 | using:
10 |
11 | permissions:
12 | - commercial-use
13 | - modifications
14 | - distribution
15 | - private-use
16 |
17 | conditions:
18 | - include-copyright
19 | - document-changes
20 |
21 | limitations:
22 | - liability
23 | - warranty
24 |
25 | ---
26 |
27 | zlib License
28 |
29 | (C) [year] [fullname]
30 |
31 | This software is provided 'as-is', without any express or implied
32 | warranty. In no event will the authors be held liable for any damages
33 | arising from the use of this software.
34 |
35 | Permission is granted to anyone to use this software for any purpose,
36 | including commercial applications, and to alter it and redistribute it
37 | freely, subject to the following restrictions:
38 |
39 | 1. The origin of this software must not be misrepresented; you must not
40 | claim that you wrote the original software. If you use this software
41 | in a product, an acknowledgment in the product documentation would be
42 | appreciated but is not required.
43 | 2. Altered source versions must be plainly marked as such, and must not be
44 | misrepresented as being the original software.
45 | 3. This notice may not be removed or altered from any source distribution.
46 |
--------------------------------------------------------------------------------
/non-software.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: Non-Software Licenses
3 | layout: default
4 | permalink: /non-software/
5 | ---
6 |
7 | Open source software licenses can be used for non-software works, and often are the best choice. This is particularly the case when the works in question can be edited and versioned as source, e.g., [open source hardware](https://www.oshwa.org/definition/) designs. Choose an [open source license](/licenses/).
8 |
9 | ### Data, media, etc.
10 |
11 | [CC0-1.0](/licenses/cc0-1.0/), [CC-BY-4.0](/licenses/cc-by-4.0/), and [CC-BY-SA-4.0](/licenses/cc-by-sa-4.0/) are [open](https://opendefinition.org) licenses used for non-software material ranging from datasets to videos. Note that CC-BY-4.0 and CC-BY-SA-4.0 should [not be used for software](https://creativecommons.org/faq/#can-i-apply-a-creative-commons-license-to-software).
12 |
13 | ### Documentation
14 |
15 | Any open source software license or open license for media (see [above](#data-media-etc)) is applicable to software documentation. If you use different licenses for your software and its documentation, you may wish to take care that source code examples in the documentation are also licensed under the software license.
16 |
17 | ### Fonts
18 |
19 | The [SIL Open Font License 1.1](/licenses/ofl-1.1/) keeps fonts open but allows them to be freely used in other works.
20 |
21 | ### Mixed Projects
22 |
23 | If your project contains a mix of software and other material, you can include multiple licenses, as long as you are explicit about which license applies to what parts of the project. See [the license notice for this site](https://github.com/github/choosealicense.com#license) as an example.
24 |
--------------------------------------------------------------------------------
/assets/vendor/clipboard/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "clipboard",
3 | "version": "1.4.3",
4 | "description": "Modern copy to clipboard. No Flash. Just 2kb",
5 | "repository": "zenorocha/clipboard.js",
6 | "license": "MIT",
7 | "main": "dist/clipboard.js",
8 | "browser": "src/clipboard.js",
9 | "browserify": {
10 | "transform": [
11 | [
12 | "babelify",
13 | {
14 | "loose": "all"
15 | }
16 | ]
17 | ]
18 | },
19 | "keywords": [
20 | "clipboard",
21 | "copy",
22 | "cut"
23 | ],
24 | "dependencies": {
25 | "babelify": "^6.3.0",
26 | "browserify": "^11.2.0",
27 | "delegate": "^1.0.0",
28 | "select": "^1.0.0",
29 | "tiny-emitter": "^1.0.0"
30 | },
31 | "devDependencies": {
32 | "karma": "^0.13.10",
33 | "karma-browserify": "^4.4.0",
34 | "karma-chai": "^0.1.0",
35 | "karma-mocha": "^0.2.0",
36 | "karma-phantomjs-launcher": "^0.2.1",
37 | "karma-sinon": "^1.0.4",
38 | "mocha": "^2.3.3",
39 | "phantomjs-polyfill": "0.0.1",
40 | "uglify-js": "^2.4.24",
41 | "watchify": "^3.4.0",
42 | "bannerify": "Vekat/bannerify#feature-option"
43 | },
44 | "scripts": {
45 | "build": "npm run build-debug && npm run build-min",
46 | "build-debug": "browserify src/clipboard.js -s Clipboard -p [bannerify --file .banner ] -o dist/clipboard.js",
47 | "build-min": "uglifyjs dist/clipboard.js --comments '/!/' -m screw_ie8=true -c screw_ie8=true,unused=false -o dist/clipboard.min.js",
48 | "build-watch": "watchify src/clipboard.js -s Clipboard -o dist/clipboard.js -v",
49 | "test": "npm run test-browser && npm run test-server",
50 | "test-browser": "karma start --single-run",
51 | "test-server": "mocha test/module-systems.js"
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/_licenses/0bsd.txt:
--------------------------------------------------------------------------------
1 | ---
2 | title: BSD Zero Clause License
3 | spdx-id: 0BSD
4 |
5 | description: The BSD Zero Clause license goes further than the BSD 2-Clause license to allow you unlimited freedom with the software without requirements to include the copyright notice, license text, or disclaimer in either source or binary forms.
6 |
7 | how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders. You may take the additional step of removing the copyright notice.
8 |
9 | using:
10 | - PickMeUp: https://github.com/nazar-pc/PickMeUp/blob/master/copying.md
11 | - smoltcp: https://github.com/m-labs/smoltcp/blob/master/LICENSE-0BSD.txt
12 | - Toybox: https://github.com/landley/toybox/blob/master/LICENSE
13 |
14 | permissions:
15 | - commercial-use
16 | - distribution
17 | - modifications
18 | - private-use
19 |
20 | conditions: []
21 |
22 | limitations:
23 | - liability
24 | - warranty
25 |
26 | ---
27 |
28 | Copyright (c) [year] [fullname]
29 |
30 | Permission to use, copy, modify, and/or distribute this software for any
31 | purpose with or without fee is hereby granted.
32 |
33 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
34 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
35 | AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
36 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
37 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
38 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
39 | PERFORMANCE OF THIS SOFTWARE.
40 |
--------------------------------------------------------------------------------
/spec/license_spec.rb:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | require 'spec_helper'
4 |
5 | describe 'licenses' do
6 | it 'matches the number of files in the _licenses folder' do
7 | expect(licenses.count).to eql(Dir["#{licenses_path}/*.txt"].count)
8 | end
9 |
10 | licenses.each do |license|
11 | context "The #{license['title']} license" do
12 | let(:spdx_lcase) { license['spdx-lcase'] }
13 | let(:spdx_id) { license['spdx-id'] }
14 |
15 | it 'has an SPDX ID' do
16 | expect(spdx_ids).to include(spdx_id)
17 | end
18 |
19 | it 'has an ID that is downcased SPDX ID' do
20 | expect(spdx_id.casecmp(spdx_lcase).zero?)
21 | end
22 |
23 | it 'uses its SPDX name' do
24 | spdx = find_spdx(spdx_id)
25 | expect(spdx).to_not be_nil
26 | expect(spdx[1]['name'].gsub(/ only$/, '')).to eql(license['title'])
27 | end
28 |
29 | context 'industry approval' do
30 | it 'should be approved by OSI or FSF or OD' do
31 | expect(approved_licenses).to include(spdx_lcase), 'See https://git.io/vzCTV.'
32 | end
33 | end
34 |
35 | context 'minimum permissions' do
36 | let(:permissions) { license['permissions'] }
37 | it 'should allow commercial use' do
38 | expect(permissions).to include('commercial-use')
39 | end
40 |
41 | it 'should allow modification' do
42 | expect(permissions).to include('modifications')
43 | end
44 |
45 | it 'should allow distribution' do
46 | expect(permissions).to include('distribution')
47 | end
48 |
49 | it 'should allow private use' do
50 | expect(permissions).to include('private-use')
51 | end
52 | end
53 | end
54 | end
55 | end
56 |
--------------------------------------------------------------------------------
/_includes/license-overview.html:
--------------------------------------------------------------------------------
1 | {% assign id = "/licenses/" | append: include.license-id %}
2 | {% assign licenses = site.licenses | where:"id", id %}
3 | {% for license in licenses %}
4 |
5 |
6 |
15 |
16 |
{{ license.description }}
17 |
18 |
19 |
20 |
21 |
22 | {% assign types = "permissions|conditions|limitations" | split: "|" %}
23 | {% for type in types %}
24 | | {{ type | capitalize }} |
25 | {% endfor %}
26 |
27 |
28 | {% for type in types %}
29 |
30 |
31 | {% assign rules = site.data.rules[type] | sort: "label" %}
32 | {% for rule_obj in rules %}
33 | {% assign req = rule_obj.tag %}
34 | {% if license[type] contains req %}
35 | -
36 |
37 | {{ rule_obj.label }}
38 |
39 | {% endif %}
40 | {% endfor %}
41 |
42 | |
43 | {% endfor %}
44 |
45 |
46 |
View full {{ license.title }} »
47 |
48 |
49 | {% endfor %}
50 |
--------------------------------------------------------------------------------
/assets/vendor/normalize-css/README.md:
--------------------------------------------------------------------------------
1 | # normalize.css v3
2 |
3 | Normalize.css is a customisable CSS file that makes browsers render all
4 | elements more consistently and in line with modern standards.
5 |
6 | The project relies on researching the differences between default browser
7 | styles in order to precisely target only the styles that need or benefit from
8 | normalizing.
9 |
10 | [View the test file](http://necolas.github.io/normalize.css/latest/test.html)
11 |
12 | ## Install
13 |
14 | Download from the [project page](http://necolas.github.io/normalize.css/).
15 |
16 | Install with [Bower](http://bower.io/): `bower install --save normalize-css`
17 |
18 | Install with [Component(1)](http://component.io/): `component install necolas/normalize.css`
19 |
20 | ## What does it do?
21 |
22 | * Preserves useful defaults, unlike many CSS resets.
23 | * Normalizes styles for a wide range of elements.
24 | * Corrects bugs and common browser inconsistencies.
25 | * Improves usability with subtle improvements.
26 | * Explains what code does using detailed comments.
27 |
28 | ## How to use it
29 |
30 | No other styles should come before Normalize.css.
31 |
32 | It is recommended that you include the `normalize.css` file as untouched
33 | library code.
34 |
35 | ## Browser support
36 |
37 | * Google Chrome (latest)
38 | * Mozilla Firefox (latest)
39 | * Mozilla Firefox 4
40 | * Opera (latest)
41 | * Apple Safari 6+
42 | * Internet Explorer 8+
43 |
44 | [Normalize.css v1 provides legacy browser
45 | support](https://github.com/necolas/normalize.css/tree/v1) (IE 6+, Safari 4+),
46 | but is no longer actively developed.
47 |
48 | ## Contributing
49 |
50 | Please read the CONTRIBUTING.md
51 |
52 | ## Acknowledgements
53 |
54 | Normalize.css is a project by [Nicolas Gallagher](https://github.com/necolas),
55 | co-created with [Jonathan Neal](https://github.com/jonathantneal).
56 |
--------------------------------------------------------------------------------
/_licenses/isc.txt:
--------------------------------------------------------------------------------
1 | ---
2 | title: ISC License
3 | spdx-id: ISC
4 |
5 | description: A permissive license lets people do anything with your code with proper attribution and without warranty. The ISC license is functionally equivalent to the
BSD 2-Clause and
MIT licenses, removing some language that is no longer necessary.
6 |
7 | how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.
8 |
9 | using:
10 | - Helix: https://github.com/tildeio/helix/blob/master/LICENSE
11 | - Node.js semver: https://github.com/npm/node-semver/blob/master/LICENSE
12 | - OpenStreetMap iD: https://github.com/openstreetmap/iD/blob/master/LICENSE.md
13 |
14 | permissions:
15 | - commercial-use
16 | - distribution
17 | - modifications
18 | - private-use
19 |
20 | conditions:
21 | - include-copyright
22 |
23 | limitations:
24 | - liability
25 | - warranty
26 |
27 | ---
28 |
29 | ISC License
30 |
31 | Copyright (c) [year], [fullname]
32 |
33 | Permission to use, copy, modify, and/or distribute this software for any
34 | purpose with or without fee is hereby granted, provided that the above
35 | copyright notice and this permission notice appear in all copies.
36 |
37 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
38 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
39 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
40 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
41 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
42 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
43 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
44 |
--------------------------------------------------------------------------------
/_licenses/postgresql.txt:
--------------------------------------------------------------------------------
1 | ---
2 | title: PostgreSQL License
3 | spdx-id: PostgreSQL
4 |
5 | description: A very short, BSD-style license, used specifically for PostgreSQL.
6 |
7 | how: To use it, say that it is The PostgreSQL License, and then substitute the copyright year and name of the copyright holder into the body of the license. Then put the license into a prominent file ("COPYRIGHT", "LICENSE" or "COPYING" are common names for this file) in your software distribution.
8 |
9 | using:
10 | - pgBadger: https://github.com/darold/pgbadger/blob/master/LICENSE
11 | - pgAdmin: https://github.com/postgres/pgadmin4/blob/master/LICENSE
12 | - .NET Access to PostgreSQL: https://github.com/npgsql/npgsql/blob/dev/LICENSE
13 |
14 | permissions:
15 | - commercial-use
16 | - modifications
17 | - distribution
18 | - private-use
19 |
20 | conditions:
21 | - include-copyright
22 |
23 | limitations:
24 | - liability
25 | - warranty
26 |
27 | ---
28 |
29 | PostgreSQL License
30 |
31 | Copyright (c) [year], [fullname]
32 |
33 | Permission to use, copy, modify, and distribute this software and its
34 | documentation for any purpose, without fee, and without a written agreement is
35 | hereby granted, provided that the above copyright notice and this paragraph
36 | and the following two paragraphs appear in all copies.
37 |
38 | IN NO EVENT SHALL [fullname] BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
39 | SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING
40 | OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF [fullname]
41 | HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42 |
43 | [fullname] SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
44 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
45 | PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
46 | AND [fullname] HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES,
47 | ENHANCEMENTS, OR MODIFICATIONS.
48 |
--------------------------------------------------------------------------------
/assets/vendor/clipboard/contributing.md:
--------------------------------------------------------------------------------
1 | # Contributing guide
2 |
3 | Want to contribute to Clipboard.js? Awesome!
4 | There are many ways you can contribute, see below.
5 |
6 | ## Opening issues
7 |
8 | Open an issue to report bugs or to propose new features.
9 |
10 | - Reporting bugs: describe the bug as clearly as you can, including steps to reproduce, what happened and what you were expecting to happen. Also include browser version, OS and other related software's (npm, Node.js, etc) versions when applicable.
11 |
12 | - Proposing features: explain the proposed feature, what it should do, why it is useful, how users should use it. Give us as much info as possible so it will be easier to discuss, access and implement the proposed feature. When you're unsure about a certain aspect of the feature, feel free to leave it open for others to discuss and find an appropriate solution.
13 |
14 | ## Proposing pull requests
15 |
16 | Pull requests are very welcome. Note that if you are going to propose drastic changes, be sure to open an issue for discussion first, to make sure that your PR will be accepted before you spend effort coding it.
17 |
18 | Fork the Clipboard.js repository, clone it locally and create a branch for your proposed bug fix or new feature. Avoid working directly on the master branch.
19 |
20 | Implement your bug fix or feature, write tests to cover it and make sure all tests are passing (run a final `npm test` to make sure everything is correct). Then commit your changes, push your bug fix/feature branch to the origin (your forked repo) and open a pull request to the upstream (the repository you originally forked)'s master branch.
21 |
22 | ## Documentation
23 |
24 | Documentation is extremely important and takes a fair deal of time and effort to write and keep updated. Please submit any and all improvements you can make to the repository's docs.
25 |
26 | ## Known issues
27 | If you're using npm@3 you'll probably face some issues related to peerDependencies.
28 | https://github.com/npm/npm/issues/9204
29 |
--------------------------------------------------------------------------------
/_data/meta.yml:
--------------------------------------------------------------------------------
1 | # Each license has YAML front matter describing the license's properties.
2 | # The available fields are:
3 |
4 | - name: title
5 | description: The license full name specified by https://spdx.org/licenses/
6 | required: true
7 |
8 | - name: spdx-id
9 | description: Short identifier specified by https://spdx.org/licenses/
10 | required: true
11 |
12 | - name: description
13 | description: A human-readable description of the license
14 | required: true
15 |
16 | - name: how
17 | description: Instructions on how to implement the license
18 | required: true
19 |
20 | - name: conditions
21 | description: Bulleted list of required rules
22 | required: true
23 |
24 | - name: permissions
25 | description: Bulleted list of permitted rules
26 | required: true
27 |
28 | - name: limitations
29 | description: Bulleted list of limited rules
30 | required: true
31 |
32 | - name: using
33 | 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`'
34 | required: true
35 |
36 | # Optional fields
37 |
38 | - name: featured
39 | description: Whether the license should be featured on the main page (defaults to false)
40 | required: false
41 |
42 | - name: hidden
43 | description: Whether the license is neither [popular](https://opensource.org/licenses) nor fills out the [spectrum of licenses](https://choosealicense.com/licenses/) from strongly conditional to unconditional (defaults to true)
44 | required: false
45 |
46 | - name: nickname
47 | description: Customary short name if applicable (e.g, GPLv3)
48 | required: false
49 |
50 | - name: note
51 | description: Additional information about the licenses
52 | required: false
53 |
54 | - name: redirect_from
55 | description: Relative path(s) to redirect to the license from, to prevent breaking old URLs
56 | required: false
57 |
--------------------------------------------------------------------------------
/_layouts/license.html:
--------------------------------------------------------------------------------
1 | {% include header.html %}
2 |
3 |
4 |
5 |
6 |
7 | {% if page.nickname %}
8 |
9 | {{ page.nickname }}
10 |
11 | {% endif %}
12 |
13 |
14 | {{ page.description }}
15 |
16 |
17 |
18 |
19 |
20 |
21 | {% assign types = "permissions|conditions|limitations" | split: "|" %}
22 | {% for type in types %}
23 | | {{ type | capitalize }} |
24 | {% endfor %}
25 |
26 |
27 | {% for type in types %}
28 |
29 |
30 | {% assign rules = site.data.rules[type] | sort: "label" %}
31 | {% for rule_obj in rules %}
32 | {% assign req = rule_obj.tag %}
33 | {% if page[type] contains req %}
34 | -
35 |
36 | {{ rule_obj.label }}
37 |
38 | {% endif %}
39 | {% endfor %}
40 |
41 | |
42 | {% endfor %}
43 |
44 |
45 |
46 |
47 |
48 |
{{ content | replace:"<", "<" | replace:">", ">" }}
49 |
50 |
51 |
52 | {% include sidebar.html %}
53 |
54 |
55 |
56 | {% include footer.html %}
57 |
--------------------------------------------------------------------------------
/script/check-approval:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | # frozen_string_literal: true
3 |
4 | # Checks if a given license meets the approval criteria to be added to choosealicense.com
5 | # See https://github.com/github/choosealicense.com/blob/gh-pages/CONTRIBUTING.md#adding-a-license
6 | # Usage: script/check-approval [SPDX LICENSE ID]
7 |
8 | require_relative '../spec/spec_helper'
9 | require 'terminal-table'
10 | require 'colored'
11 | require 'fuzzy_match'
12 |
13 | # Display usage instructions
14 | puts File.open(__FILE__).read.scan(/^# .*/)[0...3].join("\n").gsub(/^# /, '') if ARGV.count != 1
15 |
16 | class TrueClass
17 | def to_s
18 | 'Yes'.green
19 | end
20 | end
21 |
22 | class FalseClass
23 | def to_s
24 | 'No'.red
25 | end
26 | end
27 |
28 | license = ARGV[0].downcase.strip
29 | approvals = {
30 | 'OSI' => osi_approved_licenses,
31 | 'FSF' => fsf_approved_licenses,
32 | 'OD' => od_approved_licenses
33 | }
34 |
35 | id, spdx = find_spdx(license)
36 | rows = []
37 |
38 | if spdx.nil?
39 | id = 'Invalid'.red
40 | name = 'None'.red
41 | else
42 | id = id.green
43 | name = spdx['name'].green
44 | end
45 |
46 | rows << ['SPDX ID', id]
47 | rows << ['SPDX Name', name]
48 |
49 | approvals.each do |approver, licenses|
50 | rows << ["#{approver} approved", licenses.include?(license)]
51 | end
52 |
53 | license_ids = licenses.map { |l| l['id'] }
54 | current = license_ids.include?(license)
55 | rows << ['Current license', current]
56 |
57 | rows << :separator
58 | eligible = (!current && spdx && approved_licenses.include?(license))
59 | rows << ['Eligible', eligible]
60 |
61 | puts Terminal::Table.new title: "License: #{license}", rows: rows
62 | puts
63 | puts "Code search: https://github.com/search?q=#{license}+filename%3ALICENSE&type=Code"
64 |
65 | if spdx.nil?
66 | puts
67 | puts 'SPDX ID not found. Some possible matches:'
68 | puts
69 |
70 | fm = FuzzyMatch.new(spdx_ids)
71 | matches = fm.find_all_with_score(license)
72 | matches = matches[0...5].map { |record, _dice, _levin| record }
73 | matches.each { |l| puts "* #{l}" }
74 | end
75 |
--------------------------------------------------------------------------------
/_includes/footer.html:
--------------------------------------------------------------------------------
1 |
15 |
16 |
17 |
18 | {% if page.collection == "licenses" or page.class == "license-types" %}
19 |
20 |
21 |
22 |
35 |
36 | {% endif %}
37 |
38 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/_licenses/mit.txt:
--------------------------------------------------------------------------------
1 | ---
2 | title: MIT License
3 | spdx-id: MIT
4 | featured: true
5 | hidden: false
6 |
7 | description: A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.
8 |
9 | how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.
10 |
11 | using:
12 | - Babel: https://github.com/babel/babel/blob/master/LICENSE
13 | - .NET Core: https://github.com/dotnet/corefx/blob/master/LICENSE.TXT
14 | - Rails: https://github.com/rails/rails/blob/master/MIT-LICENSE
15 |
16 | permissions:
17 | - commercial-use
18 | - modifications
19 | - distribution
20 | - private-use
21 |
22 | conditions:
23 | - include-copyright
24 |
25 | limitations:
26 | - liability
27 | - warranty
28 |
29 | ---
30 |
31 | MIT License
32 |
33 | Copyright (c) [year] [fullname]
34 |
35 | Permission is hereby granted, free of charge, to any person obtaining a copy
36 | of this software and associated documentation files (the "Software"), to deal
37 | in the Software without restriction, including without limitation the rights
38 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
39 | copies of the Software, and to permit persons to whom the Software is
40 | furnished to do so, subject to the following conditions:
41 |
42 | The above copyright notice and this permission notice shall be included in all
43 | copies or substantial portions of the Software.
44 |
45 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
46 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
47 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
48 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
49 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
50 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
51 | SOFTWARE.
52 |
--------------------------------------------------------------------------------
/_licenses/unlicense.txt:
--------------------------------------------------------------------------------
1 | ---
2 | title: The Unlicense
3 | spdx-id: Unlicense
4 | hidden: false
5 |
6 | description: A license with no conditions whatsoever which dedicates works to the public domain. Unlicensed works, modifications, and larger works may be distributed under different terms and without source code.
7 |
8 | how: Create a text file (typically named UNLICENSE or UNLICENSE.txt) in the root of your source code and copy the text of the license disclaimer into the file.
9 |
10 | using:
11 | - youtube-dl: https://github.com/rg3/youtube-dl/blob/master/LICENSE
12 | - kakoune: https://github.com/mawww/kakoune/blob/master/UNLICENSE
13 | - RDF.rb: https://github.com/ruby-rdf/rdf/blob/master/UNLICENSE
14 |
15 | permissions:
16 | - private-use
17 | - commercial-use
18 | - modifications
19 | - distribution
20 |
21 | conditions: []
22 |
23 | limitations:
24 | - liability
25 | - warranty
26 |
27 | ---
28 |
29 | This is free and unencumbered software released into the public domain.
30 |
31 | Anyone is free to copy, modify, publish, use, compile, sell, or
32 | distribute this software, either in source code form or as a compiled
33 | binary, for any purpose, commercial or non-commercial, and by any
34 | means.
35 |
36 | In jurisdictions that recognize copyright laws, the author or authors
37 | of this software dedicate any and all copyright interest in the
38 | software to the public domain. We make this dedication for the benefit
39 | of the public at large and to the detriment of our heirs and
40 | successors. We intend this dedication to be an overt act of
41 | relinquishment in perpetuity of all present and future rights to this
42 | software under copyright law.
43 |
44 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
45 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
46 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
47 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
48 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
49 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
50 | OTHER DEALINGS IN THE SOFTWARE.
51 |
52 | For more information, please refer to