diff --git a/no-license.md b/no-license.md index 9299dfe..d5e09f5 100644 --- a/no-license.md +++ b/no-license.md @@ -20,11 +20,13 @@ You don't have to do anything to not offer a license, though including a copyrig Disallowing use of your code might not be what you intend by "no license." An [open-source license](/) allows reuse of your code while retaining copyright. If your goal is to completely opt-out of copyright restrictions, try a [public domain dedication](/licenses/#unlicense). -Even in the absence of a license file, you may grant some rights in cases where you publish your source code to a site that requires accepting terms of service. For example, if you publish your source code in a public repository on GitHub, you have accepted the [Terms of Service](https://help.github.com/articles/github-terms-of-service) by which you allow others to view and fork your repository. +Even in the absence of a license file, you may grant some rights in cases where you publish your source code to a site that requires accepting terms of service. For example, if you publish your source code in a public repository on GitHub, you have accepted the [Terms of Service](https://help.github.com/articles/github-terms-of-service), by which you allow others to view and fork your repository; but this alone does not allow for the kinds of collaboration that people usually seek on a public code host, such as experimentation, modification, and sharing as fostered by an open source license. ## For users -If you find software that doesn't have a license, that generally means you have no permission from the creators of the software to use, modify, or share the software. Your options: +If you find software that doesn't have a license, that generally means you have no permission from the creators of the software to use, modify, or share the software. Although a code host such as GitHub may allow you to download or fork the code, this does not imply that you are permitted to use, modify, or share the software for any purpose. + +Your options: **Ask the maintainers nicely to add a license.** Unless the software includes strong indications to the contrary, lack of a license is probably an oversight. If the software is hosted on a site like GitHub, open an issue requesting a license and include a link to this site, or if you're bold and it's fairly obvious what license is most appropriate, open a pull request to add a license. diff --git a/spec/license_meta_spec.rb b/spec/license_meta_spec.rb index 8b5e583..0933085 100644 --- a/spec/license_meta_spec.rb +++ b/spec/license_meta_spec.rb @@ -3,7 +3,7 @@ require 'spec_helper' describe 'license meta' do licenses.each do |license| # Manually load the raw license so we don't get the defaults - raw_fields = SafeYAML.load_file("_licenses/#{license['id']}.txt") + raw_fields = SafeYAML.load_file("_licenses/#{license['spdx-lcase']}.txt") context "The #{license['title']} license" do it 'should only contain supported meta fields' do diff --git a/spec/license_spec.rb b/spec/license_spec.rb index 2a9ae68..2917392 100644 --- a/spec/license_spec.rb +++ b/spec/license_spec.rb @@ -7,7 +7,7 @@ describe 'licenses' do licenses.each do |license| context "The #{license['title']} license" do - let(:id) { license['id'] } + let(:spdx_lcase) { license['spdx-lcase'] } let(:spdx_id) { license['spdx-id'] } it 'has an SPDX ID' do @@ -15,7 +15,7 @@ describe 'licenses' do end it 'has an ID that is downcased SPDX ID' do - expect(spdx_id.casecmp(id).zero?) + expect(spdx_id.casecmp(spdx_lcase).zero?) end it 'uses its SPDX name' do @@ -26,7 +26,7 @@ describe 'licenses' do context 'industry approval' do it 'should be approved by OSI or FSF or OD' do - expect(approved_licenses).to include(id), 'See https://git.io/vzCTV.' + expect(approved_licenses).to include(spdx_lcase), 'See https://git.io/vzCTV.' end end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 8c33f3c..adec337 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -34,16 +34,12 @@ end def licenses SpecHelper.licenses ||= begin site.collections['licenses'].docs.map do |license| - id = File.basename(license.basename, '.txt') - license.to_liquid.merge('id' => id) + spdx_lcase = File.basename(license.basename, '.txt') + license.to_liquid.merge('spdx-lcase' => spdx_lcase) end end end -def license_ids - licenses.map { |l| l['id'] } -end - def site SpecHelper.site ||= begin site = Jekyll::Site.new(config)