commit:     03eb2c72ae6374346299c78deb391d0ef72a6ae5
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 27 05:00:56 2020 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Mon Apr 27 07:15:49 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03eb2c72

dev-ruby/actionpack: add fix timezone tests

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/actionpack/actionpack-5.2.4.2.ebuild | 3 +++
 dev-ruby/actionpack/actionpack-6.0.2.2.ebuild | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/dev-ruby/actionpack/actionpack-5.2.4.2.ebuild 
b/dev-ruby/actionpack/actionpack-5.2.4.2.ebuild
index 7a0a34f9e5b..92a68b49adb 100644
--- a/dev-ruby/actionpack/actionpack-5.2.4.2.ebuild
+++ b/dev-ruby/actionpack/actionpack-5.2.4.2.ebuild
@@ -57,4 +57,7 @@ all_ruby_prepare() {
                -e '1i gem "actionview", "~> 5.2.0"' \
                -e '1i gem "railties", "~> 5.2.0"' \
                -i test/abstract_unit.rb || die
+
+       # Use different timezone notation, this changed at some point due to an 
external dependency changing.
+       sed -i -e 's/-0000/GMT/' test/dispatch/response_test.rb 
test/dispatch/cookies_test.rb test/dispatch/session/cookie_store_test.rb || die
 }

diff --git a/dev-ruby/actionpack/actionpack-6.0.2.2.ebuild 
b/dev-ruby/actionpack/actionpack-6.0.2.2.ebuild
index f22c41d0d07..4de989d426c 100644
--- a/dev-ruby/actionpack/actionpack-6.0.2.2.ebuild
+++ b/dev-ruby/actionpack/actionpack-6.0.2.2.ebuild
@@ -52,4 +52,7 @@ all_ruby_prepare() {
                -e '/:job/,/end/ s:^:#:' \
                -e '/group :doc/,/^end/ s:^:#:' ../Gemfile || die
        rm ../Gemfile.lock || die
+
+       # Use different timezone notation, this changed at some point due to an 
external dependency changing.
+       sed -i -e 's/-0000/GMT/' test/dispatch/response_test.rb 
test/dispatch/cookies_test.rb test/dispatch/session/cookie_store_test.rb || die
 }

Reply via email to