diff options
author | Hans de Graaff <graaff@gentoo.org> | 2022-12-04 08:36:49 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2022-12-04 10:18:12 +0100 |
commit | 62568f4d1a57aea7b4e06e69f1e123207b7004ea (patch) | |
tree | 3ad509898b97b5804ee6c7aab059ca5b506c0a8e /dev-ruby/rubytter | |
parent | dev-ruby/rubytter: use rspec3 (diff) | |
download | gentoo-62568f4d1a57aea7b4e06e69f1e123207b7004ea.tar.gz gentoo-62568f4d1a57aea7b4e06e69f1e123207b7004ea.tar.bz2 gentoo-62568f4d1a57aea7b4e06e69f1e123207b7004ea.zip |
dev-ruby/rubytter: enable ruby30
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/rubytter')
-rw-r--r-- | dev-ruby/rubytter/rubytter-1.5.1-r2.ebuild | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dev-ruby/rubytter/rubytter-1.5.1-r2.ebuild b/dev-ruby/rubytter/rubytter-1.5.1-r2.ebuild index fe3e99a12891..ceca69b7b4e4 100644 --- a/dev-ruby/rubytter/rubytter-1.5.1-r2.ebuild +++ b/dev-ruby/rubytter/rubytter-1.5.1-r2.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -USE_RUBY="ruby27" +USE_RUBY="ruby27 ruby30" RUBY_FAKEGEM_RECIPE_TEST="rspec3" @@ -23,5 +23,9 @@ ruby_add_rdepend ">=dev-ruby/json-1.1.3:* >=dev-ruby/oauth-0.3.6" all_ruby_prepare() { sed -i -e '/bundler/d' -e '/check_dependencies/ s:^:#:' Rakefile || die + # Make specs work with rspec 3 sed -i -e 's/stub!/stub/ ; 250 s/pending/skip/' spec/rubytter_spec.rb || die + + # Make specs work with ruby30 + sed -i -e '27i{' -e '30i}' spec/rubytter/oauth_spec.rb || die } |