summaryrefslogtreecommitdiff
blob: 27c0f8aea7a62a4950c9195cb3ddd14bff2a93a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
USE_RUBY="ruby31 ruby32"

RUBY_FAKEGEM_EXTRADOC="README.md"

RUBY_FAKEGEM_RECIPE_TEST="rspec3"

RUBY_FAKEGEM_BINWRAP=""

RUBY_FAKEGEM_GEMSPEC="jira-ruby.gemspec"

inherit ruby-fakegem

DESCRIPTION="API for JIRA"
HOMEPAGE="https://github.com/sumoheavy/jira-ruby"

LICENSE="MIT"
SLOT="$(ver_cut 1)"
KEYWORDS="~amd64"
IUSE="test"

ruby_add_rdepend "
	dev-ruby/activesupport:*
	dev-ruby/atlassian-jwt
	dev-ruby/multipart-post
	>=dev-ruby/oauth-0.5.0:0
"

ruby_add_bdepend "test? ( dev-ruby/webmock )"

all_ruby_prepare() {
	sed -i -e '/\(bundle\|pry\)/ s:^:#:' spec/spec_helper.rb || die

	# Drop integration tests for now since they require an ancient version of webmock.
	rm -rf spec/integration || die
	sed -e '/fails with wrong user name and password/askip "ancient webmock"' \
		-e '/only returns a true for/askip "ancient webmock"' \
		-i spec/jira/client_spec.rb || die
}