From 7fd3fa82127c76306d31ed83cee6d43f789da041 Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Mon, 7 Sep 2015 08:03:59 +0200 Subject: [PATCH] dev-ruby/twitter: version bump Drop ruby19 due to increased equalizer version. Install a correct gemspec with dependencies. Package-Manager: portage-2.2.20.1 --- dev-ruby/twitter/Manifest | 1 + dev-ruby/twitter/twitter-5.15.0.ebuild | 60 ++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 dev-ruby/twitter/twitter-5.15.0.ebuild diff --git a/dev-ruby/twitter/Manifest b/dev-ruby/twitter/Manifest index ca93b3880693..e53b5586d911 100644 --- a/dev-ruby/twitter/Manifest +++ b/dev-ruby/twitter/Manifest @@ -1,2 +1,3 @@ DIST twitter-5.13.0.tar.gz 1322622 SHA256 760dede63a96f51d38a61fd172d93c97da17046f01c53c37b430c421738a6906 SHA512 28afafcfbe938fadc571dd19affd69cf1288d86fd3c4c14b743a4d573de068fdc6a6ffe487320b6a039dc2540375450d060e32761196bbbb4cb4b83a0999696a WHIRLPOOL 3a7b20e69c443c644cfe0e2a0bb21d13c6259b8db129a6ae7d32df4a4e166bfa04f97271857feb866c2e7499ed7090efdca3680b4920863cafdbe15fd984788a DIST twitter-5.14.0.tar.gz 1355192 SHA256 44936f6e7eb61139c5129c25c207e16065ed5a20cb4d86679edbb8600318c374 SHA512 3fc4971b191efabaafb8918d525ed0279a246f68053c0af25aef355c6f019f40d6977a0f3463679e138dfeb40ff32e13b005c6a8a9667d0c359c659917ea890a WHIRLPOOL 689f319b6c044a87b6febd27425d497789cf73c47febda0cbec0b48a7d45cd160bd5f7c8ae26bb67a7958ccbdff9651f6e94fbb6fdffc1de244bf7657f68e7dd +DIST twitter-5.15.0.tar.gz 524912 SHA256 9d0d2e234afb35b8555f692bac49fed7186d9f652a978771a7753e5cd79a8ffc SHA512 5beea732763ad072fd099a284d33e6cfcaf62e07ac14d3d938d8bc86f4c84578429631f4edaf0c34bfe1f6555c07c18e935edbb6d5320a33aea089f1f444a5e8 WHIRLPOOL 5576ace9aecc481c683abe2dc76a2f5f24eda1b9680e607ccb7207bf0c2509266145d3f2b41c712eb67bd3df0dd67f436976129e3cd5a5a6880f01f790de06a4 diff --git a/dev-ruby/twitter/twitter-5.15.0.ebuild b/dev-ruby/twitter/twitter-5.15.0.ebuild new file mode 100644 index 000000000000..07eadaf2a719 --- /dev/null +++ b/dev-ruby/twitter/twitter-5.15.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +USE_RUBY="ruby20 ruby21" + +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-0.6.0:* =dev-ruby/http_parser_rb-0.6.0 + >=dev-ruby/json-1.8 + >=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:2 + dev-ruby/webmock + >=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:^:#:' 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 ruby-ng_rspec || die +} -- 2.26.2