diff options
Diffstat (limited to 'dev-ruby/stringex')
-rw-r--r-- | dev-ruby/stringex/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/stringex/stringex-2.8.5-r2.ebuild | 35 |
2 files changed, 36 insertions, 0 deletions
diff --git a/dev-ruby/stringex/Manifest b/dev-ruby/stringex/Manifest index 840afdbdcb61..89aa5b498e92 100644 --- a/dev-ruby/stringex/Manifest +++ b/dev-ruby/stringex/Manifest @@ -1,3 +1,4 @@ DIST stringex-2.8.5.gem 130048 BLAKE2B c07eaaee07bf348690166b41b0846bc49eb49c5ba9e39c7eaeea2a3a60d6089edd7c7d1d75fd9a5208c9883c4bff8840ccf56c6f186daeabcf79e7f4fb6b4d25 SHA512 53f9908f176f465d2e884e92dffb26abcdf75593c94ee8250253da0eb29eddf489cf5b3f539135659ad4c0e2dd738d2affff6a946c50abd5f36517148d8338ce EBUILD stringex-2.8.5-r1.ebuild 993 BLAKE2B 9dafdea9b3d68d9db55c55ff4cc3f438263d785f8584f79b214403279b1088272c95cbef3fdde2cac85783d79142ba0fd312dfb7524305ae57a2517f5c7078b0 SHA512 194d063cf19eec3c19944d797b63c425831d3bdfc023daa69aee684bc8dc513f6b3b61d6736f17de49eb5b3513b9b77678c7a4f9361898a005927b71ac770894 +EBUILD stringex-2.8.5-r2.ebuild 831 BLAKE2B 5aceb95374ba9f5b234e91306b11c1fc802e12dec6265bd36023bbfa23a8cb1f30b4ec1cf278e981020321c45187163cd9ed85e677ea84dbe660760f42d4b6ea SHA512 fd195cdcb28dd499499bf91c7ef92bc8cf994be80a722b90ca651f999f2a47aa38c2dc62fa689ec94274bd695007f5970077286bb9316794158831a6d22474e9 MISC metadata.xml 339 BLAKE2B f73c3a0f80358652d11426529ad603b32ea4ef3b882be5d1862ffa94d35fc49a154406d66eff59d61544d6c35a8aaf841f553f689e4fdedffd88337d2be3ce4c SHA512 87d2f65efec8bab706894e788d2c6ac548221684034bc93cf43efc104fd2340188ad8aaf1e9e484ab40475aee38a7bd9227b55f73e8ae31c39548c297bb18d32 diff --git a/dev-ruby/stringex/stringex-2.8.5-r2.ebuild b/dev-ruby/stringex/stringex-2.8.5-r2.ebuild new file mode 100644 index 000000000000..16b70bb6361d --- /dev/null +++ b/dev-ruby/stringex/stringex-2.8.5-r2.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30" + +inherit ruby-fakegem + +DESCRIPTION="Extensions for Ruby's String class" +HOMEPAGE="https://github.com/rsl/stringex" +LICENSE="MIT" + +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="test" + +ruby_add_bdepend " + test? ( + dev-ruby/i18n:1 + dev-ruby/redcloth + dev-ruby/test-unit:2 + )" + +all_ruby_prepare() { + # Let tests work with newer rails versions + sed -i -e 's/update_attributes/update/' test/unit/acts_as_url/adapter/* || die +} + +each_ruby_prepare() { + if has_version "dev-ruby/activerecord[ruby_targets_${_ruby_implementation},sqlite]" ; then + einfo "Testing activerecord integration" + else + rm -f test/unit/acts_as_url_integration_test.rb || die + fi +} |