summaryrefslogtreecommitdiff
path: root/lib/rubygems/util
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-19 06:16:19 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-19 06:16:19 +0000
commit5f6715275e703ab49666a0440e6fcbb92a24c32f (patch)
treea998b4d6bf4f1dd3ef2b84adef8971eb78643ae2 /lib/rubygems/util
parent9c065a4bfb96d9d482b54e7831e26d01ace77b0d (diff)
* lib/rubygems: Update to RubyGems 2.5.0+ HEAD(c6b4946).
this version includes #1114, #1314, #1322, #1375, #1383, #1387 * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/util')
-rw-r--r--lib/rubygems/util/licenses.rb22
1 files changed, 21 insertions, 1 deletions
diff --git a/lib/rubygems/util/licenses.rb b/lib/rubygems/util/licenses.rb
index 280d148625..a15b556c3e 100644
--- a/lib/rubygems/util/licenses.rb
+++ b/lib/rubygems/util/licenses.rb
@@ -4,7 +4,8 @@ class Gem::Licenses
# Software Package Data Exchange (SPDX) standard open-source software
# license identifiers
IDENTIFIERS = %w(
- AAL
+ 0BSD
+ AAL
ADSL
AFL-1.1
AFL-1.2
@@ -89,6 +90,7 @@ class Gem::Licenses
CECILL-1.0
CECILL-1.1
CECILL-2.0
+ CECILL-2.1
CECILL-B
CECILL-C
CNRI-Jython
@@ -102,6 +104,7 @@ class Gem::Licenses
ClArtistic
Condor-1.1
Crossword
+ CrystalStacker
Cube
D-FSL-1.0
DOC
@@ -146,6 +149,7 @@ class Gem::Licenses
Imlib2
Intel
Intel-ACPI
+ Interbase-1.0
JSON
JasPer-2.0
LGPL-2.0
@@ -254,6 +258,7 @@ class Gem::Licenses
SPL-1.0
SWL
Saxpath
+ Sendmail
SimPL-2.0
Sleepycat
Spencer-86
@@ -306,4 +311,19 @@ class Gem::Licenses
xpp
zlib-acknowledgement
).freeze
+
+ REGEXP = %r{
+ \A
+ (
+ #{Regexp.union(IDENTIFIERS)}
+ \+?
+ (\s WITH \s .+)?
+ | #{NONSTANDARD}
+ )
+ \Z
+ }ox.freeze
+
+ def self.match?(license)
+ !REGEXP.match(license).nil?
+ end
end