diff --git a/0001-do-not-undef-unless-defined-2149.patch b/0001-do-not-undef-unless-defined-2149.patch deleted file mode 100644 index 29be92c..0000000 --- a/0001-do-not-undef-unless-defined-2149.patch +++ /dev/null @@ -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?= - -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 - diff --git a/pry-0.13.1-Fix-broken-spec.patch b/pry-0.13.1-Fix-broken-spec.patch deleted file mode 100644 index 100c9ff..0000000 --- a/pry-0.13.1-Fix-broken-spec.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 25f5022fcf3c43c43bfdb10ff2c1dc60588b9fa6 Mon Sep 17 00:00:00 2001 -From: Barrett Ingram -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 diff --git a/pry-0.13.1.gem b/pry-0.13.1.gem deleted file mode 100644 index e90e408..0000000 Binary files a/pry-0.13.1.gem and /dev/null differ diff --git a/pry-0.14.2.gem b/pry-0.14.2.gem new file mode 100644 index 0000000..7f06f5f Binary files /dev/null and b/pry-0.14.2.gem differ diff --git a/rubygem-pry.spec b/rubygem-pry.spec index 70fa0c5..5f8d244 100644 --- a/rubygem-pry.spec +++ b/rubygem-pry.spec @@ -1,27 +1,16 @@ %global gem_name pry Name: rubygem-%{gem_name} -Version: 0.13.1 -Release: 2 +Version: 0.14.2 +Release: 1 Summary: An IRB alternative and runtime developer console License: MIT URL: https://rubygems.org/gems/pry Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem 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: rubygem(did_you_mean) ruby-irb 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} -%endif %description An IRB alternative and runtime developer console. @@ -36,7 +25,6 @@ Documentation for %{name}. 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 @@ -55,9 +43,9 @@ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x pushd .%{gem_instdir} tar xvf %{SOURCE1} ln -s %{gem_name}-%{version}/spec spec -cat %{PATCH0} | patch -p1 touch Rakefile sed -i '/pry\/foo/ s/pry/pry-%{version}/' spec/cli_spec.rb +env COLUMNS=160 \ RUBYOPT=-rbundler rspec -rspec_helper spec popd @@ -77,6 +65,9 @@ popd %doc %{gem_instdir}/README.md %changelog +* Thu Nov 16 2023 liyanan - 0.14.2-1 +- Update to 0.14.2 + * Tue Aug 01 2023 chenchen - 0.13.1-2 - fix build error for ruby upgrade to 3.2.2 diff --git a/v0.13.1.tar.gz b/v0.13.1.tar.gz deleted file mode 100644 index 4ecf7c7..0000000 Binary files a/v0.13.1.tar.gz and /dev/null differ diff --git a/v0.14.2.tar.gz b/v0.14.2.tar.gz new file mode 100644 index 0000000..d7c237e Binary files /dev/null and b/v0.14.2.tar.gz differ