diff --git a/README.md b/README.md
index 841d9d6..22b22cd 100644
--- a/README.md
+++ b/README.md
@@ -54,7 +54,7 @@ Licenses sit in the `/_licenses` folder. Each license has YAML front matter desc
* `spdx-id` - Short identifier specified by https://spdx.org/licenses/
* `description` - A human-readable description of the license
* `how` - Instructions on how to implement the license
-* `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/licensee/licensee) in the form of `project_name: license_file_url`
+* `using` - A map 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/licensee/licensee) in the form of `project_name: license_file_url`
* `permissions` - Bulleted list of permission rules
* `conditions` - Bulleted list of condition rules
* `limitations` - Bulleted list of limitation rules
diff --git a/_includes/sidebar.html b/_includes/sidebar.html
index 404a48c..02711c2 100644
--- a/_includes/sidebar.html
+++ b/_includes/sidebar.html
@@ -45,9 +45,7 @@
Who's using this license?
diff --git a/_includes/using-sentence.html b/_includes/using-sentence.html
index 4ed2309..a609b5c 100644
--- a/_includes/using-sentence.html
+++ b/_includes/using-sentence.html
@@ -8,9 +8,7 @@
{% if last and using.size > 1 %}
and
{% endif %}
- {% for hash in used %}
- {{ hash[0] }}{% if last == false %},{% endif %}
- {% endfor %}
+ {{ used[0] }}{% if last == false %},{% endif %}
{% endfor %}
use{% if using.size == 1 %}s{% endif %} the {% if license.nickname %}{{ license.nickname }}{% else %}{{ license.title }}{% endif %}.
{% endif %}
diff --git a/_licenses/0bsd.txt b/_licenses/0bsd.txt
index d778c9a..73f6107 100644
--- a/_licenses/0bsd.txt
+++ b/_licenses/0bsd.txt
@@ -7,9 +7,9 @@ description: The BSD Zero Clause license goes further than the BSD 2-Clause lice
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.
using:
- - PickMeUp: https://github.com/nazar-pc/PickMeUp/blob/master/copying.md
- - smoltcp: https://github.com/m-labs/smoltcp/blob/master/LICENSE-0BSD.txt
- - Toybox: https://github.com/landley/toybox/blob/master/LICENSE
+ PickMeUp: https://github.com/nazar-pc/PickMeUp/blob/master/copying.md
+ smoltcp: https://github.com/m-labs/smoltcp/blob/master/LICENSE-0BSD.txt
+ Toybox: https://github.com/landley/toybox/blob/master/LICENSE
permissions:
- commercial-use
diff --git a/_licenses/apache-2.0.txt b/_licenses/apache-2.0.txt
index be04943..f2d5c87 100644
--- a/_licenses/apache-2.0.txt
+++ b/_licenses/apache-2.0.txt
@@ -12,9 +12,9 @@ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of
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 in the appendix at the very end of the license text.
using:
- - Kubernetes: https://github.com/kubernetes/kubernetes/blob/master/LICENSE
- - PDF.js: https://github.com/mozilla/pdf.js/blob/master/LICENSE
- - Swift: https://github.com/apple/swift/blob/master/LICENSE.txt
+ Kubernetes: https://github.com/kubernetes/kubernetes/blob/master/LICENSE
+ PDF.js: https://github.com/mozilla/pdf.js/blob/master/LICENSE
+ Swift: https://github.com/apple/swift/blob/master/LICENSE.txt
permissions:
- commercial-use
diff --git a/_licenses/bsd-2-clause.txt b/_licenses/bsd-2-clause.txt
index d7b985a..9d72d20 100644
--- a/_licenses/bsd-2-clause.txt
+++ b/_licenses/bsd-2-clause.txt
@@ -9,9 +9,9 @@ description: A permissive license that comes in two variants, the found on their website.
using:
- - Awesome: https://github.com/sindresorhus/awesome/blob/main/license
- - Shields.io: https://github.com/badges/shields/blob/master/LICENSE
- - psdash: https://github.com/Jahaja/psdash/blob/master/LICENSE
+ Awesome: https://github.com/sindresorhus/awesome/blob/main/license
+ Shields.io: https://github.com/badges/shields/blob/master/LICENSE
+ psdash: https://github.com/Jahaja/psdash/blob/master/LICENSE
permissions:
- commercial-use
diff --git a/_licenses/cecill-2.1.txt b/_licenses/cecill-2.1.txt
index d1758d4..91b7c8f 100644
--- a/_licenses/cecill-2.1.txt
+++ b/_licenses/cecill-2.1.txt
@@ -7,9 +7,9 @@ description: Strong copyleft license made by three French public research organi
how: Create a text file (typically named LICENSE or LICENCE) in the root of your source code and copy the text of the license into the file.
using:
- - BMC-Tools: https://github.com/ANSSI-FR/bmc-tools/blob/master/LICENCE.txt
- - Taxe foncière: https://github.com/etalab/taxe-fonciere/blob/master/LICENSE
- - VITAM: https://github.com/ProgrammeVitam/vitam/blob/master_0.15.x/Licence_CeCILL_V2.1-fr.txt
+ BMC-Tools: https://github.com/ANSSI-FR/bmc-tools/blob/master/LICENCE.txt
+ Taxe foncière: https://github.com/etalab/taxe-fonciere/blob/master/LICENSE
+ VITAM: https://github.com/ProgrammeVitam/vitam/blob/master_0.15.x/Licence_CeCILL_V2.1-fr.txt
permissions:
- commercial-use
diff --git a/_licenses/ecl-2.0.txt b/_licenses/ecl-2.0.txt
index e08adba..72c6b9d 100644
--- a/_licenses/ecl-2.0.txt
+++ b/_licenses/ecl-2.0.txt
@@ -9,9 +9,9 @@ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of
note: The Apereo Foundation recommends taking the additional step of adding a boilerplate notice to the header of each source file. You can find the notice in the appendix at the very end of the license text.
using:
- - Sakai: https://github.com/sakaiproject/sakai/blob/master/LICENSE
- - OAE: https://github.com/oaeproject/Hilary/blob/master/LICENSE
- - Opencast: https://github.com/opencast/opencast/blob/develop/LICENSE
+ Sakai: https://github.com/sakaiproject/sakai/blob/master/LICENSE
+ OAE: https://github.com/oaeproject/Hilary/blob/master/LICENSE
+ Opencast: https://github.com/opencast/opencast/blob/develop/LICENSE
permissions:
- commercial-use
diff --git a/_licenses/epl-1.0.txt b/_licenses/epl-1.0.txt
index 95f7411..429a83b 100644
--- a/_licenses/epl-1.0.txt
+++ b/_licenses/epl-1.0.txt
@@ -7,9 +7,9 @@ description: This commercially-friendly copyleft license provides the ability to
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.
using:
- - Eclipse hawkBit: https://github.com/eclipse/hawkbit/blob/master/LICENSE
- - JUnit: https://github.com/junit-team/junit4/blob/main/LICENSE-junit.txt
- - Quil: https://github.com/quil/quil/blob/master/LICENSE
+ Eclipse hawkBit: https://github.com/eclipse/hawkbit/blob/master/LICENSE
+ JUnit: https://github.com/junit-team/junit4/blob/main/LICENSE-junit.txt
+ Quil: https://github.com/quil/quil/blob/master/LICENSE
permissions:
- commercial-use
diff --git a/_licenses/epl-2.0.txt b/_licenses/epl-2.0.txt
index aacc042..753fb7c 100644
--- a/_licenses/epl-2.0.txt
+++ b/_licenses/epl-2.0.txt
@@ -9,9 +9,9 @@ description: This commercially-friendly copyleft license provides the ability to
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.
using:
- - Eclipse SmartHome: https://github.com/eclipse/smarthome/blob/master/LICENSE
- - openHAB: https://github.com/openhab/openhab-distro/blob/master/LICENSE
- - SUMO: https://github.com/eclipse/sumo/blob/master/LICENSE
+ Eclipse SmartHome: https://github.com/eclipse/smarthome/blob/master/LICENSE
+ openHAB: https://github.com/openhab/openhab-distro/blob/master/LICENSE
+ SUMO: https://github.com/eclipse/sumo/blob/master/LICENSE
permissions:
- commercial-use
diff --git a/_licenses/eupl-1.2.txt b/_licenses/eupl-1.2.txt
index 7413aef..3d75c17 100644
--- a/_licenses/eupl-1.2.txt
+++ b/_licenses/eupl-1.2.txt
@@ -7,9 +7,9 @@ description: The European Union Public Licence (EUPL) is a copyleft free/open so
how: Indicate “Licensed under the EUPL” following the copyright notice of your source code, for example in a README file or directly in a source code file as a comment.
using:
- - AethysRotation: https://github.com/SimCMinMax/AethysRotation/blob/master/LICENSE
- - WildDuck: https://github.com/nodemailer/wildduck/blob/master/LICENSE
- - ZoneMTA: https://github.com/zone-eu/zone-mta/blob/master/LICENSE
+ AethysRotation: https://github.com/SimCMinMax/AethysRotation/blob/master/LICENSE
+ WildDuck: https://github.com/nodemailer/wildduck/blob/master/LICENSE
+ ZoneMTA: https://github.com/zone-eu/zone-mta/blob/master/LICENSE
permissions:
- commercial-use
diff --git a/_licenses/gpl-2.0.txt b/_licenses/gpl-2.0.txt
index 36797f2..5ece9ee 100644
--- a/_licenses/gpl-2.0.txt
+++ b/_licenses/gpl-2.0.txt
@@ -12,9 +12,9 @@ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of
note: The Free Software Foundation recommends taking the additional step of adding a boilerplate notice to the top of each file. The boilerplate can be found at the end of the license.
using:
- - AliSQL: https://github.com/alibaba/AliSQL/blob/master/COPYING
- - Discourse: https://github.com/discourse/discourse/blob/master/LICENSE.txt
- - Joomla!: https://github.com/joomla/joomla-cms/blob/staging/LICENSE.txt
+ AliSQL: https://github.com/alibaba/AliSQL/blob/master/COPYING
+ Discourse: https://github.com/discourse/discourse/blob/master/LICENSE.txt
+ Joomla!: https://github.com/joomla/joomla-cms/blob/staging/LICENSE.txt
permissions:
- commercial-use
diff --git a/_licenses/gpl-3.0.txt b/_licenses/gpl-3.0.txt
index 910a12b..0fb3da3 100644
--- a/_licenses/gpl-3.0.txt
+++ b/_licenses/gpl-3.0.txt
@@ -13,9 +13,9 @@ how: Create a text file (typically named COPYING, as per GNU conventions) in the
note: The Free Software Foundation recommends taking the additional step of adding a boilerplate notice to the top of each file. The boilerplate can be found at the end of the license.
using:
- - Ansible: https://github.com/ansible/ansible/blob/devel/COPYING
- - Bash: https://git.savannah.gnu.org/cgit/bash.git/tree/COPYING
- - GIMP: https://git.gnome.org/browse/gimp/tree/COPYING
+ Ansible: https://github.com/ansible/ansible/blob/devel/COPYING
+ Bash: https://git.savannah.gnu.org/cgit/bash.git/tree/COPYING
+ GIMP: https://git.gnome.org/browse/gimp/tree/COPYING
permissions:
- commercial-use
diff --git a/_licenses/isc.txt b/_licenses/isc.txt
index 09299f4..f6cbbbb 100644
--- a/_licenses/isc.txt
+++ b/_licenses/isc.txt
@@ -7,9 +7,9 @@ description: A permissive license lets people do anything with your code with pr
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.
using:
- - Starship: https://github.com/starship/starship/blob/master/LICENSE
- - Node.js semver: https://github.com/npm/node-semver/blob/master/LICENSE
- - OpenStreetMap iD: https://github.com/openstreetmap/iD/blob/develop/LICENSE.md
+ Starship: https://github.com/starship/starship/blob/master/LICENSE
+ Node.js semver: https://github.com/npm/node-semver/blob/master/LICENSE
+ OpenStreetMap iD: https://github.com/openstreetmap/iD/blob/develop/LICENSE.md
permissions:
- commercial-use
diff --git a/_licenses/mit.txt b/_licenses/mit.txt
index 7aa6087..79d306c 100644
--- a/_licenses/mit.txt
+++ b/_licenses/mit.txt
@@ -9,9 +9,9 @@ description: A short and simple permissive license with conditions only requirin
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.
using:
- - Babel: https://github.com/babel/babel/blob/master/LICENSE
- - .NET Core: https://github.com/dotnet/runtime/blob/master/LICENSE.TXT
- - Rails: https://github.com/rails/rails/blob/master/MIT-LICENSE
+ Babel: https://github.com/babel/babel/blob/master/LICENSE
+ .NET Core: https://github.com/dotnet/runtime/blob/master/LICENSE.TXT
+ Rails: https://github.com/rails/rails/blob/master/MIT-LICENSE
permissions:
- commercial-use
diff --git a/_licenses/mpl-2.0.txt b/_licenses/mpl-2.0.txt
index 7dd0965..516c796 100644
--- a/_licenses/mpl-2.0.txt
+++ b/_licenses/mpl-2.0.txt
@@ -11,9 +11,9 @@ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of
note: The Mozilla Foundation recommends taking the additional step of adding a boilerplate notice to the top of each file. The boilerplate can be found at the end of the license (Exhibit A).
using:
- - Servo: https://github.com/servo/servo/blob/master/LICENSE
- - Syncthing: https://github.com/syncthing/syncthing/blob/main/LICENSE
- - TimelineJS3: https://github.com/NUKnightLab/TimelineJS3/blob/master/LICENSE
+ Servo: https://github.com/servo/servo/blob/master/LICENSE
+ Syncthing: https://github.com/syncthing/syncthing/blob/main/LICENSE
+ TimelineJS3: https://github.com/NUKnightLab/TimelineJS3/blob/master/LICENSE
permissions:
- commercial-use
diff --git a/_licenses/ncsa.txt b/_licenses/ncsa.txt
index 7a83fc9..9380cfa 100644
--- a/_licenses/ncsa.txt
+++ b/_licenses/ncsa.txt
@@ -8,9 +8,9 @@ description: The University of Illinois/NCSA Open Source License, or UIUC licens
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. Replace [project] with the project organization, if any, that sponsors this work.
using:
- - ROCR-Runtime: https://github.com/RadeonOpenCompute/ROCR-Runtime/blob/master/LICENSE.txt
- - RLTK: https://github.com/chriswailes/RLTK/blob/master/LICENSE
- - ToaruOS: https://github.com/klange/toaruos/blob/master/LICENSE
+ ROCR-Runtime: https://github.com/RadeonOpenCompute/ROCR-Runtime/blob/master/LICENSE.txt
+ RLTK: https://github.com/chriswailes/RLTK/blob/master/LICENSE
+ ToaruOS: https://github.com/klange/toaruos/blob/master/LICENSE
permissions:
- commercial-use
diff --git a/_licenses/odbl-1.0.txt b/_licenses/odbl-1.0.txt
index 0f54618..c7621e0 100644
--- a/_licenses/odbl-1.0.txt
+++ b/_licenses/odbl-1.0.txt
@@ -8,9 +8,9 @@ description: The Open Database License (ODbL) is a license agreement intended to
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.
using:
- - World Countries: https://github.com/mledoze/countries/blob/master/LICENSE
- - OpenFlights: https://github.com/jpatokal/openflights/blob/master/data/LICENSE
- - Public Zone Database: https://github.com/zonedb/zonedb/blob/master/LICENSE.md
+ World Countries: https://github.com/mledoze/countries/blob/master/LICENSE
+ OpenFlights: https://github.com/jpatokal/openflights/blob/master/data/LICENSE
+ Public Zone Database: https://github.com/zonedb/zonedb/blob/master/LICENSE.md
permissions:
- commercial-use
diff --git a/_licenses/ofl-1.1.txt b/_licenses/ofl-1.1.txt
index 20ad7ae..a31de6d 100644
--- a/_licenses/ofl-1.1.txt
+++ b/_licenses/ofl-1.1.txt
@@ -10,9 +10,9 @@ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of
note: This license doesn't require source provision, but recommends it. All files derived from OFL files must remain licensed under the OFL.
using:
- - FiraCode: https://github.com/tonsky/FiraCode/blob/master/LICENSE
- - Noto fonts: https://github.com/googlefonts/noto-fonts/blob/master/LICENSE
- - Fantasque Sans Mono: https://github.com/belluzj/fantasque-sans/blob/master/LICENSE.txt
+ FiraCode: https://github.com/tonsky/FiraCode/blob/master/LICENSE
+ Noto fonts: https://github.com/googlefonts/noto-fonts/blob/master/LICENSE
+ Fantasque Sans Mono: https://github.com/belluzj/fantasque-sans/blob/master/LICENSE.txt
permissions:
- private-use
diff --git a/_licenses/osl-3.0.txt b/_licenses/osl-3.0.txt
index 6457b2d..befdc77 100644
--- a/_licenses/osl-3.0.txt
+++ b/_licenses/osl-3.0.txt
@@ -9,9 +9,9 @@ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of
note: OSL 3.0's author has provided an explanation behind the creation of the license.
using:
- - appserver.io: https://github.com/appserver-io/appserver/blob/master/LICENSE.txt
- - JsonMapper: https://github.com/cweiske/jsonmapper/blob/master/LICENSE
- - Restyaboard: https://github.com/RestyaPlatform/board/blob/master/LICENSE.txt
+ appserver.io: https://github.com/appserver-io/appserver/blob/master/LICENSE.txt
+ JsonMapper: https://github.com/cweiske/jsonmapper/blob/master/LICENSE
+ Restyaboard: https://github.com/RestyaPlatform/board/blob/master/LICENSE.txt
permissions:
- commercial-use
diff --git a/_licenses/postgresql.txt b/_licenses/postgresql.txt
index 24176f6..897f1e8 100644
--- a/_licenses/postgresql.txt
+++ b/_licenses/postgresql.txt
@@ -7,9 +7,9 @@ description: A very short, BSD-style license, used specifically for PostgreSQL.
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.
using:
- - pgBadger: https://github.com/darold/pgbadger/blob/master/LICENSE
- - pgAdmin: https://github.com/postgres/pgadmin4/blob/master/LICENSE
- - .NET Access to PostgreSQL: https://github.com/npgsql/npgsql/blob/dev/LICENSE
+ pgBadger: https://github.com/darold/pgbadger/blob/master/LICENSE
+ pgAdmin: https://github.com/postgres/pgadmin4/blob/master/LICENSE
+ .NET Access to PostgreSQL: https://github.com/npgsql/npgsql/blob/main/LICENSE
permissions:
- commercial-use
diff --git a/_licenses/unlicense.txt b/_licenses/unlicense.txt
index c42a257..1387de4 100644
--- a/_licenses/unlicense.txt
+++ b/_licenses/unlicense.txt
@@ -8,9 +8,9 @@ description: A license with no conditions whatsoever which dedicates works to th
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.
using:
- - youtube-dl: https://github.com/rg3/youtube-dl/blob/master/LICENSE
- - kakoune: https://github.com/mawww/kakoune/blob/master/UNLICENSE
- - RDF.rb: https://github.com/ruby-rdf/rdf/blob/master/UNLICENSE
+ youtube-dl: https://github.com/rg3/youtube-dl/blob/master/LICENSE
+ kakoune: https://github.com/mawww/kakoune/blob/master/UNLICENSE
+ RDF.rb: https://github.com/ruby-rdf/rdf/blob/master/UNLICENSE
permissions:
- private-use
diff --git a/_licenses/upl-1.0.txt b/_licenses/upl-1.0.txt
index a6c11f8..6c53e79 100644
--- a/_licenses/upl-1.0.txt
+++ b/_licenses/upl-1.0.txt
@@ -9,9 +9,9 @@ how: Insert the license or a link to it along with a copyright notice into your
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/.
using:
- - Oracle Product Images for Docker: https://github.com/oracle/docker-images/blob/master/LICENSE
- - Skater: https://github.com/oracle/Skater/blob/master/LICENSE
- - Soufflé: https://github.com/souffle-lang/souffle/blob/master/LICENSE
+ Oracle Product Images for Docker: https://github.com/oracle/docker-images/blob/master/LICENSE
+ Skater: https://github.com/oracle/Skater/blob/master/LICENSE
+ Soufflé: https://github.com/souffle-lang/souffle/blob/master/LICENSE
permissions:
- commercial-use
diff --git a/_licenses/vim.txt b/_licenses/vim.txt
index d850bd9..ca21d8a 100644
--- a/_licenses/vim.txt
+++ b/_licenses/vim.txt
@@ -7,9 +7,9 @@ description: There are no restrictions on using or distributing an unmodified co
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 [project] with the project name.
using:
- - Vim: https://github.com/vim/vim/blob/master/LICENSE
- - Pathogen: https://github.com/tpope/vim-pathogen/blob/master/LICENSE
- - vim-license-gen: https://github.com/othree/vim-license/blob/master/LICENSE
+ Vim: https://github.com/vim/vim/blob/master/LICENSE
+ Pathogen: https://github.com/tpope/vim-pathogen/blob/master/LICENSE
+ vim-license-gen: https://github.com/othree/vim-license/blob/master/LICENSE
permissions:
- commercial-use
diff --git a/_licenses/zlib.txt b/_licenses/zlib.txt
index 706b1b5..911d773 100644
--- a/_licenses/zlib.txt
+++ b/_licenses/zlib.txt
@@ -7,9 +7,9 @@ description: A short permissive license, compatible with GPL. Requires altered s
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.
using:
- - GLFW: https://github.com/glfw/glfw/blob/master/LICENSE.md
- - Portainer: https://github.com/portainer/portainer/blob/develop/LICENSE
- - TinyXML-2: https://github.com/leethomason/tinyxml2/blob/master/LICENSE.txt
+ GLFW: https://github.com/glfw/glfw/blob/master/LICENSE.md
+ Portainer: https://github.com/portainer/portainer/blob/develop/LICENSE
+ TinyXML-2: https://github.com/leethomason/tinyxml2/blob/master/LICENSE.txt
permissions:
- commercial-use
diff --git a/spec/license_meta_spec.rb b/spec/license_meta_spec.rb
index 858acfb..de1d55a 100644
--- a/spec/license_meta_spec.rb
+++ b/spec/license_meta_spec.rb
@@ -19,7 +19,7 @@ describe 'license meta' do
expect(missing).to be_empty
end
- examples = raw_fields['using'] || []
+ examples = raw_fields['using'] || {}
it 'using contains 3 examples' do
legacy = [
@@ -42,9 +42,7 @@ describe 'license meta' do
context 'licensee detects using examples' do
slug = license['slug']
- examples.each do |example|
- example_url = example.values[0]
-
+ examples.each_value do |example_url|
context "the #{example_url} URL" do
let(:content) { OpenURI.open_uri(example_url).read }
let(:detected) { Licensee::ProjectFiles::LicenseFile.new(content, 'LICENSE').license }
diff --git a/spec/license_shown_spec.rb b/spec/license_shown_spec.rb
index c9e199b..39f535e 100644
--- a/spec/license_shown_spec.rb
+++ b/spec/license_shown_spec.rb
@@ -2,25 +2,25 @@
require 'spec_helper'
-describe 'shown licenses' do
- # Whitelist of popular licenses that are shown (non-hidden)
- # Note: most new licenses that are added should be hidden by default
- SHOWN_LICENSES = %w[
- agpl-3.0
- apache-2.0
- bsd-2-clause
- bsd-3-clause
- bsl-1.0
- cc0-1.0
- epl-2.0
- gpl-2.0
- gpl-3.0
- lgpl-2.1
- mit
- mpl-2.0
- unlicense
- ].freeze
+# Popular licenses that are shown (non-hidden)
+# Note: most new licenses that are added should be hidden by default
+SHOWN_LICENSES = %w[
+ agpl-3.0
+ apache-2.0
+ bsd-2-clause
+ bsd-3-clause
+ bsl-1.0
+ cc0-1.0
+ epl-2.0
+ gpl-2.0
+ gpl-3.0
+ lgpl-2.1
+ mit
+ mpl-2.0
+ unlicense
+].freeze
+describe 'shown licenses' do
it 'has the expected number of shown licenses' do
expect(shown_licenses.count).to eql(13)
expect(SHOWN_LICENSES.count).to eql(shown_licenses.count)