Projects
Mega:24.09
rubygem-mustermann
_service:tar_scm:mustermann-1.1.1-ruby32-regex_...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:mustermann-1.1.1-ruby32-regex_match-for-object-2.patch of Package rubygem-mustermann
From 82d5efc5796e8e4864e495da6280c6edd7d09375 Mon Sep 17 00:00:00 2001 From: Olle Jonsson <olle.jonsson@gmail.com> Date: Thu, 17 Dec 2020 14:10:06 +0100 Subject: [PATCH] Avoid "deprecated Object#=~ is called on Integer" In a test suite I was using, I saw this warning printed liberally: warning: deprecated Object#=~ is called on Integer; it always returns nil Change inspired by the same kind of fix here: https://github.com/rails/rails/commit/eafff15a023670974bd71efaec51e4c80364b95d --- mustermann/lib/mustermann/ast/translator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mustermann/lib/mustermann/ast/translator.rb b/mustermann/lib/mustermann/ast/translator.rb index 596e362..87b90c7 100644 --- a/mustermann/lib/mustermann/ast/translator.rb +++ b/mustermann/lib/mustermann/ast/translator.rb @@ -120,7 +120,7 @@ def decorator_for(node) # @!visibility private def escape(char, parser: URI::DEFAULT_PARSER, escape: parser.regexp[:UNSAFE], also_escape: nil) escape = Regexp.union(also_escape, escape) if also_escape - char =~ escape ? parser.escape(char, Regexp.union(*escape)) : char + char.to_s =~ escape ? parser.escape(char, Regexp.union(*escape)) : char end end end
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2