diff options
author | Hans de Graaff <hans@degraaff.org> | 2024-11-19 09:20:10 +0100 |
---|---|---|
committer | Hans de Graaff <hans@degraaff.org> | 2024-11-19 09:20:10 +0100 |
commit | 9b5cb9dd321d1f102e054c4383a32e9f54efbaab (patch) | |
tree | 51478c6862e736ac61509dbca87eb9e8ec3d325e | |
parent | dev-ruby/active_storage_validations: add 1.3.4 (diff) | |
download | graaff-9b5cb9dd321d1f102e054c4383a32e9f54efbaab.tar.gz graaff-9b5cb9dd321d1f102e054c4383a32e9f54efbaab.tar.bz2 graaff-9b5cb9dd321d1f102e054c4383a32e9f54efbaab.zip |
dev-ruby/acts-as-taggable-on: add 11.0.0
Signed-off-by: Hans de Graaff <hans@degraaff.org>
-rw-r--r-- | dev-ruby/acts-as-taggable-on/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/acts-as-taggable-on/acts-as-taggable-on-11.0.0.ebuild | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-ruby/acts-as-taggable-on/Manifest b/dev-ruby/acts-as-taggable-on/Manifest index 97533954..ff5bacc1 100644 --- a/dev-ruby/acts-as-taggable-on/Manifest +++ b/dev-ruby/acts-as-taggable-on/Manifest @@ -1,2 +1,3 @@ DIST acts-as-taggable-on-10.0.0.gem 57344 BLAKE2B 6decd510d535b1aa3981c061693462765a971987de2f1022ff52d48c5a80aad7269e81afe915b92cd3195e8034760ed8626819714fb06f9199f5b659a27a8540 SHA512 b5ced9952365aff353b49a9c90ef304ceca4479786e56eb8d4acce8705ecf165c2e642fb606fcd1a0d689273eef05eef078acd94ebb1710297f88ee7a498d2ba +DIST acts-as-taggable-on-11.0.0.gem 56832 BLAKE2B 90e4f4c5b022d30743d0beb5cf4cfcc12cc9422c719b09878c9513edbbfeaa823119cb4b6e309e9ae726949e7ccbb2b8819665a529d6091affcee73ccbd03d50 SHA512 be21f83be8e9808737e81a0281fe3023e69cd61589611c479303be25c9d5d310047ca2fc2efb77ef3cb77a77e913c8c24dad1e3ec219f07cec859d69df2dd4ae DIST acts-as-taggable-on-9.0.1.gem 56320 BLAKE2B 1eb35d4649903860e9312dee5b39ba5d2c2b01fed30df26107c31f66b7388d1a3b92fa18c730ce252372359b18d5b004dea135ba035ca392e936edf04b188792 SHA512 0b51084f737e0f539eda1cd734af1e34c553f0f08aadc0e9d66e9020a489a135a6deb86fb6230db028d0983b9ea80167c2da0279e322b363166e535c4e01a4e9 diff --git a/dev-ruby/acts-as-taggable-on/acts-as-taggable-on-11.0.0.ebuild b/dev-ruby/acts-as-taggable-on/acts-as-taggable-on-11.0.0.ebuild new file mode 100644 index 00000000..ab4c009a --- /dev/null +++ b/dev-ruby/acts-as-taggable-on/acts-as-taggable-on-11.0.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_EXTRAINSTALL="db" + +inherit ruby-fakegem + +DESCRIPTION="Advanced tagging for Rails." +HOMEPAGE="https://github.com/mbleigh/acts-as-taggable-on/" + +LICENSE="MIT" +SLOT="$(ver_cut 1-2)" +KEYWORDS="~amd64" +IUSE="test" + +ruby_add_rdepend "|| ( dev-ruby/activerecord:7.2 dev-ruby/activerecord:7.1 dev-ruby/activerecord:7.0 )" + +ruby_add_bdepend "test? ( + dev-ruby/database_cleaner + || ( dev-ruby/rails:7.2 dev-ruby/rails:7.1 dev-ruby/rails:7.0 ) + dev-ruby/rspec-its + )" + +all_ruby_prepare() { + sed -i -e '/git ls-files/d' ${PN}.gemspec || die + + # Provide a database.yml file for sqlite3. + cp spec/internal/config/database.yml.sample spec/internal/config/database.yml || die + sed -i -e '/^mysql/,$d' spec/internal/config/database.yml || die + + sed -i -e '/barrier/ s:^:#:' spec/spec_helper.rb || die + + # Avoid deprecation warning which cannot be solved due to issues with default_parser. + sed -i -e '/WARNING/,/WARNING/ s:^:#:' lib/acts-as-taggable-on.rb || die + + # Avoid tests failing on encoding issues. This started failing at + # some point due to dependencies and is not a regression from + # previous versions. + sed -e '311 s/it/xit/' \ + -i spec/acts_as_taggable_on/tag_spec.rb || die + sed -e '579,620 s/it/xit/' \ + -e '/should be able to create and find tags in languages without capitalization/ s/context/xcontext/' \ + -i spec/acts_as_taggable_on/taggable_spec.rb || die +} |