Skip to content

Commit 4f16e29

Browse files
authored
Merge branch 'gh-pages' into only-or-later
2 parents bcdc738 + 9571783 commit 4f16e29

6 files changed

Lines changed: 76 additions & 9 deletions

File tree

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
We love Pull Requests! Your contributions help make ChooseALicense.com great.
44

5+
Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the [project's open source license](LICENSE.md).
6+
57
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
68

79
## Getting Started
@@ -43,8 +45,6 @@ find it in the GitHub repository. Then click the `Edit` button. Make your
4345
changes, type in a commit message, and click the `Propose File Change` button.
4446
That’s it!
4547

46-
You will be asked to sign the [GitHub Contributor License Agreement](https://cla.github.com/) for this project when you make your first pull request.
47-
4848
For more advanced changes, check out [the bootstrap instructions](https://github.com/github/choosealicense.com#run-it-on-your-machine) in the [project's readme](/README.md).
4949

5050
## Testing

_licenses/cc-by-4.0.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Creative Commons Attribution 4.0
2+
title: Creative Commons Attribution 4.0 International
33
spdx-id: CC-BY-4.0
44
source: https://creativecommons.org/licenses/by/4.0/legalcode.txt
55

_licenses/cc-by-sa-4.0.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Creative Commons Attribution Share Alike 4.0
2+
title: Creative Commons Attribution Share Alike 4.0 International
33
spdx-id: CC-BY-SA-4.0
44
source: https://creativecommons.org/licenses/by-sa/4.0/legalcode.txt
55

_licenses/upl-1.0.txt

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
title: Universal Permissive License v1.0
3+
spdx-id: UPL-1.0
4+
source: https://oss.oracle.com/licenses/upl/
5+
6+
description: A permissive, OSI and FSF approved, GPL compatible license, expressly allowing attribution with just a copyright notice and a short form link rather than the full text of the license. Includes an express grant of patent rights. Licensed works and modifications may be distributed under different terms and without source code, and the patent grant may also optionally be expanded to larger works to permit use as a contributor license agreement.
7+
8+
how: Insert the license or a link to it along with a copyright notice into your source file(s), and/or create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license and your copyright notice into the file.
9+
10+
note: It is recommended to add a link to the license and copyright notice at the top of each source file, example text can be found at https://oss.oracle.com/licenses/upl/.
11+
12+
using:
13+
- WebLogic Kubernetes Operator: https://github.com/oracle/weblogic-kubernetes-operator/blob/master/LICENSE
14+
- Oracle Product Images for Docker: https://github.com/oracle/docker-images/blob/master/LICENSE
15+
- Oracle Product Boxes for Vagrant: https://github.com/oracle/vagrant-boxes/blob/master/LICENSE
16+
17+
permissions:
18+
- commercial-use
19+
- modifications
20+
- distribution
21+
- patent-use
22+
- private-use
23+
24+
conditions:
25+
- include-copyright
26+
27+
limitations:
28+
- liability
29+
- warranty
30+
31+
---
32+
33+
Copyright (c) [year] [fullname]
34+
35+
The Universal Permissive License (UPL), Version 1.0
36+
37+
Subject to the condition set forth below, permission is hereby granted to any
38+
person obtaining a copy of this software, associate documentation and/or data
39+
(collectively the "Software"), free of charge and under any and all copyright
40+
rights in the Software, and any and all patent rights owned or freely
41+
licensable by each licensor hereunder covering either (i) the unmodified
42+
Software as contributed to or provided by such licensor, or (ii) the Larger
43+
Works (as defined below), to deal in both
44+
45+
(a) the Software, and
46+
(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if
47+
one is included with the Software (each a “Larger Work” to which the Software
48+
is contributed by such licensors),
49+
50+
without restriction, including without limitation the rights to copy, create
51+
derivative works of, display, perform, and distribute the Software and make,
52+
use, sell, offer for sale, import, export, have made, and have sold the
53+
Software and the Larger Work(s), and to sublicense the foregoing rights on
54+
either these or other terms.
55+
56+
This license is subject to the following condition:
57+
The above copyright notice and either this complete permission notice or at
58+
a minimum a reference to the UPL must be included in all copies or
59+
substantial portions of the Software.
60+
61+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
62+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
63+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
64+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
65+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
66+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
67+
SOFTWARE.

spec/license_meta_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
example_url = example.values[0]
5555

5656
context "the #{example_url} URL" do
57-
let(:content) { open(example_url).read }
57+
let(:content) { OpenURI.open_uri(example_url).read }
5858
let(:detected) { Licensee::ProjectFiles::LicenseFile.new(content, 'LICENSE').license }
5959

6060
if example_url.start_with?('https://github.com/')

spec/spec_helper.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def rule?(tag, group)
7373
def spdx_list
7474
SpecHelper.spdx ||= begin
7575
url = 'https://spdx.org/licenses/licenses.json'
76-
list = JSON.parse(open(url).read)['licenses']
76+
list = JSON.parse(OpenURI.open_uri(url).read)['licenses']
7777
list.each_with_object({}) do |values, memo|
7878
memo[values['licenseId']] = values
7979
end
@@ -102,9 +102,9 @@ def osi_approved_licenses
102102
def fsf_approved_licenses
103103
SpecHelper.fsf_approved_licenses ||= begin
104104
url = 'https://wking.github.io/fsf-api/licenses-full.json'
105-
object = JSON.parse(open(url).read)
105+
object = JSON.parse(OpenURI.open_uri(url).read)
106106
licenses = {}
107-
object.each_value do |meta|
107+
object['licenses'].each_value do |meta|
108108
next unless (meta.include? 'identifiers') && (meta['identifiers'].include? 'spdx') && (meta.include? 'tags') && (meta['tags'].include? 'libre')
109109
meta['identifiers']['spdx'].each do |identifier|
110110
licenses[identifier.downcase] = meta['name']
@@ -117,7 +117,7 @@ def fsf_approved_licenses
117117
def od_approved_licenses
118118
SpecHelper.od_approved_licenses ||= begin
119119
url = 'http://licenses.opendefinition.org/licenses/groups/od.json'
120-
data = open(url).read
120+
data = OpenURI.open_uri(url).read
121121
data = JSON.parse(data)
122122
licenses = {}
123123
data.each do |id, meta|

0 commit comments

Comments
 (0)