dev-ruby/ruby-oembed: add 0.13.0
authorHans de Graaff <graaff@gentoo.org>
Mon, 6 Apr 2020 05:26:48 +0000 (07:26 +0200)
committerHans de Graaff <graaff@gentoo.org>
Mon, 6 Apr 2020 09:27:43 +0000 (11:27 +0200)
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
dev-ruby/ruby-oembed/Manifest
dev-ruby/ruby-oembed/ruby-oembed-0.13.0.ebuild [new file with mode: 0644]

index fa46f78a61e736df83870be0d346820cd02cdea1..9693396d6d028975d12beaee0d7eefabd9432aa6 100644 (file)
@@ -1 +1,2 @@
 DIST ruby-oembed-0.12.0.gem 690688 BLAKE2B bda4cb7771c19861bcda4692d3cde80e51c0069ce5ee34986c6fbb0b90853646daf5be0277de819877e9163253da03bd7886acb7a717697bcf802a678fab3b72 SHA512 faaf7828641cf419b699ecbbd7a890304ee645faf13ca480c22afbec035687a730a8d53c7825312a4734dfc6633ec4b4c5790c4db18d584c344602310a7ebed9
+DIST ruby-oembed-0.13.0.gem 4508672 BLAKE2B 154accd1025f9874a3367d8661ce54aa517ecd663faa47a7fa5714acb6846def05c159ca72aff98d77d03edfde84dd825f2be5447eec141268ed4e597c0a9448 SHA512 3998b4ae507320fe6c02b998b58fbf99c926b58d4e44597a81fba95f85b3cf3d9a4565cbd34b1c9d47f9dd01365ce6a1dc46a32fb9368abdd35fe5e69b34bc1e
diff --git a/dev-ruby/ruby-oembed/ruby-oembed-0.13.0.ebuild b/dev-ruby/ruby-oembed/ruby-oembed-0.13.0.ebuild
new file mode 100644 (file)
index 0000000..32d0aa9
--- /dev/null
@@ -0,0 +1,37 @@
+# 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_TEST="rspec3"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.rdoc README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="An oEmbed consumer library written in Ruby."
+HOMEPAGE="https://github.com/judofyr/ruby-oembed"
+LICENSE="MIT"
+
+KEYWORDS="~amd64"
+SLOT="0"
+IUSE="test"
+
+ruby_add_bdepend "test?
+       (
+               dev-ruby/json
+               dev-ruby/vcr:5
+               dev-ruby/xml-simple
+               dev-ruby/nokogiri
+               dev-ruby/webmock:3
+       )"
+
+all_ruby_prepare() {
+       # Remove bundler but keep vcr version requirement
+       rm -f Gemfile || die
+       sed -i -e '1igem "vcr", "~> 5.0"' spec/spec_helper.rb || die
+
+       # Avoid development dependencies
+       sed -i -e '/coverall/I s:^:#:' spec/spec_helper.rb || die
+}