app-text/jist: use correct webmock slot; add ruby23
authorHans de Graaff <graaff@gentoo.org>
Sat, 4 Feb 2017 14:59:28 +0000 (15:59 +0100)
committerHans de Graaff <graaff@gentoo.org>
Sat, 4 Feb 2017 15:38:20 +0000 (16:38 +0100)
Package-Manager: portage-2.3.3

app-text/jist/jist-1.5.1-r1.ebuild

index 7259c8c1bc81c39ca530b6d77d7ef83217c7c373..207bec26e3c68fb3ffaefe070f1873febeeb44d7 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI=5
-USE_RUBY="ruby20 ruby21 ruby22"
+USE_RUBY="ruby21 ruby22 ruby23"
 
 RUBY_FAKEGEM_RECIPE_TEST="rspec"
 RUBY_FAKEGEM_TASK_DOC=""
@@ -21,10 +21,12 @@ IUSE=""
 
 ruby_add_rdepend "dev-ruby/json:*"
 
-ruby_add_bdepend "test? ( dev-ruby/webmock )"
+ruby_add_bdepend "test? ( dev-ruby/webmock:0 )"
 
 all_ruby_prepare() {
        # Avoid failing test (due to webmock version?)
        # We did not run any tests previously
        rm -f spec/shorten_spec.rb || die
+
+       sed -i -e '1igem "webmock", "~>1.0"' spec/spec_helper.rb || die
 }