Compare commits

...

No commits in common. 'epel9' and 'i9' have entirely different histories.
epel9 ... i9

10
.gitignore vendored

@ -1,9 +1 @@
/pry-0.9.10.gem
/pry-0.9.12.gem
/pry-0.9.12.6.gem
/pry-0.10.1.gem
/pry-0.10.1-tests.tar.xz
/pry-0.10.4-tests.tar.xz
/pry-0.10.4.gem
/pry-0.13.1-spec.tar.gz
/pry-0.13.1.gem
SOURCES/pry-0.14.1-spec.tar.gz

@ -0,0 +1 @@
ab64c2016a2717bee3ea9397e877dffb22421ef3 SOURCES/pry-0.14.1-spec.tar.gz

Binary file not shown.

@ -1,36 +1,29 @@
%global gem_name pry
# Enable bootstrap until dependencies are in epel9
%global bootstrap 0
%global slop_version 3.4.0
Name: rubygem-%{gem_name}
Version: 0.13.1
Release: 7%{?dist}.1
Version: 0.14.1
Release: 3%{?dist}
Summary: An IRB alternative and runtime developer console
License: MIT
URL: http://pryrepl.org
URL: http://pry.github.io
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# git clone https://github.com/pry/pry.git && cd pry
# git archive -v -o pry-0.13.1-spec.tar.gz v0.13.1 spec/
# git archive -v -o pry-0.14.1-spec.tar.gz v0.14.1 spec/
Source1: %{gem_name}-%{version}-spec.tar.gz
# Fix spec which were testing invalid syntax which become valid in Ruby 3.0.
# https://github.com/pry/pry/pull/2170
Patch0: pry-0.13.1-Fix-broken-spec.patch
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby
# These are for tests, disable until dependencies are in epel9
%if %{bootstrap}
BuildRequires: rubygem(bundler)
BuildRequires: rubygem(coderay) => 1.1.0
BuildRequires: rubygem(irb)
BuildRequires: rubygem(method_source) => 0.8.1
BuildRequires: rubygem(rspec)
%endif
# editor specs fail if no editor is available (soft requirement)
BuildRequires: vi
BuildRequires: rubygem(irb)
# https://github.com/pry/pry/pull/1498
Provides: bundled(rubygem-slop) = 3.4.0
Provides: bundled(rubygem-slop) = %{slop_version}
BuildArch: noarch
%description
@ -50,11 +43,6 @@ Documentation for %{name}.
%prep
%setup -q -n %{gem_name}-%{version} -b 1
pushd %{_builddir}
%patch0 -p1
popd
%build
# Create the gem as gem install only works on a gem file
gem build ../%{gem_name}-%{version}.gemspec
@ -76,9 +64,9 @@ cp -a .%{_bindir}/* \
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
%check
# Disable tests until dependencies are in epel9
%if %{bootstrap}
pushd .%{gem_instdir}
[ `ruby -Ilib -rpry/slop -e "puts Pry::Slop::VERSION"` == '%{slop_version}' ]
ln -s %{_builddir}/spec spec
# Rakefile is used by editor test.
@ -88,10 +76,8 @@ touch Rakefile
# https://github.com/pry/pry/blob/9d9ae4a0b0bd487bb41170c834b3fa417e161f23/spec/cli_spec.rb#L219
sed -i '/pry\/foo/ s/pry/pry-%{version}/' spec/cli_spec.rb
# The bundler is required just to make /spec/integration/bundler_spec.rb pass.
RUBYOPT=-rbundler rspec -rspec_helper spec
rspec -rspec_helper spec
popd
%endif
%files
%dir %{gem_instdir}
@ -108,8 +94,21 @@ popd
%doc %{gem_instdir}/README.md
%changelog
* Mon Jun 06 2022 Troy Dawson <tdawson@redhat.com> - 0.13.1-7.1
- Disable test dependencies and tests, until they are in epel9
* Thu Sep 21 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.14.1-3
- Rebuilt for MSVSphere 9.2
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Wed Dec 7 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.14.1-2
- Explicitly add BR: rubygem(irb) for %%check
* Thu Oct 06 2022 Vít Ondruch <vondruch@redhat.com> - 0.14.1-1
- Update to Pry 0.14.1.
Resolves: rhbz#1926203
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

@ -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

@ -1,2 +0,0 @@
SHA512 (pry-0.13.1-spec.tar.gz) = f2377133d766ac0a8c3a09fd17ee0e45ebde33a160706b17b13f8b511c279538f0eb50262796d96b2237940fa1af6087e0ae6541c81bd42afb935c9f762d978f
SHA512 (pry-0.13.1.gem) = cc7aaf88126fbb514df1cef796c9b5b1d3b8d4f965d64348780aaa20de4670fb254238c2ee191063256e5d5922523b8b366e7b67152c296fba107f1bf91ee221
Loading…
Cancel
Save