mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 04:40:09 +01:00
Merge pull request #547 from github/brackets
Restore square brackets from canonical license versions
This commit is contained in:
commit
ef08b95e4f
@ -215,7 +215,7 @@ limitations:
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "{}"
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
@ -223,7 +223,7 @@ limitations:
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright {yyyy} {name of copyright owner}
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
@ -216,14 +216,14 @@ END OF TERMS AND CONDITIONS
|
||||
APPENDIX: How to apply the Educational Community License to your work
|
||||
|
||||
To apply the Educational Community License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "{}" replaced with
|
||||
boilerplate notice, with the fields enclosed by brackets "[]" replaced with
|
||||
your own identifying information. (Don't include the brackets!) The text
|
||||
should be enclosed in the appropriate comment syntax for the file format. We
|
||||
also recommend that a file or class name and description of purpose be
|
||||
included on the same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright {yyyy} {name of copyright owner} Licensed under the Educational
|
||||
Copyright [yyyy] [name of copyright owner] Licensed under the Educational
|
||||
Community License, Version 2.0 (the "License"); you may not use this file
|
||||
except in compliance with the License. You may obtain a copy of the License at
|
||||
|
||||
|
@ -40,9 +40,9 @@ limitations:
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
(This is the first released version of the Lesser GPL. It also counts
|
||||
[This is the first released version of the Lesser GPL. It also counts
|
||||
as the successor of the GNU Library Public License, version 2, hence
|
||||
the version number 2.1.)
|
||||
the version number 2.1.]
|
||||
|
||||
Preamble
|
||||
|
||||
|
@ -1,15 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'spec_helper'
|
||||
|
||||
describe 'license fillable fields' do
|
||||
licenses.each do |license|
|
||||
context "The #{license['title']} license" do
|
||||
it 'should only contain supported fillable fields' do
|
||||
matches = license['content'].scan(/\[([a-z]+)\]/)
|
||||
extra_fields = matches.flatten - (fields.map { |f| f['name'] })
|
||||
expect(extra_fields).to be_empty
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user