summaryrefslogtreecommitdiff
path: root/lib/rubygems/util
diff options
context:
space:
mode:
authorCarlos Palhares <chjunior@gmail.com>2021-10-25 15:50:32 -0300
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-11-02 10:24:00 +0900
commit17f8fd656818d62ab18027dc21e463768e1a9b54 (patch)
treecef7b37d9c1d65ee2b6d7dd2a45c5920e4614033 /lib/rubygems/util
parentb74385e78d36f2d7ecba364e615c3424a55fa169 (diff)
Allow custom LicenseRef
Diffstat (limited to 'lib/rubygems/util')
-rw-r--r--lib/rubygems/util/licenses.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rubygems/util/licenses.rb b/lib/rubygems/util/licenses.rb
index 8de5b11ae3..3f4178c6e0 100644
--- a/lib/rubygems/util/licenses.rb
+++ b/lib/rubygems/util/licenses.rb
@@ -5,6 +5,7 @@ class Gem::Licenses
extend Gem::Text
NONSTANDARD = 'Nonstandard'.freeze
+ LICENSE_REF = 'LicenseRef-.+'.freeze
# Software Package Data Exchange (SPDX) standard open-source software
# license identifiers
@@ -523,6 +524,7 @@ class Gem::Licenses
\+?
(?:\s WITH \s #{Regexp.union(EXCEPTION_IDENTIFIERS)})?
| #{NONSTANDARD}
+ | #{LICENSE_REF}
)
\Z
}ox.freeze