Compare commits
55 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
474d1f7c63 | ||
|
|
7effbf81cb | ||
|
|
e8c2a97d1a | ||
|
|
3f7c63406e | ||
|
|
87bc1190a3 | ||
|
|
45cdfd6fec | ||
|
|
29635ced96 | ||
|
|
cdd2413fa0 | ||
|
|
91ba31bd1c | ||
|
|
ca81d02368 | ||
|
|
0e1e9960be | ||
|
|
5453556202 | ||
|
|
229ca4c56a | ||
|
|
7cd8e81307 | ||
|
|
c9fcb4c160 | ||
|
|
27cebec369 | ||
|
|
01442efdd9 | ||
|
|
81ab95aa61 | ||
|
|
8e8ad95bf1 | ||
|
|
eeb80ca9f0 | ||
|
|
9bdc5922e0 | ||
|
|
be8457ed9a | ||
|
|
49cabb4d95 | ||
|
|
f3fc1e2f77 | ||
|
|
c90c3940f3 | ||
|
|
91ba64084b | ||
|
|
0e470ac484 | ||
|
|
81232177c0 | ||
|
|
e7531e5398 | ||
|
|
3d3ffc6643 | ||
|
|
2944f7f50a | ||
|
|
667932f240 | ||
|
|
35c7273f1a | ||
|
|
c0be2aa6ea | ||
|
|
b29f846a30 | ||
|
|
b77cdbbdac | ||
|
|
dac52cb61d | ||
|
|
15e3de8d5c | ||
|
|
490e7cfdd5 | ||
|
|
b1e371f302 | ||
|
|
fb330069ff | ||
|
|
4bceaf8eda | ||
|
|
5b507733ac | ||
|
|
eb160dab12 | ||
|
|
b7fcc5214d | ||
|
|
190fb4d37d | ||
|
|
bf7eedcab7 | ||
|
|
f9d9b5b427 | ||
|
|
131231b2e0 | ||
|
|
d52086caa5 | ||
|
|
ae59d04825 | ||
|
|
b4d156aba5 | ||
|
|
8869c09828 | ||
|
|
473a7809ec | ||
|
|
9bdeae148e |
6 changed files with 319 additions and 131 deletions
63
.gitignore
vendored
63
.gitignore
vendored
|
|
@ -1,61 +1,2 @@
|
||||||
/rspec-core-2.5.1.gem
|
/rspec-core-*.gem
|
||||||
/rspec-core-2.6.0.rc4.gem
|
/rubygem-rspec-core-*-full.tar.gz
|
||||||
/rspec-core-2.6.0.rc6.gem
|
|
||||||
/rspec-core-2.6.0.gem
|
|
||||||
/rspec-core-2.6.2.gem
|
|
||||||
/rspec-core-2.6.3.gem
|
|
||||||
/rspec-core-2.6.4.gem
|
|
||||||
/rspec-core-2.8.0.gem
|
|
||||||
/rspec-core-2.11.1.gem
|
|
||||||
/rspec-core-2.12.2.gem
|
|
||||||
/rspec-core-2.13.1.gem
|
|
||||||
/rspec-core-2.14.5.gem
|
|
||||||
/rspec-core-2.14.6.gem
|
|
||||||
/rspec-core-2.14.7.gem
|
|
||||||
/rspec-core-2.14.8.gem
|
|
||||||
/rspec-core-3.1.7.gem
|
|
||||||
/rubygem-rspec-core-3.1.7-full.tar.gz
|
|
||||||
/rspec-core-3.2.0.gem
|
|
||||||
/rubygem-rspec-core-3.2.0-full.tar.gz
|
|
||||||
/rspec-core-3.2.1.gem
|
|
||||||
/rubygem-rspec-core-3.2.1-full.tar.gz
|
|
||||||
/rspec-core-3.2.2.gem
|
|
||||||
/rubygem-rspec-core-3.2.2-full.tar.gz
|
|
||||||
/rspec-core-3.2.3.gem
|
|
||||||
/rubygem-rspec-core-3.2.3-full.tar.gz
|
|
||||||
/rspec-core-3.3.2.gem
|
|
||||||
/rubygem-rspec-core-3.3.2-full.tar.gz
|
|
||||||
/rspec-core-3.4.1.gem
|
|
||||||
/rubygem-rspec-core-3.4.1-full.tar.gz
|
|
||||||
/rspec-core-3.4.2.gem
|
|
||||||
/rubygem-rspec-core-3.4.2-full.tar.gz
|
|
||||||
/rspec-core-3.4.3.gem
|
|
||||||
/rubygem-rspec-core-3.4.3-full.tar.gz
|
|
||||||
/rspec-core-3.4.4.gem
|
|
||||||
/rubygem-rspec-core-3.4.4-full.tar.gz
|
|
||||||
/rspec-core-3.5.1.gem
|
|
||||||
/rubygem-rspec-core-3.5.1-full.tar.gz
|
|
||||||
/rspec-core-3.5.2.gem
|
|
||||||
/rubygem-rspec-core-3.5.2-full.tar.gz
|
|
||||||
/rspec-core-3.5.3.gem
|
|
||||||
/rubygem-rspec-core-3.5.3-full.tar.gz
|
|
||||||
/rspec-core-3.5.4.gem
|
|
||||||
/rubygem-rspec-core-3.5.4-full.tar.gz
|
|
||||||
/rspec-core-3.6.0.gem
|
|
||||||
/rubygem-rspec-core-3.6.0-full.tar.gz
|
|
||||||
/rspec-core-3.7.0.gem
|
|
||||||
/rubygem-rspec-core-3.7.0-full.tar.gz
|
|
||||||
/rspec-core-3.7.1.gem
|
|
||||||
/rubygem-rspec-core-3.7.1-full.tar.gz
|
|
||||||
/rspec-core-3.8.0.gem
|
|
||||||
/rubygem-rspec-core-3.8.0-full.tar.gz
|
|
||||||
/rspec-core-3.8.1.gem
|
|
||||||
/rubygem-rspec-core-3.8.1-full.tar.gz
|
|
||||||
/rspec-core-3.8.2.gem
|
|
||||||
/rubygem-rspec-core-3.8.2-full.tar.gz
|
|
||||||
/rspec-core-3.9.0.gem
|
|
||||||
/rubygem-rspec-core-3.9.0-full.tar.gz
|
|
||||||
/rspec-core-3.9.1.gem
|
|
||||||
/rubygem-rspec-core-3.9.1-full.tar.gz
|
|
||||||
/rspec-core-3.9.2.gem
|
|
||||||
/rubygem-rspec-core-3.9.2-full.tar.gz
|
|
||||||
|
|
|
||||||
51
rspec-core-pr282-ruby4_0-source_location.patch
Normal file
51
rspec-core-pr282-ruby4_0-source_location.patch
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
From 1c20fa80772ca7a1ed0512056ce7cd6a94f8e68d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jon Rowe <hello@jonrowe.co.uk>
|
||||||
|
Date: Fri, 28 Nov 2025 10:59:10 +0000
|
||||||
|
Subject: [PATCH] Cope with the changes to block source_location in Ruby 4
|
||||||
|
|
||||||
|
---
|
||||||
|
rspec-core/lib/rspec/core/hooks.rb | 2 +-
|
||||||
|
rspec-core/lib/rspec/core/metadata.rb | 2 +-
|
||||||
|
rspec-core/lib/rspec/core/shared_example_group.rb | 2 +-
|
||||||
|
.../lib/rspec/expectations/block_snippet_extractor.rb | 2 +-
|
||||||
|
4 files changed, 4 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/rspec-core/lib/rspec/core/hooks.rb b/rspec-core/lib/rspec/core/hooks.rb
|
||||||
|
index f97962ce9..77eecc776 100644
|
||||||
|
--- a/rspec-core/lib/rspec/core/hooks.rb
|
||||||
|
+++ b/rspec-core/lib/rspec/core/hooks.rb
|
||||||
|
@@ -395,7 +395,7 @@ def execute_with(example, procsy)
|
||||||
|
|
||||||
|
if Proc.method_defined?(:source_location)
|
||||||
|
def hook_description
|
||||||
|
- "around hook at #{Metadata.relative_path(block.source_location.join(':'))}"
|
||||||
|
+ "around hook at #{Metadata.relative_path(block.source_location.take(2).join(':'))}"
|
||||||
|
end
|
||||||
|
else # for 1.8.7
|
||||||
|
# :nocov:
|
||||||
|
diff --git a/rspec-core/lib/rspec/core/metadata.rb b/rspec-core/lib/rspec/core/metadata.rb
|
||||||
|
index e887cb1c5..ed47bc07b 100644
|
||||||
|
--- a/rspec-core/lib/rspec/core/metadata.rb
|
||||||
|
+++ b/rspec-core/lib/rspec/core/metadata.rb
|
||||||
|
@@ -146,7 +146,7 @@ def populate_location_attributes
|
||||||
|
file_path, line_number = if backtrace
|
||||||
|
file_path_and_line_number_from(backtrace)
|
||||||
|
elsif block.respond_to?(:source_location)
|
||||||
|
- block.source_location
|
||||||
|
+ block.source_location.take(2)
|
||||||
|
else
|
||||||
|
file_path_and_line_number_from(caller)
|
||||||
|
end
|
||||||
|
diff --git a/rspec-core/lib/rspec/core/shared_example_group.rb b/rspec-core/lib/rspec/core/shared_example_group.rb
|
||||||
|
index b4a5dc317..1f2b9d623 100644
|
||||||
|
--- a/rspec-core/lib/rspec/core/shared_example_group.rb
|
||||||
|
+++ b/rspec-core/lib/rspec/core/shared_example_group.rb
|
||||||
|
@@ -243,7 +243,7 @@ def warn_if_key_taken(context, key, new_block)
|
||||||
|
|
||||||
|
if RUBY_VERSION.to_f >= 1.9
|
||||||
|
def formatted_location(block)
|
||||||
|
- block.source_location.join(":")
|
||||||
|
+ block.source_location.take(2).join(":")
|
||||||
|
end
|
||||||
|
else # 1.8.7
|
||||||
|
# :nocov:
|
||||||
|
|
@ -14,10 +14,9 @@ CURRDIR=$(pwd)
|
||||||
TMPDIRPATH=$(mktemp -d /var/tmp/rspec-tar-XXXXXX)
|
TMPDIRPATH=$(mktemp -d /var/tmp/rspec-tar-XXXXXX)
|
||||||
pushd $TMPDIRPATH
|
pushd $TMPDIRPATH
|
||||||
|
|
||||||
git clone https://github.com/rspec/$1.git
|
git clone https://github.com/rspec/rspec.git
|
||||||
pushd $1
|
pushd rspec
|
||||||
git reset --hard v$2
|
git reset --hard $1-v$2
|
||||||
popd
|
|
||||||
|
|
||||||
ln -sf $1 $1-$2
|
ln -sf $1 $1-$2
|
||||||
tar czf ${CURRDIR}/rubygem-$1-$2-full.tar.gz $1-$2/./
|
tar czf ${CURRDIR}/rubygem-$1-$2-full.tar.gz $1-$2/./
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
From 7550f7b024323c15ed21d13e930f59a64455e5d1 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
|
||||||
|
Date: Thu, 18 Mar 2021 15:45:48 +0100
|
||||||
|
Subject: [PATCH] Filter content of /usr/share/ruby
|
||||||
|
|
||||||
|
Some Linux distributions, such as Fedora, are using this location to
|
||||||
|
store Ruby StdLib. Therefore, it would be nice to filter this location
|
||||||
|
similarly to /lib\d*/ruby/
|
||||||
|
---
|
||||||
|
lib/rspec/core/backtrace_formatter.rb | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/lib/rspec/core/backtrace_formatter.rb b/lib/rspec/core/backtrace_formatter.rb
|
||||||
|
index e0bee52a..27008e2c 100644
|
||||||
|
--- a/lib/rspec/core/backtrace_formatter.rb
|
||||||
|
+++ b/lib/rspec/core/backtrace_formatter.rb
|
||||||
|
@@ -8,7 +8,7 @@ module RSpec
|
||||||
|
def initialize
|
||||||
|
@full_backtrace = false
|
||||||
|
|
||||||
|
- patterns = %w[ /lib\d*/ruby/ bin/ exe/rspec /lib/bundler/ /exe/bundle: ]
|
||||||
|
+ patterns = %w[ /lib\d*/ruby/ /share/ruby/ bin/ exe/rspec /lib/bundler/ /exe/bundle: ]
|
||||||
|
patterns << "org/jruby/" if RUBY_PLATFORM == 'java'
|
||||||
|
patterns.map! { |s| Regexp.new(s.gsub("/", File::SEPARATOR)) }
|
||||||
|
|
||||||
|
--
|
||||||
|
2.30.0
|
||||||
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
%global majorver 3.9.2
|
%global majorver 3.13.6
|
||||||
#%%global preminorver .rc6
|
#%%global preminorver .rc6
|
||||||
%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||')
|
%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||')
|
||||||
%global fullver %{majorver}%{?preminorver}
|
%global fullver %{majorver}%{?preminorver}
|
||||||
|
|
||||||
%global fedorarel 2
|
%global baserelease 2
|
||||||
|
|
||||||
%global gem_name rspec-core
|
%global gem_name rspec-core
|
||||||
|
|
||||||
|
|
@ -11,49 +11,67 @@
|
||||||
# runtime part of rspec-mocks does not depend on rspec-core
|
# runtime part of rspec-mocks does not depend on rspec-core
|
||||||
# Disable test for now due to cucumber v.s. gherkin dependency issue
|
# Disable test for now due to cucumber v.s. gherkin dependency issue
|
||||||
# pulled by aruba
|
# pulled by aruba
|
||||||
%global need_bootstrap_set 0
|
%bcond_with bootstrap
|
||||||
|
|
||||||
|
# Disable Aruba support in RHEL due to excesive dependency chain. This also
|
||||||
|
# disables Cucumber integration test suite, which depends on Aruba as well.
|
||||||
|
%if ! 0%{?rhel}
|
||||||
|
%bcond_without aruba
|
||||||
|
%endif
|
||||||
|
|
||||||
%undefine __brp_mangle_shebangs
|
%undefine __brp_mangle_shebangs
|
||||||
|
|
||||||
Summary: Rspec-2 runner and formatters
|
Summary: RSpec runner and formatters
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: %{majorver}
|
Version: %{majorver}
|
||||||
Release: %{?preminorver:0.}%{fedorarel}%{?preminorver:%{rpmminorver}}%{?dist}
|
Release: %{?preminorver:0.}%{baserelease}%{?preminorver:%{rpmminorver}}%{?dist}
|
||||||
|
|
||||||
|
# SPDX confirmed
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://github.com/rspec/rspec-mocks
|
URL: https://rspec.info
|
||||||
Source0: http://rubygems.org/gems/%{gem_name}-%{fullver}.gem
|
Source0: http://rubygems.org/gems/%{gem_name}-%{fullver}.gem
|
||||||
# %%{SOURCE2} %%{name} %%{version}
|
# %%{SOURCE2} %%{name} %%{version}
|
||||||
Source1: rubygem-%{gem_name}-%{version}-full.tar.gz
|
Source1: rubygem-%{gem_name}-%{version}-full.tar.gz
|
||||||
Source2: rspec-related-create-full-tarball.sh
|
Source2: rspec-related-create-full-tarball.sh
|
||||||
|
# Adjust backtrace filter for Fedora placement of StdLib.
|
||||||
|
# https://github.com/rspec/rspec-core/pull/2881
|
||||||
|
Patch0: rubygem-rspec-core-3.10.1-Filter-content-of-usr-share-ruby.patch
|
||||||
|
# https://github.com/rspec/rspec/pull/282/commits/1c20fa80772ca7a1ed0512056ce7cd6a94f8e68d
|
||||||
|
# Support ruby4_0 source_location behavior change
|
||||||
|
Patch1: rspec-core-pr282-ruby4_0-source_location.patch
|
||||||
|
|
||||||
#BuildRequires: ruby(release)
|
#BuildRequires: ruby(release)
|
||||||
BuildRequires: rubygems-devel
|
BuildRequires: rubygems-devel
|
||||||
%if 0%{?need_bootstrap_set} < 1
|
%if %{without bootstrap}
|
||||||
BuildRequires: rubygem(minitest)
|
BuildRequires: rubygem(minitest)
|
||||||
BuildRequires: rubygem(nokogiri)
|
|
||||||
BuildRequires: rubygem(rake)
|
BuildRequires: rubygem(rake)
|
||||||
BuildRequires: rubygem(rspec)
|
BuildRequires: rubygem(rspec)
|
||||||
|
BuildRequires: rubygem(test-unit)
|
||||||
|
BuildRequires: rubygem(coderay)
|
||||||
|
BuildRequires: rubygem(drb)
|
||||||
|
BuildRequires: rubygem(thread_order)
|
||||||
|
BuildRequires: git
|
||||||
|
|
||||||
|
%if %{with aruba}
|
||||||
BuildRequires: rubygem(aruba)
|
BuildRequires: rubygem(aruba)
|
||||||
# Newly
|
|
||||||
BuildRequires: rubygem(flexmock)
|
BuildRequires: rubygem(flexmock)
|
||||||
BuildRequires: rubygem(mocha)
|
BuildRequires: rubygem(mocha)
|
||||||
BuildRequires: rubygem(rr)
|
BuildRequires: rubygem(rr)
|
||||||
BuildRequires: rubygem(coderay)
|
|
||||||
BuildRequires: rubygem(thread_order)
|
|
||||||
BuildRequires: git
|
|
||||||
# New test
|
|
||||||
BuildRequires: rubygem(cucumber)
|
BuildRequires: rubygem(cucumber)
|
||||||
BuildRequires: rubygem(test-unit)
|
%endif
|
||||||
|
|
||||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||||
BuildRequires: glibc-langpack-en
|
BuildRequires: glibc-langpack-en
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
# Make the following installed by default
|
# Make the following dependency optionally installed
|
||||||
# lib/rspec/core/rake_task
|
# lib/rspec/core/rake_task
|
||||||
|
%if 0%{?fedora} >= 36
|
||||||
|
Recommends: rubygem(rake)
|
||||||
|
%else
|
||||||
Requires: rubygem(rake)
|
Requires: rubygem(rake)
|
||||||
|
%endif
|
||||||
# Optional
|
# Optional
|
||||||
#Requires: rubygem(ZenTest)
|
#Requires: rubygem(ZenTest)
|
||||||
#Requires: rubygem(flexmock)
|
#Requires: rubygem(flexmock)
|
||||||
|
|
@ -62,7 +80,7 @@ Requires: rubygem(rake)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Behaviour Driven Development for Ruby.
|
Behaviour Driven Development for Ruby. RSpec runner and example groups.
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation for %{name}
|
Summary: Documentation for %{name}
|
||||||
|
|
@ -74,6 +92,8 @@ This package contains documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -T -n %{gem_name}-%{version} -b 1
|
%setup -q -T -n %{gem_name}-%{version} -b 1
|
||||||
|
%patch -P0 -p1
|
||||||
|
%patch -P1 -p2
|
||||||
gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
@ -87,67 +107,92 @@ cp -a .%{_prefix}/* %{buildroot}%{_prefix}/
|
||||||
# cleanups
|
# cleanups
|
||||||
rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts}
|
rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts}
|
||||||
|
|
||||||
%if 0%{?need_bootstrap_set} < 1
|
|
||||||
%check
|
%check
|
||||||
|
%if %{with bootstrap}
|
||||||
|
# Not do actual check, exiting.
|
||||||
|
exit 0
|
||||||
|
%endif
|
||||||
|
|
||||||
LANG=C.UTF-8
|
LANG=C.UTF-8
|
||||||
# Test failure needs investigation...
|
|
||||||
# perhaps due to some incompatibility between libxml2 2.9.x
|
|
||||||
# and rubygem-nokogiri
|
|
||||||
|
|
||||||
FAILFILE=()
|
%if %{without aruba}
|
||||||
FAILTEST=()
|
# Avoid dependency on Aruba. The files needs to be present, since they are
|
||||||
FAILFILE+=("spec/rspec/core/formatters/progress_formatter_spec.rb")
|
# listed by `git ls-files` from 'library wide checks' shared example.
|
||||||
FAILTEST+=("produces the expected full output")
|
truncate -s 0 spec/support/aruba_support.rb
|
||||||
FAILFILE+=("spec/rspec/core/formatters/documentation_formatter_spec.rb")
|
find spec/integration -exec truncate -s 0 {} \;
|
||||||
FAILTEST+=("produces the expected full output")
|
%endif
|
||||||
#FAILFILE+=("spec/rspec/core/formatters/syntax_highlighter_spec.rb")
|
|
||||||
#FAILTEST+=("when CodeRay is available")
|
|
||||||
# New from 3.5.3
|
|
||||||
FAILFILE+=("spec/integration/suite_hooks_errors_spec.rb")
|
|
||||||
FAILTEST+=("nicely formats errors")
|
|
||||||
# New from 3.6.0
|
|
||||||
FAILFILE+=("spec/integration/spec_file_load_errors_spec.rb")
|
|
||||||
FAILTEST+=("nicely handles load-time errors")
|
|
||||||
# NET??
|
|
||||||
FAILFILE+=("spec/rspec/core/runner_spec.rb")
|
|
||||||
FAILTEST+=("if drb server is started with 127.0.0.1")
|
|
||||||
FAILFILE+=("spec/rspec/core/runner_spec.rb")
|
|
||||||
FAILTEST+=("if drb server is started with localhost")
|
|
||||||
# New from 3.9.0
|
|
||||||
FAILFILE+=("spec/integration/spec_file_load_errors_spec.rb")
|
|
||||||
FAILTEST+=("prints a single error when it happens")
|
|
||||||
|
|
||||||
for ((i = 0; i < ${#FAILFILE[@]}; i++)) {
|
# Adjust the backtrace filters to our directory layout.
|
||||||
sed -i \
|
sed -i '/backtrace_exclusion_patterns/ s/rspec-core/rspec-core-%{version}/' \
|
||||||
-e "\@${FAILTEST[$i]}@s|do$|, :broken => true do|" \
|
spec/integration/{suite_hooks_errors,spec_file_load_errors}_spec.rb
|
||||||
${FAILFILE[$i]}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
# ruby3.1: output format change, disabling for now
|
||||||
|
sed -i spec/integration/spec_file_load_errors_spec.rb \
|
||||||
|
-e '\@nicely handles load-time errors in user spec files@s| it | xit |'
|
||||||
|
|
||||||
# Well, when HOME variable is not set and tty is not a real one
|
# ruby3.2 + compile with YJIT + LTO seems to make rspec-core GC test fail.
|
||||||
# but pseudo-tty, with current ruby implementation $ env -i ruby -e 'p Dir.home'
|
# disabling this, per ruby upsteram advice:
|
||||||
# causes:
|
# https://bugs.ruby-lang.org/issues/19254
|
||||||
# `home': couldn't find login name -- expanding `~' (ArgumentError)
|
sed -i spec/rspec/core/example_spec.rb \
|
||||||
# - and this causes some test errors on rspec-core.
|
-e '\@defined.*RUBY_ENGINE.*truffleruby@s|^\(.*\)$|\1 \&\& false|'
|
||||||
# fixing this error without modifying rspec-core "code" is very hard,
|
|
||||||
# once modifying source itself.
|
|
||||||
sed -i.warn lib/rspec/core/configuration_options.rb \
|
|
||||||
-e '\@because the HOME environment variable is not set@s|RSpec\.warning|#RSpec.warning|'
|
|
||||||
|
|
||||||
ruby -rrubygems -Ilib/ -S exe/rspec || \
|
# RSpec uses only one thread local variable: disable for now
|
||||||
ruby -rrubygems -Ilib/ -S exe/rspec --tag ~broken
|
sed -i spec/rspec/core_spec.rb \
|
||||||
|
-e '\@only one thread local variable@s| it | xit |'
|
||||||
|
|
||||||
|
# FIXME seed 33413 sees test failure
|
||||||
|
ruby -Ilib -S exe/rspec --seed 1 #33413
|
||||||
|
|
||||||
|
%if %{without aruba}
|
||||||
|
# The following lines are for cucumber tests, so exiting.
|
||||||
|
exit 0
|
||||||
|
%endif
|
||||||
|
|
||||||
# Mark failing test as broken
|
# Mark failing test as broken
|
||||||
sed -i features/core_standalone.feature \
|
|
||||||
-e 's|@unsupported-on-rbx|@unsupported-on-rbx @broken|'
|
|
||||||
sed -i features/command_line/init.feature \
|
sed -i features/command_line/init.feature \
|
||||||
-e 's|^\([ \t]*\)\(Scenario: Accept and use the recommended settings\)|\1@broken\n\1\2|'
|
-e 's|^\([ \t]*\)\(Scenario: Accept and use the recommended settings\)|\1@broken\n\1\2|'
|
||||||
|
|
||||||
env RUBYOPT="-I$(pwd)/lib -rrubygems" ruby -S cucumber -v features/ || \
|
%if 0%{?fedora} >= 34 || 0%{?rhel} >= 9
|
||||||
env RUBYOPT="-I$(pwd)/lib -rrubygems" ruby -S cucumber -v features/ --tag "not @broken"
|
for f in \
|
||||||
|
`# disabling tests failing with rr 1.2.1` \
|
||||||
|
`# https://github.com/rspec/rspec-core/issues/2882` \
|
||||||
|
features/mock_framework_integration/use_rr.feature \
|
||||||
|
%{nil}
|
||||||
|
do
|
||||||
|
mv $f ${f}.drop
|
||||||
|
done
|
||||||
|
%endif
|
||||||
|
|
||||||
mv lib/rspec/core/configuration_options.rb{.warn,}
|
# cucumber 7.0.0 does not support ~@
|
||||||
|
sed -i cucumber.yml -e 's|~@wip|"not @wip"|'
|
||||||
|
sed -i features/support/require_expect_syntax_in_aruba_specs.rb -e 's|~@|not @|g'
|
||||||
|
# Perhaps with cucumber 7.0.0 change? (along with diff-lcs updated to 1.5)
|
||||||
|
sed -i features/support/diff_lcs_versions.rb -e 's|scenario.title|scenario.name|'
|
||||||
|
|
||||||
|
# Setup just right amount of paths to make the tests suite run.
|
||||||
|
export RUBYOPT="-I$(pwd)/lib:$(ruby -e 'puts %w[rspec/support minitest test/unit].map {|r| Gem::Specification.find_by_path(r).full_require_paths}.join(?:)')"
|
||||||
|
export CUCUMBER_PUBLISH_QUIET=true
|
||||||
|
cucumber -v -f progress features/ || \
|
||||||
|
cucumber -v -f progress features/ \
|
||||||
|
--tag "not @broken" \
|
||||||
|
`# Explicitly skip 'skip-when-diff-lcs-1.3' and '@ruby-2-7' test cases. While` \
|
||||||
|
`# the conditions are correctly detected, the 'warning' called instead their` \
|
||||||
|
`# execution is troublesome, possibly due to upstream using old Cucumber?` \
|
||||||
|
--tag "not @skip-when-diff-lcs-1.3" \
|
||||||
|
%if 0%{?fedora} >= 36
|
||||||
|
`# Cucumber 7 upgrades diff-lcs to 1.5` \
|
||||||
|
--tag "not @skip-when-diff-lcs-1.4" \
|
||||||
|
%endif
|
||||||
|
--tag "not @ruby-2-7" \
|
||||||
|
%{nil}
|
||||||
|
|
||||||
|
%if 0%{?fedora} >= 34 || 0%{?rhel} >= 9
|
||||||
|
for f in \
|
||||||
|
features/mock_framework_integration/use_rr.feature \
|
||||||
|
%{nil}
|
||||||
|
do
|
||||||
|
mv ${f}.drop ${f}
|
||||||
|
done
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
|
@ -168,6 +213,130 @@ mv lib/rspec/core/configuration_options.rb{.warn,}
|
||||||
%{gem_docdir}
|
%{gem_docdir}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Dec 02 2025 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.13.6-2
|
||||||
|
- Backport upstream patch to support ruby4_0 source_location behavior change
|
||||||
|
|
||||||
|
* Mon Oct 20 2025 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.13.6-1
|
||||||
|
- 3.13.6
|
||||||
|
|
||||||
|
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.13.5-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jun 27 2025 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.13.5-1
|
||||||
|
- 3.13.5
|
||||||
|
|
||||||
|
* Thu May 29 2025 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.13.4-1
|
||||||
|
- 3.13.4
|
||||||
|
|
||||||
|
* Tue Feb 11 2025 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.13.3-1
|
||||||
|
- 3.13.3
|
||||||
|
|
||||||
|
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.13.2-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Nov 17 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.13.2-4
|
||||||
|
- Workaround syntax_suggest 2.0.2 change
|
||||||
|
|
||||||
|
* Fri Nov 15 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.13.2-3
|
||||||
|
- Fix for ruby34 string behavior to be chilled
|
||||||
|
|
||||||
|
* Wed Nov 06 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.13.2-2
|
||||||
|
- add BR: rubygem(drb) for ruby34
|
||||||
|
|
||||||
|
* Mon Oct 21 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.13.2-1
|
||||||
|
- 3.13.2
|
||||||
|
|
||||||
|
* Thu Sep 05 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.13.1-1
|
||||||
|
- 3.13.1
|
||||||
|
|
||||||
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.13.0-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Feb 09 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.13.0-1
|
||||||
|
- 3.13.0
|
||||||
|
|
||||||
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.2-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sat Jul 22 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.12.2-3
|
||||||
|
- Fix one failing test related to thread local variable
|
||||||
|
|
||||||
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.2-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Apr 19 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.12.2-1
|
||||||
|
- 3.12.2
|
||||||
|
|
||||||
|
* Fri Mar 03 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 3.12.1-2
|
||||||
|
- Disable unwanted dependencies in RHEL builds
|
||||||
|
|
||||||
|
* Fri Feb 10 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.12.1-1
|
||||||
|
- 3.12.1
|
||||||
|
|
||||||
|
* Thu Jan 19 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.12.0-2
|
||||||
|
- Disable GC related test, with the advice from ruby upstream
|
||||||
|
|
||||||
|
* Thu Oct 27 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.12.0-1
|
||||||
|
- 3.12.0
|
||||||
|
|
||||||
|
* Thu Sep 29 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.11.0-3
|
||||||
|
- Backport upstream fix to eliminate Fixnum usage removed on Ruby 3.2
|
||||||
|
|
||||||
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.11.0-2.1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jun 6 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.11.0-2
|
||||||
|
- Specify seed for rspec to avoid random failure for now
|
||||||
|
|
||||||
|
* Thu Feb 10 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.11.0-1
|
||||||
|
- 3.11.0
|
||||||
|
|
||||||
|
* Fri Jan 28 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.10.2-2
|
||||||
|
- Disable test failing on ruby31 for now
|
||||||
|
|
||||||
|
* Fri Jan 28 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.10.2-1
|
||||||
|
- 3.10.2
|
||||||
|
|
||||||
|
* Fri Jan 28 2022 Vít Ondruch <vondruch@redhat.com>
|
||||||
|
- Use weak dependency for Rake.
|
||||||
|
|
||||||
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.1-6.1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 14 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.10.1-6
|
||||||
|
- Add some workaround for aruba 2 / cucumber 7 / diff-lcs 1.5
|
||||||
|
|
||||||
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.1-5.1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Mar 18 2021 Vít Ondruch <vondruch@redhat.com> - 3.10.1-5
|
||||||
|
- Make test suite green.
|
||||||
|
|
||||||
|
* Sun Feb 28 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.10.1-4
|
||||||
|
- Add conditional for eln
|
||||||
|
|
||||||
|
* Wed Feb 17 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.10.1-3
|
||||||
|
- rr 1.2.1: Disable failing cucumber suite for now
|
||||||
|
|
||||||
|
* Tue Jan 26 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.10.1-2
|
||||||
|
- Ruby 3.0: Disable failing cucumber suite for now
|
||||||
|
|
||||||
|
* Tue Dec 29 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.10.1-1
|
||||||
|
- 3.10.1
|
||||||
|
|
||||||
|
* Fri Dec 11 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.10.0-1
|
||||||
|
- Enable tests again
|
||||||
|
|
||||||
|
* Fri Dec 11 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.10.0-0.1
|
||||||
|
- 3.10.0
|
||||||
|
- Once disable test for bootstrap
|
||||||
|
|
||||||
|
* Wed Oct 14 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.9.3-1
|
||||||
|
- 3.9.3
|
||||||
|
|
||||||
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.2-2.1
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
* Sun May 3 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.9.2-2
|
* Sun May 3 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.9.2-2
|
||||||
- Enable cucumber test
|
- Enable cucumber test
|
||||||
|
|
||||||
|
|
|
||||||
4
sources
4
sources
|
|
@ -1,2 +1,2 @@
|
||||||
SHA512 (rspec-core-3.9.2.gem) = ee16ce312b47f2537479ef6a2c77d74c982108f029faa572125c95030e75e80934c00c07e918b63c075bdf78f9e912569e6a13ad78be217682fa7d06a2efc75f
|
SHA512 (rspec-core-3.13.6.gem) = 8456a4505bd990a968630da475fd5222a15e0641db26d0efbf63e5d1d8edea702c7982297c4fd7e647167b7204127e4dd6d49480a9556faa65f06e0ce8ad3513
|
||||||
SHA512 (rubygem-rspec-core-3.9.2-full.tar.gz) = 8ce6c1c6627f46e272f8926bea48925471fbfc97a3310d241b8b7d71870b7c162da7ebd322540bd4c99c7eb433a1c4de3b859fd31edc434c8fa7b04a11f5e378
|
SHA512 (rubygem-rspec-core-3.13.6-full.tar.gz) = 2cb5c5ffe9c76a58385ccac68fbbc696e6c542cf68007ab81b29e5ad6ecc97ec05cd34eb1006b2be1d70c826ab520b32e37182bbd14f662260996a1e5aa1bf06
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue