diff options
author | Hans de Graaff <graaff@gentoo.org> | 2017-02-14 06:32:26 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2017-02-14 06:36:13 +0100 |
commit | 0109ce0a177f35a97ef2d41ff1b6894a0c916126 (patch) | |
tree | 8d0b6352feb3084294188b4dfe3d4d06f8a35403 /dev-ruby/twitter | |
parent | dev-ruby/ttfunk: add 1.5.0 (diff) | |
download | gentoo-0109ce0a177f35a97ef2d41ff1b6894a0c916126.tar.gz gentoo-0109ce0a177f35a97ef2d41ff1b6894a0c916126.tar.bz2 gentoo-0109ce0a177f35a97ef2d41ff1b6894a0c916126.zip |
dev-ruby/twitter: add 5.17.0
Package-Manager: portage-2.3.3
Diffstat (limited to 'dev-ruby/twitter')
-rw-r--r-- | dev-ruby/twitter/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/twitter/twitter-5.17.0.ebuild | 61 |
2 files changed, 62 insertions, 0 deletions
diff --git a/dev-ruby/twitter/Manifest b/dev-ruby/twitter/Manifest index 6ae874279a4b..e6ed77f6af47 100644 --- a/dev-ruby/twitter/Manifest +++ b/dev-ruby/twitter/Manifest @@ -1 +1,2 @@ DIST twitter-5.16.0.tar.gz 525064 SHA256 3edc39b1fbe54b1fd4f38855bd0c5b64859ef68ba15a6ae15bb119a1ab93e3a6 SHA512 7f80203a6324644adf9e97834310892dd1e4db87962aa9abb7055d7713ee511a014234b74f5ecf74f40e3296aa1437f148519fd010b9d85e8fd73d4b19a78d2e WHIRLPOOL 395490c387ed665bdc7f77caa5c2bc1df92d2cbdf8c6ceb593580b28bc89d6ce08a8908a051e7743faf528abf597ea7e1ce1600c52f0aaa690e562f506d5663b +DIST twitter-5.17.0.tar.gz 525292 SHA256 176888c63997fa82954b483f107a8e279517037657ffb823bc827c29aed34d90 SHA512 5b663a5984258229c05cd0db94ba586ed9b2491dc8da32fb444ca4a03f1e2cdc65201d8a4347ea3f05620506471b73e215cbb6feef17413c197e70679e02d706 WHIRLPOOL e1e7bfb7a89fe90d6dc99b10d5540128212838761223b8e9030c3e8fed5784d90963c9e14766e03dd87426ffe63ac8e98536d35654b111d9a7540c89a48617e2 diff --git a/dev-ruby/twitter/twitter-5.17.0.ebuild b/dev-ruby/twitter/twitter-5.17.0.ebuild new file mode 100644 index 000000000000..dc37a41d827a --- /dev/null +++ b/dev-ruby/twitter/twitter-5.17.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +USE_RUBY="ruby20 ruby21 ruby22" + +RUBY_FAKEGEM_RECIPE_DOC="yard" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_GEMSPEC="twitter.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Ruby wrapper around the Twitter API" +HOMEPAGE="https://sferik.github.com/twitter/" +SRC_URI="https://github.com/sferik/twitter/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="5" +KEYWORDS="~amd64" +IUSE="" + +ruby_add_rdepend " + >=dev-ruby/addressable-2.3 + >=dev-ruby/buftok-0.2.0 + >=dev-ruby/equalizer-0.0.10 + =dev-ruby/faraday-0* + >=dev-ruby/faraday-0.9.0 + dev-ruby/http:1.0 + >=dev-ruby/http_parser_rb-0.6.0 + >=dev-ruby/json-1.8:0 + >=dev-ruby/memoizable-0.4.0 + >=dev-ruby/naught-1.0 + =dev-ruby/simple_oauth-0.3* + >=dev-ruby/simple_oauth-0.3.0" + +ruby_add_bdepend "test? ( + dev-ruby/rspec:3 + dev-ruby/webmock:0 + >=dev-ruby/timecop-0.6.1 + ) + doc? ( dev-ruby/yard )" + +all_ruby_prepare() { + sed -i -e '/equalizer/ s/0.0.10/~>0.0.10/' ${RUBY_FAKEGEM_GEMSPEC} || die + +# rm Gemfile || die + sed -i -e '/[Bb]undler/d' Rakefile || die "Unable to remove bundler code." + + sed -i -e '/simplecov/,/^ end/ s:^:#:' \ + -e '1igem "webmock", "~>1.0"' spec/helper.rb || die + + # Avoid a spec that fails due to changes in dependencies. + sed -i -e '/#reverse_token/,/^ end/ s:^:#:' \ + spec/twitter/rest/oauth_spec.rb +} + +each_ruby_test() { + CI=true RSPEC_VERSION=3 ruby-ng_rspec || die +} |