diff options
Diffstat (limited to 'dev-ruby/fakefs')
-rw-r--r-- | dev-ruby/fakefs/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/fakefs/fakefs-2.7.1.ebuild | 52 |
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-ruby/fakefs/Manifest b/dev-ruby/fakefs/Manifest index 52fca14d2643..5e814128a316 100644 --- a/dev-ruby/fakefs/Manifest +++ b/dev-ruby/fakefs/Manifest @@ -1,5 +1,7 @@ DIST fakefs-1.9.0.tar.gz 56514 BLAKE2B 07e84f54413052b3bf37934b395c6115455ca241d42700dc054729be2ce82eb91944b83e01933fd001b46c9db593f2fd7a9b69f5f49529fde3e1ce967498db5b SHA512 e6be021fec79517127c6f514cc3379fa9c64d75c16d0ac80ed5b677f55625f1ee464eafa0768523a4b364323cfb1aae79814057ee9be3a0d947aac22d39a88f5 DIST fakefs-2.5.0.tar.gz 57850 BLAKE2B fc53d8f3dd40bfbbef81e9c092439a099a9964b4eff8e5fa6d59c2215aca735d02ab24f2a44c2f51fe874c2a3b088190455cff17a3bf9099e9f56effbceed61c SHA512 acc2fd6891964ce6ab3dd307d8bc90dcaa92c9c01328865bfcee5de5959089e7d7dcbb4d52576b5fb81321ad12719c7d3999d6b0102e5e2d9ef88522ca032bdc +DIST fakefs-2.7.1.tar.gz 62080 BLAKE2B dcfdc4f7d3e6602e2b0661deac991824ad687cf1270a68fc84a037cd67bfbf6938717e8bf11541362cdae6cd355bf990a0edea0c2756df4ab6d898fd70a2177d SHA512 dfba10131f4d0e26ea1b5f492c869015948367155b00e472f3559507445eb60f388d4abad5fbac1bc495bcc8ddeed8389f2841781bdcbdbb8a07db44aa9632b1 EBUILD fakefs-1.9.0.ebuild 1127 BLAKE2B ba2ee8f2f95b799605be1e0c23df307d228a3fb6b203cbfe66c4f28afcd2400518a7b9800d0b350942195797677de494ffb486e6cafac6c849c53ed8ce1cb05c SHA512 ea63f27d5d1db48fcd01f610c8fc2defaa05284733ef2bf5f7316d3c9ba06491570d1df5314f2ae591206392606b0ed74ffcea0c443fa2518389278ae2f97311 EBUILD fakefs-2.5.0.ebuild 1315 BLAKE2B 0de93b3b29e7e849530342e8b3fba12087e948f1c2575f7848398340ae8f8dbd3216fa19e011153b1b53b5cdccb86b3d6d787d34ebeb9800b77eb8d0a761889c SHA512 884d1b6bd62cc71d49dc7866ea71952c2789a7bc4f190374216b20a49fd5d222f1817f28fb0056291009785cb7a0a3a48ad49c171e1be377c4556f770d1bcb8b +EBUILD fakefs-2.7.1.ebuild 1324 BLAKE2B 6d3ffdda25f5f3988fb6134ebb2f9af067421934b305c84999aa1d1bf4b3f691ce34316aa0bcd477ea336830dc5207a6f39b755c493e1bf55d677a36ba5fcdb6 SHA512 b9acd96b0f8d2fd8573fd1d7876d5970dc34721ebcb623996208afe9f5ee04ea8a606b51565c282c13daa377b421a5f09515621dd7fc16b5df1805a9c3db3db3 MISC metadata.xml 390 BLAKE2B 0bb4b174c4e97c50f3abdc00222b9b761e71b26bc9da391413ab9fa8d69d1f510d3ff57c44caf2a244e5a63c4e1d71ef1aec0b1448d442be28acca14bb4f129e SHA512 8898c4094b8e0d7f161be59595430ad65fb856f72fce0a6cc5fccc3e494d6c63a370fe4733db20256ab56907918559dcef053d60190039d57b1817e8e24d6edc diff --git a/dev-ruby/fakefs/fakefs-2.7.1.ebuild b/dev-ruby/fakefs/fakefs-2.7.1.ebuild new file mode 100644 index 000000000000..4c9a57d024d9 --- /dev/null +++ b/dev-ruby/fakefs/fakefs-2.7.1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32 ruby33" + +RUBY_FAKEGEM_RECIPE_TEST="none" + +RUBY_FAKEGEM_EXTRADOC="CONTRIBUTORS README.md" + +RUBY_FAKEGEM_GEMSPEC="fakefs.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A fake filesystem. Use it in your tests" +HOMEPAGE="https://github.com/fakefs/fakefs" +SRC_URI="https://github.com/fakefs/fakefs/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="test" + +ruby_add_bdepend " + test? ( + >=dev-ruby/rspec-3.1:3 + >=dev-ruby/maxitest-3.6:1 + )" + +all_ruby_prepare() { + # Remove bundler + rm Gemfile || die + + # Avoid unneeded minitest-rg dependency. + sed -i -e '1igem "maxitest"; gem "minitest", "~>5.5"' \ + -e '/bundler/ s:^:#:' \ + -e '/minitest\/rg/ s:^:#:' test/test_helper.rb || die + + sed -i -e 's/git ls-files/find */' ${RUBY_FAKEGEM_GEMSPEC} || die + + # Avoid test that uses the console and hangs on user input + rm -f test/pry_test.rb || die + + # Avoid a test broken by newer irb versions. + rm -f test/irb_test.rb || die +} + +each_ruby_test() { + RSPEC_VERSION=3 ruby-ng_rspec + ${RUBY} -Ilib:.:test -e 'Dir["test/**/*_test.rb"].each{|f| require f}' || die +} |