!7 update to 0.14.2

From: @lyn1001 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-11-20 01:22:49 +00:00 committed by Gitee
commit 0111aacd51
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
7 changed files with 7 additions and 69 deletions

View File

@ -1,27 +0,0 @@
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

View File

@ -1,26 +0,0 @@
From 25f5022fcf3c43c43bfdb10ff2c1dc60588b9fa6 Mon Sep 17 00:00:00 2001
From: Barrett Ingram <bingram@eab.com>
Date: Sat, 2 Jan 2021 17:53:36 -0600
Subject: [PATCH] Add CI support for ruby 3 and fix broken spec
Spec started failing because a statement which we expected to be a
syntax error is now interpreted as a valid pattern-matching statement.
Swapping the hash-rockets for colons turns this back into a syntax
error.
---
spec/syntax_checking_spec.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletion(-)
diff --git a/spec/syntax_checking_spec.rb b/spec/syntax_checking_spec.rb
index ca75ba9f0..beba497f1 100644
--- a/spec/syntax_checking_spec.rb
+++ b/spec/syntax_checking_spec.rb
@@ -36,7 +36,7 @@
["o = Object.new.tap{ def o.render;", "'MEH'", "}"],
# multiple syntax errors reported in one SyntaxException
- ["puts {'key'=>'val'}.to_json"]
+ ["puts {key: 'val'}.to_json"]
].compact.each do |foo|
it "should raise an error on invalid syntax like #{foo.inspect}" do
redirect_pry_io(InputTester.new(*foo), @str_output) do

Binary file not shown.

BIN
pry-0.14.2.gem Normal file

Binary file not shown.

View File

@ -1,27 +1,16 @@
%global gem_name pry %global gem_name pry
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 0.13.1 Version: 0.14.2
Release: 2 Release: 1
Summary: An IRB alternative and runtime developer console Summary: An IRB alternative and runtime developer console
License: MIT License: MIT
URL: https://rubygems.org/gems/pry URL: https://rubygems.org/gems/pry
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: https://github.com/pry/%{gem_name}/archive/v%{version}.tar.gz Source1: https://github.com/pry/%{gem_name}/archive/v%{version}.tar.gz
# rm stray openstruct reference. Upstream at
# https://github.com/pry/pry/commit/70942ad3b2d93e028fc3e8bfe1c6bd11ec79ffad
Patch0: pry-0.13.1-Fix-broken-spec.patch
%if 0%{?fc19} || 0%{?fc20} || 0%{?el7}
Requires: ruby(release) ruby(rubygems) rubygem(coderay) => 1.1.0 rubygem(coderay) < 1.2
Requires: rubygem(slop) => 3.4 rubygem(slop) < 4 rubygem(method_source) => 0.8.1
Requires: rubygem(method_source) < 0.9
%endif
BuildRequires: ruby(release) rubygems-devel ruby rubygem(rspec) rubygem(coderay) => 1.1.0 BuildRequires: ruby(release) rubygems-devel ruby rubygem(rspec) rubygem(coderay) => 1.1.0
BuildRequires: rubygem(did_you_mean) ruby-irb
BuildRequires: rubygem(slop) => 3.4 rubygem(method_source) => 0.8.1 vi rubygem(bundler) 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 BuildArch: noarch
%if 0%{?fc19} || 0%{?fc20} || 0%{?el7}
Provides: rubygem(%{gem_name}) = %{version}
%endif
%description %description
An IRB alternative and runtime developer console. An IRB alternative and runtime developer console.
@ -36,7 +25,6 @@ Documentation for %{name}.
gem unpack %{SOURCE0} gem unpack %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version} %setup -q -D -T -n %{gem_name}-%{version}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%patch001 -p1
%build %build
gem build %{gem_name}.gemspec gem build %{gem_name}.gemspec
@ -55,9 +43,9 @@ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
pushd .%{gem_instdir} pushd .%{gem_instdir}
tar xvf %{SOURCE1} tar xvf %{SOURCE1}
ln -s %{gem_name}-%{version}/spec spec ln -s %{gem_name}-%{version}/spec spec
cat %{PATCH0} | patch -p1
touch Rakefile touch Rakefile
sed -i '/pry\/foo/ s/pry/pry-%{version}/' spec/cli_spec.rb sed -i '/pry\/foo/ s/pry/pry-%{version}/' spec/cli_spec.rb
env COLUMNS=160 \
RUBYOPT=-rbundler rspec -rspec_helper spec RUBYOPT=-rbundler rspec -rspec_helper spec
popd popd
@ -77,6 +65,9 @@ popd
%doc %{gem_instdir}/README.md %doc %{gem_instdir}/README.md
%changelog %changelog
* Thu Nov 16 2023 liyanan <liyanan61@h-partners.com> - 0.14.2-1
- Update to 0.14.2
* Tue Aug 01 2023 chenchen <chen_aka_jan@163.com> - 0.13.1-2 * Tue Aug 01 2023 chenchen <chen_aka_jan@163.com> - 0.13.1-2
- fix build error for ruby upgrade to 3.2.2 - fix build error for ruby upgrade to 3.2.2

Binary file not shown.

BIN
v0.14.2.tar.gz Normal file

Binary file not shown.