diff options
author | Hans de Graaff <graaff@gentoo.org> | 2024-06-21 10:32:45 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2024-06-21 13:20:57 +0200 |
commit | b2832ee1627a895f7dd71e4691229bedada54fb6 (patch) | |
tree | fb846b6f2e53ca9cdfb56db970ad7a7a6c9bc76c /dev-ruby | |
parent | dev-ruby/recog: add 3.1.8 (diff) | |
download | gentoo-b2832ee1627a895f7dd71e4691229bedada54fb6.tar.gz gentoo-b2832ee1627a895f7dd71e4691229bedada54fb6.tar.bz2 gentoo-b2832ee1627a895f7dd71e4691229bedada54fb6.zip |
dev-ruby/rspec-rails: add 6.1.3
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/rspec-rails/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/rspec-rails/rspec-rails-6.1.3.ebuild | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/dev-ruby/rspec-rails/Manifest b/dev-ruby/rspec-rails/Manifest index 4d7a4dc61789..d7454c54914a 100644 --- a/dev-ruby/rspec-rails/Manifest +++ b/dev-ruby/rspec-rails/Manifest @@ -3,3 +3,4 @@ DIST rspec-rails-6.0.3.tar.gz 161663 BLAKE2B 02fdd54524e469387264013e5da90350145 DIST rspec-rails-6.0.4.tar.gz 163654 BLAKE2B d8680bc410a63b746d568b3a71a1eb4cdac4b620740fe87e898187855e2340fb0fc0dd9e12d02ae738e2c4f68e085e75b58640c77dca0221901104ad8a6de40d SHA512 1090a76fcad4deeb2a9b8a4895dbe3a884887768f607e26e1b8903a2968c187dcf3361492cfa19a2638b1516948a94e5b0a6688a02041d94357ebe0f724f7039 DIST rspec-rails-6.1.1.tar.gz 165310 BLAKE2B a8c40c203a756a23344c480afd59a9fbd626a6ba4de3716510797269d51d2060d3a719182a174d6225ceb18581f74cde2ad3cc5b71553e71634dbb0894500c55 SHA512 063de268b98aede351437829ecf27151b6015943bc27aa32b01968713a365f75036f357b0516c33a452c2ba5f35c7629de602774054e455eb642a7c67bd57441 DIST rspec-rails-6.1.2.tar.gz 165532 BLAKE2B ade1da3b3fa080d05b664aff2806e5f95ce873ca777676d4e4d761b541a5ab40308f2c0a12d1d29961e39029fb7918227fafc3d3a0f7d3d7438755462f2d623d SHA512 a25424fa2443c49ebec238d30a059a2ce3cc051a391179abd77aacd96ee532963f0804cf75c27fa233b97638d6a2022ebf678b2dc44451ce3a0b54425bf25d2d +DIST rspec-rails-6.1.3.tar.gz 167344 BLAKE2B 08f2b4c7127bf39d589c68ec0e8e75ffd98a2567b171a0b9cc84a092264d8c1e6f6579623e14a8211f21bd3eb7bd20c1182078308fd8bf2eca07a2b06d77f1f9 SHA512 dd2e5abc67970e27788a2a24cf24c78e59ffe0a4ff64e044055c329f340bfd8eac691782d2b8f642690df4a2ebaac2b33965ac7da3221ea4a833ae05697f983e diff --git a/dev-ruby/rspec-rails/rspec-rails-6.1.3.ebuild b/dev-ruby/rspec-rails/rspec-rails-6.1.3.ebuild new file mode 100644 index 000000000000..c4d4fc38dd9f --- /dev/null +++ b/dev-ruby/rspec-rails/rspec-rails-6.1.3.ebuild @@ -0,0 +1,60 @@ +# 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="rspec3" + +#RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md" + +RUBY_FAKEGEM_GEMSPEC="rspec-rails.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="RSpec's official Ruby on Rails plugin" +HOMEPAGE="https://rspec.info/" +SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64" +IUSE="test" + +ruby_add_rdepend " + || ( dev-ruby/activesupport:7.1 dev-ruby/activesupport:7.0 dev-ruby/activesupport:6.1 ) + || ( dev-ruby/actionpack:7.1 dev-ruby/actionpack:7.0 dev-ruby/actionpack:6.1 ) + || ( dev-ruby/railties:7.1 dev-ruby/railties:7.0 dev-ruby/railties:6.1 ) + >=dev-ruby/rspec-3.13:3" + +# Depend on the package being already installed for tests, because +# requiring ammeter will load it, and we need a consistent set of rspec +# and rspec-rails for that to work. +ruby_add_bdepend "test? ( + || ( dev-ruby/activerecord:7.1[sqlite] dev-ruby/activerecord:7.0[sqlite] dev-ruby/activerecord:6.1[sqlite] ) + || ( dev-ruby/actionmailer:7.1 dev-ruby/actionmailer:7.0 dev-ruby/actionmailer:6.1 ) + >=dev-ruby/capybara-2.2.0 + >=dev-ruby/ammeter-1.1.5 + ~dev-ruby/rspec-rails-${PV} +)" + +all_ruby_prepare() { + # Remove .rspec options to avoid dependency on newer rspec when + # bootstrapping. + echo "--require spec_helper" > .rspec || die + + # Avoid bundler-specific specs. + rm -f spec/sanity_check_spec.rb || die + + # Avoid broken controller generator specs for now. + rm -fr spec/generators/rspec || die + + # Test with a compatible rails version + #sed -i -e '1igem "rails", "<7.0"' spec/spec_helper.rb || die + + # Fix gemspec. + sed -e 's/git ls-files --/find */' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die +} |