summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2017-03-23 07:26:52 +0100
committerHans de Graaff <graaff@gentoo.org>2017-03-23 07:27:16 +0100
commitb59ef2f6863d2c14e3e852b90e1e58c79d533e07 (patch)
treeed19cf67e517fddcbb916b2e7d8372ce5075f0aa
parentdev-python/pbr: removing bad keywords (diff)
downloadgentoo-b59ef2f686.tar.gz
gentoo-b59ef2f686.tar.bz2
gentoo-b59ef2f686.zip
dev-ruby/twitter: add 6.1.0
Package-Manager: Portage-2.3.3, Repoman-2.3.1
-rw-r--r--dev-ruby/twitter/Manifest1
-rw-r--r--dev-ruby/twitter/twitter-6.1.0.ebuild58
2 files changed, 59 insertions, 0 deletions
diff --git a/dev-ruby/twitter/Manifest b/dev-ruby/twitter/Manifest
index e6ed77f6af47..b6669c245552 100644
--- a/dev-ruby/twitter/Manifest
+++ b/dev-ruby/twitter/Manifest
@@ -1,2 +1,3 @@
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
+DIST twitter-6.1.0.tar.gz 1269592 SHA256 6d2dd9168a1a5c92c25aecfe76e874995bd67b1ebce3822502facacfb38d0dbf SHA512 6bcf2c92afe3018357df83cac090d58b70f16bf73c29d63100a4f40ab2dfd51b20ad5f62cfba40df1a9bbf8289fec75565d7fbfbf702e5ac90f61ce0cb8686dd WHIRLPOOL 18de978b1f342a2b4fc71fbd078d98744ba06e714c4e3dce7a1022974df38866f78d396f1562065c0b2644765876b2b2f620191d26fc16ebc85e2bd844bccf4a
diff --git a/dev-ruby/twitter/twitter-6.1.0.ebuild b/dev-ruby/twitter/twitter-6.1.0.ebuild
new file mode 100644
index 000000000000..dd14e089fe4e
--- /dev/null
+++ b/dev-ruby/twitter/twitter-6.1.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby21 ruby22 ruby23"
+
+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="6"
+KEYWORDS="~amd64"
+IUSE=""
+
+ruby_add_rdepend "
+ >=dev-ruby/addressable-2.5
+ >=dev-ruby/buftok-0.2.0
+ =dev-ruby/equalizer-0.0.11
+ =dev-ruby/faraday-0.11*
+ >=dev-ruby/http-2.1:2.0
+ >=dev-ruby/http_parser_rb-0.6.0
+ >=dev-ruby/memoizable-0.4.2
+ >=dev-ruby/naught-1.1
+ =dev-ruby/simple_oauth-0.3*
+ >=dev-ruby/simple_oauth-0.3.1"
+
+ruby_add_bdepend "test? (
+ dev-ruby/rspec:3
+ dev-ruby/webmock:2
+ >=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", "~>2.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
+}