summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2020-02-15 08:43:44 +0100
committerHans de Graaff <graaff@gentoo.org>2020-02-15 08:45:24 +0100
commitb7bc5e5f03982416ed3b5f9ea91647b7a266d534 (patch)
tree9ea7ca845b0c21c8a04c1659116c5464e05a0c2d /dev-ruby/twitter
parentdev-ruby/http-form_data: add ruby27 (diff)
downloadgentoo-b7bc5e5f03982416ed3b5f9ea91647b7a266d534.tar.gz
gentoo-b7bc5e5f03982416ed3b5f9ea91647b7a266d534.tar.bz2
gentoo-b7bc5e5f03982416ed3b5f9ea91647b7a266d534.zip
dev-ruby/twitter: add 7.0.0
Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/twitter')
-rw-r--r--dev-ruby/twitter/Manifest1
-rw-r--r--dev-ruby/twitter/twitter-7.0.0.ebuild58
2 files changed, 59 insertions, 0 deletions
diff --git a/dev-ruby/twitter/Manifest b/dev-ruby/twitter/Manifest
index 75894b2c8261..3d051d498db6 100644
--- a/dev-ruby/twitter/Manifest
+++ b/dev-ruby/twitter/Manifest
@@ -1 +1,2 @@
DIST twitter-6.2.0.tar.gz 519470 BLAKE2B 4c3d929d8706845610b31c8ae702563d0330a95a165e417b77ecfd894b1f216100678c9862856c3c450952e3025940a701d96f0aeb1b29de55e612c6c69ab231 SHA512 5d2bd653233f285e0c08503031317a966ec098e9b302f9e0c65bdbf4632465988b1139719dae1cabb856b08200fc7793cd341fd926981484cf416a01f309d242
+DIST twitter-7.0.0.tar.gz 831181 BLAKE2B aeb888bf1551116916cc10a4c0278dcee541e953c6e1be09bd95f348b8a2a08075d44c4b8beb736b13564d550b5797184c725141c5c3866f5423afddfdfbea19 SHA512 4b0f831ddb1f54fc5894a15010d17b54c62f6caa3eadd6a1f0e0ef37235f29f53f6315c49213244d79ab3708d5a7b1e1b9735d1f35fa291a66d439db916d3ec7
diff --git a/dev-ruby/twitter/twitter-7.0.0.ebuild b/dev-ruby/twitter/twitter-7.0.0.ebuild
new file mode 100644
index 000000000000..8cf53c9edc4b
--- /dev/null
+++ b/dev-ruby/twitter/twitter-7.0.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby24 ruby25 ruby26"
+
+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="$(ver_cut 1)"
+KEYWORDS="~amd64"
+IUSE=""
+
+ruby_add_rdepend "
+ >=dev-ruby/addressable-2.3
+ >=dev-ruby/buftok-0.2.0
+ >=dev-ruby/equalizer-0.0.11
+ =dev-ruby/equalizer-0.0*
+ dev-ruby/http:4
+ dev-ruby/http-form_data:2
+ >=dev-ruby/http_parser_rb-0.6.0
+ >=dev-ruby/memoizable-0.4.2
+ =dev-ruby/multipart-post-2*
+ >=dev-ruby/naught-1.1
+ =dev-ruby/simple_oauth-0.3*
+"
+
+ruby_add_bdepend "test? (
+ dev-ruby/rspec:3
+ dev-ruby/webmock:3
+ >=dev-ruby/timecop-0.6.1
+ )
+ doc? ( dev-ruby/yard )"
+
+all_ruby_prepare() {
+# 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", "~>3.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
+}