Compare commits

...

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

10
.gitignore vendored

@ -1 +1,9 @@
SOURCES/pry-0.14.1-spec.tar.gz /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

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

Binary file not shown.

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

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