Projects
openEuler:Mainline
rubygem-pry
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 10
View file
_service:tar_scm:rubygem-pry.spec
Changed
@@ -1,7 +1,7 @@ %global gem_name pry Name: rubygem-%{gem_name} Version: 0.13.1 -Release: 1 +Release: 2 Summary: An IRB alternative and runtime developer console License: MIT URL: https://rubygems.org/gems/pry @@ -17,6 +17,7 @@ %endif BuildRequires: ruby(release) rubygems-devel ruby rubygem(rspec) rubygem(coderay) => 1.1.0 BuildRequires: rubygem(slop) => 3.4 rubygem(method_source) => 0.8.1 vi rubygem(bundler) +Patch001: 0001-do-not-undef-unless-defined-2149.patch BuildArch: noarch %if 0%{?fc19} || 0%{?fc20} || 0%{?el7} Provides: rubygem(%{gem_name}) = %{version} @@ -35,6 +36,7 @@ gem unpack %{SOURCE0} %setup -q -D -T -n %{gem_name}-%{version} gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec +%patch001 -p1 %build gem build %{gem_name}.gemspec @@ -75,6 +77,9 @@ %doc %{gem_instdir}/README.md %changelog +* Tue Aug 01 2023 chenchen <chen_aka_jan@163.com> - 0.13.1-2 +- fix build error for ruby upgrade to 3.2.2 + * Mon Feb 21 2022 houyingchao <houyingchao@huawei.com> - 0.13.1-1 - Upgrade to 0.13.1 version
View file
_service:tar_scm:0001-do-not-undef-unless-defined-2149.patch
Added
@@ -0,0 +1,27 @@ +From b548784b4a31b49026b69849430a9ec9072ae94a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= + <shyouhei@ruby-lang.org> +Date: Thu, 6 Aug 2020 22:21:10 +0900 +Subject: PATCH do not undef =~ unless defined (#2149) + +Undefining a nonexistent definition is an error in Ruby. This has not been a problem because there always was `Object#=~` predefined. But we are planning to delete that useless method. This would become an error unless properly guarded. +--- + lib/pry/code.rb | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/pry/code.rb b/lib/pry/code.rb +index ad38b4f2..1fb206c4 100644 +--- a/lib/pry/code.rb ++++ b/lib/pry/code.rb +@@ -339,7 +339,7 @@ class Pry + super + end + end +- undef =~ ++ undef =~ if method_defined?(:=~) + + # Check whether String responds to missing methods. + def respond_to_missing?(method_name, include_private = false) +-- +2.41.0 +
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