commit:     b3fa42914452f464925404459203cae94aac3e04
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 26 05:32:13 2018 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Aug 26 05:37:00 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3fa4291

dev-ruby/webmock: amd64 stable

Also avoid test that requires network access

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 dev-ruby/webmock/webmock-2.3.2.ebuild | 7 +++++--
 dev-ruby/webmock/webmock-3.4.1.ebuild | 3 +++
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/dev-ruby/webmock/webmock-2.3.2.ebuild 
b/dev-ruby/webmock/webmock-2.3.2.ebuild
index e8260499166..cef9721304f 100644
--- a/dev-ruby/webmock/webmock-2.3.2.ebuild
+++ b/dev-ruby/webmock/webmock-2.3.2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=5
 
-USE_RUBY="ruby22 ruby23 ruby24"
+USE_RUBY="ruby23 ruby24"
 
 RUBY_FAKEGEM_TASK_TEST="test spec NO_CONNECTION=true"
 
@@ -17,7 +17,7 @@ HOMEPAGE="https://github.com/bblimke/webmock";
 
 LICENSE="GPL-2"
 SLOT="2"
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+KEYWORDS="amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos 
~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
 IUSE=""
 
 ruby_add_rdepend ">=dev-ruby/addressable-2.3.6 >=dev-ruby/crack-0.3.2 
dev-ruby/hashdiff"
@@ -49,6 +49,9 @@ all_ruby_prepare() {
        sed -i -e '/httpclient streams response/,/^  end/ s:^:#:' \
                -e '/are detected when manually specifying Authorization 
header/,/^    end/ s:^:#:' \
                spec/acceptance/httpclient/httpclient_spec.rb
+
+       # Avoid specs that require network access
+       sed -i -e '/when request is not stubbed/,/^      end/ s:^:#:' 
spec/acceptance/shared/callbacks.rb
 }
 
 each_ruby_test() {

diff --git a/dev-ruby/webmock/webmock-3.4.1.ebuild 
b/dev-ruby/webmock/webmock-3.4.1.ebuild
index c5652a996a1..4f773cef98d 100644
--- a/dev-ruby/webmock/webmock-3.4.1.ebuild
+++ b/dev-ruby/webmock/webmock-3.4.1.ebuild
@@ -49,6 +49,9 @@ all_ruby_prepare() {
        sed -i -e '/httpclient streams response/,/^  end/ s:^:#:' \
                -e '/are detected when manually specifying Authorization 
header/,/^    end/ s:^:#:' \
                spec/acceptance/httpclient/httpclient_spec.rb
+
+       # Avoid specs that require network access
+       sed -i -e '/when request is not stubbed/,/^      end/ s:^:#:' 
spec/acceptance/shared/callbacks.rb
 }
 
 each_ruby_test() {

Reply via email to