Skip to content

Commit d247be9

Browse files
authored
Merge pull request #563 from github/only-or-later
*GPL -or-later and -only in sidebar instructions
2 parents 9571783 + 278bae2 commit d247be9

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

_includes/sidebar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="sidebar">
22

33
<a href="#" data-clipboard-target="#license-text" data-proofer-ignore="true" class="js-clipboard-button button">Copy license text to clipboard</a>
4-
4+
55
<div class="how-to-apply">
66
<h3>How to apply this license</h3>
77
<p>
@@ -14,7 +14,7 @@ <h3>How to apply this license</h3>
1414
{% endif %}
1515
{% assign xgpl = false %}
1616
{% if page.spdx-id contains 'GPL' %}{% assign xgpl = true %}{% endif %}
17-
<p class="note"><strong>Optional: </strong> Add <strong><code>{{ page.spdx-id }}</code>{% if xgpl %}+{% endif %}</strong>{% if xgpl %} (or <strong><code>{{ page.spdx-id }}</code></strong> to disallow future versions){% endif %} to your project's package description, if applicable (e.g., <a href="https://docs.npmjs.com/files/package.json#license">Node.js</a>, <a href="http://guides.rubygems.org/specification-reference/#license=">Ruby</a>, and <a href="https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata">Rust</a>). This will ensure the license is displayed in package directories.</p>
17+
<p class="note"><strong>Optional: </strong> Add <strong><code>{{ page.spdx-id }}{% if xgpl %}-or-later{% endif %}</code></strong>{% if xgpl %} (or <strong><code>{{ page.spdx-id }}-only</code></strong> to disallow future versions){% endif %} to your project's package description, if applicable (e.g., <a href="https://docs.npmjs.com/files/package.json#license">Node.js</a>, <a href="http://guides.rubygems.org/specification-reference/#license=">Ruby</a>, and <a href="https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata">Rust</a>). This will ensure the license is displayed in package directories.</p>
1818
</div>
1919

2020
{% if page.source %}

_licenses/apache-2.0.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of
1313
note: The Apache Foundation recommends taking the additional step of adding a boilerplate notice to the header of each source file. You can find the notice at the very end of the license in the appendix.
1414

1515
using:
16-
- Elasticsearch: https://github.com/elastic/elasticsearch/blob/master/LICENSE.txt
1716
- Kubernetes: https://github.com/kubernetes/kubernetes/blob/master/LICENSE
17+
- PDF.js: https://github.com/mozilla/pdf.js/blob/master/LICENSE
1818
- Swift: https://github.com/apple/swift/blob/master/LICENSE.txt
1919

2020
permissions:

spec/license_meta_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
let(:detected) { Licensee::ProjectFiles::LicenseFile.new(content, 'LICENSE').license }
5959

6060
if example_url.start_with?('https://github.com/')
61-
example_url.gsub!(%r{\Ahttps://github.com/([\w-]+/[\w-]+)/blob/([\w-]+/\S+)\z}, 'https://raw.githubusercontent.com/\1/\2')
61+
example_url.gsub!(%r{\Ahttps://github.com/([\w-]+/[\w\.-]+)/blob/([\w-]+/\S+)\z}, 'https://raw.githubusercontent.com/\1/\2')
6262
elsif example_url.start_with?('https://git.savannah.gnu.org/', 'https://git.gnome.org/')
6363
example_url.gsub!(%r{/tree/}, '/plain/')
6464
elsif example_url.start_with?('https://bitbucket.org/')

0 commit comments

Comments
 (0)