commit:     00b2f6200542ab6f47ee461d15691d55fab5c339
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 13 07:29:43 2024 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Tue Aug 13 07:29:43 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00b2f620

dev-ruby/date_validator: fix tests

Ensure a valid activemodel version is used.

Closes: https://bugs.gentoo.org/937847
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/date_validator/date_validator-0.12.0.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dev-ruby/date_validator/date_validator-0.12.0.ebuild 
b/dev-ruby/date_validator/date_validator-0.12.0.ebuild
index 8b174b7e9552..d00447da313f 100644
--- a/dev-ruby/date_validator/date_validator-0.12.0.ebuild
+++ b/dev-ruby/date_validator/date_validator-0.12.0.ebuild
@@ -24,7 +24,7 @@ HOMEPAGE="https://github.com/codegram/date_validator";
 LICENSE="MIT"
 SLOT="3"
 KEYWORDS="~amd64"
-IUSE=""
+IUSE="doc test"
 
 ruby_add_rdepend "
        >=dev-ruby/activemodel-3.0:*
@@ -46,5 +46,6 @@ all_ruby_prepare() {
        sed -i \
                -e '/[Bb]undler/s/^/#/' Rakefile || die
        # Fix tests
-       sed -i -e "1irequire 'active_support'; require 
'active_support/core_ext/time/zones'" test/test_helper.rb || die
+       sed -e "1igem 'activemodel'; require 'active_support'; require 
'active_support/core_ext/time/zones'" \
+               -i test/test_helper.rb || die
 }

Reply via email to