End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Specification#sanitize_string
sanitize_string(string)
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/specification.rb, line 1496
def sanitize_string(string)
return string unless string
# HACK the #to_s is in here because RSpec has an Array of Arrays of
# Strings for authors. Need a way to disallow bad values on gemspec
# generation. (Probably won't happen.)
string.to_s
end
Sanitize a single string.
See also
#sanitize
#satisfies_requirement?
#same_attributes?
#sort_obj
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0