summaryrefslogtreecommitdiff
path: root/lib/rubygems/util
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2023-10-26 22:17:09 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-11-13 11:06:10 +0900
commita4d80eee179cf4d0b126aa8c61888b7e08795a85 (patch)
tree33bfed98764f21b8b497a93f9d924fc483cecd51 /lib/rubygems/util
parent50482cd1e5542f210565440bed7586821f774a29 (diff)
[rubygems/rubygems] Let RuboCop target Ruby 3.0
https://github.com/rubygems/rubygems/commit/70243b1d72
Diffstat (limited to 'lib/rubygems/util')
-rw-r--r--lib/rubygems/util/licenses.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rubygems/util/licenses.rb b/lib/rubygems/util/licenses.rb
index 7dfeb2c697..47dbc17304 100644
--- a/lib/rubygems/util/licenses.rb
+++ b/lib/rubygems/util/licenses.rb
@@ -697,7 +697,7 @@ class Gem::Licenses
| #{LICENSE_REF}
)
\Z
- /ox.freeze
+ /ox
DEPRECATED_LICENSE_REGEXP = /
\A
@@ -705,7 +705,7 @@ class Gem::Licenses
\+?
(?:\s WITH \s .+?)?
\Z
- /ox.freeze
+ /ox
DEPRECATED_EXCEPTION_REGEXP = /
\A
@@ -713,7 +713,7 @@ class Gem::Licenses
\+?
(?:\s WITH \s #{Regexp.union(DEPRECATED_EXCEPTION_IDENTIFIERS)})
\Z
- /ox.freeze
+ /ox
def self.match?(license)
VALID_REGEXP.match?(license)