summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-09-22 07:52:03 +0200
committerHans de Graaff <graaff@gentoo.org>2023-09-22 07:54:50 +0200
commit33a66f149ebf06816ca359b563ae9c78e9820040 (patch)
treeb15d364205f4568a6a9bc57ec427137aa6b2a191 /dev-ruby/twitter
parentdev-libs/libgpiod: add myself as a maintainer (diff)
downloadgentoo-33a66f149ebf06816ca359b563ae9c78e9820040.tar.gz
gentoo-33a66f149ebf06816ca359b563ae9c78e9820040.tar.bz2
gentoo-33a66f149ebf06816ca359b563ae9c78e9820040.zip
dev-ruby/twitter: add 8.0.1
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-8.0.1.ebuild59
2 files changed, 60 insertions, 0 deletions
diff --git a/dev-ruby/twitter/Manifest b/dev-ruby/twitter/Manifest
index 9cce530b6162..cd562c4bd17d 100644
--- a/dev-ruby/twitter/Manifest
+++ b/dev-ruby/twitter/Manifest
@@ -1,2 +1,3 @@
DIST twitter-7.0.0.tar.gz 831181 BLAKE2B aeb888bf1551116916cc10a4c0278dcee541e953c6e1be09bd95f348b8a2a08075d44c4b8beb736b13564d550b5797184c725141c5c3866f5423afddfdfbea19 SHA512 4b0f831ddb1f54fc5894a15010d17b54c62f6caa3eadd6a1f0e0ef37235f29f53f6315c49213244d79ab3708d5a7b1e1b9735d1f35fa291a66d439db916d3ec7
DIST twitter-8.0.0.tar.gz 830698 BLAKE2B 187c37adb2971845730ba8ef15f7350083130c1c2f1704f3dc909aee28e8b7742e1a45b3bac8d198eb45f4e415dd15ebfe0099d9e52b7c5a5ec40ca2a6cdaa2e SHA512 b67e97385cb53cb4d75381fb16a6395d0ea72dc2fa0a900ff072ef0ef87947364967da9070e5a2449f5a938740ac0910a342d8ff3bd62095ecfb468b173a754e
+DIST twitter-8.0.1.tar.gz 830580 BLAKE2B a6a89eeaaf0095b022f31363d153fe980777e6588755115e6a3ee469ece8a753c9abf72747e986858562ec0ea4ca9b0eed31067aee1713dadc221b705db33d7e SHA512 864b882e2797efe7e3c846b8ea39bb323395cacc42128d6a1fe74106249ca4e3419efd04237c5b46a697ce0204a109fbd1af906917820d67f1a2b1ecb71501fa
diff --git a/dev-ruby/twitter/twitter-8.0.1.ebuild b/dev-ruby/twitter/twitter-8.0.1.ebuild
new file mode 100644
index 000000000000..44b8ac9258c8
--- /dev/null
+++ b/dev-ruby/twitter/twitter-8.0.1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby31 ruby32"
+
+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://github.com/sferik/twitter-ruby/"
+SRC_URI="https://github.com/sferik/twitter-ruby/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+RUBY_S="twitter-ruby-${PV}"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64"
+IUSE=""
+
+ruby_add_rdepend "
+ >=dev-ruby/addressable-2.3
+ =dev-ruby/buftok-0.3.0*
+ >=dev-ruby/equalizer-0.0.11
+ =dev-ruby/equalizer-0.0*
+ >=dev-ruby/http-5.1:5
+ >=dev-ruby/http-form_data-2.3:2
+ =dev-ruby/llhttp-ffi-0.4*
+ =dev-ruby/memoizable-0.4*
+ =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
+}