dev-ruby/webmock: amd64 stable
authorHans de Graaff <graaff@gentoo.org>
Sun, 26 Aug 2018 05:32:13 +0000 (07:32 +0200)
committerHans de Graaff <graaff@gentoo.org>
Sun, 26 Aug 2018 05:37:00 +0000 (07:37 +0200)
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
dev-ruby/webmock/webmock-3.4.1.ebuild

index e826049916690e606223363a85511d03a0db9157..cef9721304f75a2bc49871826c2fe72570cb4b37 100644 (file)
@@ -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() {
index c5652a996a18e19edbb9319aa1e671eb21f5388d..4f773cef98da4fff9fe3a78731f93a16f41a99d3 100644 (file)
@@ -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() {