[gentoo-commits] repo/gentoo:master commit in: dev-ruby/rspec-expectations/files/

2019-11-10 Thread Aaron Bauman
commit: c9f62df10aa3d06e06a81b01d5ea2ac87519cce7
Author: Michael Mair-Keimberger  gmail  com>
AuthorDate: Sat Nov  9 18:37:11 2019 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Sun Nov 10 03:59:33 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9f62df1

dev-ruby/rspec-expectations: remove unused patch(es)

Signed-off-by: Michael Mair-Keimberger  gmail.com>
Signed-off-by: Aaron Bauman  gentoo.org>

 .../files/rspec-expectations-3.7.0-ruby25.patch| 33 --
 1 file changed, 33 deletions(-)

diff --git 
a/dev-ruby/rspec-expectations/files/rspec-expectations-3.7.0-ruby25.patch 
b/dev-ruby/rspec-expectations/files/rspec-expectations-3.7.0-ruby25.patch
deleted file mode 100644
index feeddb0eff1..000
--- a/dev-ruby/rspec-expectations/files/rspec-expectations-3.7.0-ruby25.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From 5999ad46df4782a3136c4bad0c2353daede2cbbd Mon Sep 17 00:00:00 2001
-From: Myron Marston 
-Date: Sat, 30 Dec 2017 17:36:55 -0800
-Subject: [PATCH] Disable Ruby 2.5 feature to avoid test failures on 2.5.
-

- spec/rspec/expectations/failure_aggregator_spec.rb | 13 +
- 1 file changed, 13 insertions(+)
-
-diff --git a/spec/rspec/expectations/failure_aggregator_spec.rb 
b/spec/rspec/expectations/failure_aggregator_spec.rb
-index 6628aa75..40a1ae35 100644
 a/spec/rspec/expectations/failure_aggregator_spec.rb
-+++ b/spec/rspec/expectations/failure_aggregator_spec.rb
-@@ -216,6 +216,19 @@ def expect_error_included_in_aggregated_failure(error)
- end
- 
- context "when an expectation failure happens in another thread" do
-+  # On Ruby 2.5+, the new `report_on_exception` causes the errors in the 
threads
-+  # to print warnings, which our rspec-support test harness converts into 
a test
-+  # failure since we want to enforce warnings-free code. To prevent the 
warning,
-+  # we need to disable the setting here.
-+  if Thread.respond_to?(:report_on_exception)
-+around do |example|
-+  orig = Thread.report_on_exception
-+  Thread.report_on_exception = false
-+  example.run
-+  Thread.report_on_exception = orig
-+end
-+  end
-+
-   it "includes the failure in the failures array if there are other 
failures" do
- expect {
-   aggregate_failures do



[gentoo-commits] repo/gentoo:master commit in: dev-ruby/rspec-expectations/files/, dev-ruby/rspec-expectations/

2018-03-08 Thread Hans de Graaff
commit: ffd9338b1a4d854ef64685a5a3d37cf78e0bd215
Author: Hans de Graaff  gentoo  org>
AuthorDate: Fri Mar  9 06:12:30 2018 +
Commit: Hans de Graaff  gentoo  org>
CommitDate: Fri Mar  9 06:12:30 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffd9338b

dev-ruby/rspec-expectations: add ruby25

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 .../files/rspec-expectations-3.7.0-ruby25.patch| 33 ++
 .../rspec-expectations-3.7.0.ebuild|  6 ++--
 2 files changed, 37 insertions(+), 2 deletions(-)

diff --git 
a/dev-ruby/rspec-expectations/files/rspec-expectations-3.7.0-ruby25.patch 
b/dev-ruby/rspec-expectations/files/rspec-expectations-3.7.0-ruby25.patch
new file mode 100644
index 000..feeddb0eff1
--- /dev/null
+++ b/dev-ruby/rspec-expectations/files/rspec-expectations-3.7.0-ruby25.patch
@@ -0,0 +1,33 @@
+From 5999ad46df4782a3136c4bad0c2353daede2cbbd Mon Sep 17 00:00:00 2001
+From: Myron Marston 
+Date: Sat, 30 Dec 2017 17:36:55 -0800
+Subject: [PATCH] Disable Ruby 2.5 feature to avoid test failures on 2.5.
+
+---
+ spec/rspec/expectations/failure_aggregator_spec.rb | 13 +
+ 1 file changed, 13 insertions(+)
+
+diff --git a/spec/rspec/expectations/failure_aggregator_spec.rb 
b/spec/rspec/expectations/failure_aggregator_spec.rb
+index 6628aa75..40a1ae35 100644
+--- a/spec/rspec/expectations/failure_aggregator_spec.rb
 b/spec/rspec/expectations/failure_aggregator_spec.rb
+@@ -216,6 +216,19 @@ def expect_error_included_in_aggregated_failure(error)
+ end
+ 
+ context "when an expectation failure happens in another thread" do
++  # On Ruby 2.5+, the new `report_on_exception` causes the errors in the 
threads
++  # to print warnings, which our rspec-support test harness converts into 
a test
++  # failure since we want to enforce warnings-free code. To prevent the 
warning,
++  # we need to disable the setting here.
++  if Thread.respond_to?(:report_on_exception)
++around do |example|
++  orig = Thread.report_on_exception
++  Thread.report_on_exception = false
++  example.run
++  Thread.report_on_exception = orig
++end
++  end
++
+   it "includes the failure in the failures array if there are other 
failures" do
+ expect {
+   aggregate_failures do

diff --git a/dev-ruby/rspec-expectations/rspec-expectations-3.7.0.ebuild 
b/dev-ruby/rspec-expectations/rspec-expectations-3.7.0.ebuild
index 39b3e307567..a9e1c41d484 100644
--- a/dev-ruby/rspec-expectations/rspec-expectations-3.7.0.ebuild
+++ b/dev-ruby/rspec-expectations/rspec-expectations-3.7.0.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-USE_RUBY="ruby22 ruby23 ruby24"
+USE_RUBY="ruby22 ruby23 ruby24 ruby25"
 
 RUBY_FAKEGEM_RECIPE_TEST="rspec3"
 
@@ -24,6 +24,8 @@ IUSE=""
 
 SUBVERSION="$(get_version_component_range 1-2)"
 
+PATCHES=( "${FILESDIR}/${P}-ruby25.patch" )
+
 ruby_add_rdepend ">=dev-ruby/diff-lcs-1.2.0