diff options
author | David RodrÃguez <[email protected]> | 2023-10-26 22:17:09 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-11-13 11:06:10 +0900 |
commit | a4d80eee179cf4d0b126aa8c61888b7e08795a85 () | |
tree | 33bfed98764f21b8b497a93f9d924fc483cecd51 /lib/rubygems/specification_policy.rb | |
parent | 50482cd1e5542f210565440bed7586821f774a29 (diff) |
[rubygems/rubygems] Let RuboCop target Ruby 3.0
https://.com/rubygems/rubygems/commit/70243b1d72
-rw-r--r-- | lib/rubygems/specification_policy.rb | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -5,11 +5,11 @@ require_relative "user_interaction" class Gem::SpecificationPolicy include Gem::UserInteraction - VALID_NAME_PATTERN = /\A[a-zA-Z0-9\.\-\_]+\z/.freeze # :nodoc: - SPECIAL_CHARACTERS = /\A[#{Regexp.escape('.-_')}]+/.freeze # :nodoc: - VALID_URI_PATTERN = %r{\Ahttps?:\/\/([^\s:@]+:[^\s:@]*@)?[A-Za-z\d\-]+(\.[A-Za-z\d\-]+)+\.?(:\d{1,5})?([\/?]\S*)?\z}.freeze # :nodoc: METADATA_LINK_KEYS = %w[ bug_tracker_uri @@ -400,8 +400,8 @@ or set it to nil if you don't want to specify a license. end LAZY = '"FIxxxXME" or "TOxxxDO"'.gsub(/xxx/, "") - LAZY_PATTERN = /\AFI XME|\ATO DO/x.freeze - HOMEPAGE_URI_PATTERN = /\A[a-z][a-z\d+.-]*:/i.freeze def validate_lazy_metadata unless @specification.authors.grep(LAZY_PATTERN).empty? |