From 03eb2c72ae6374346299c78deb391d0ef72a6ae5 Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Mon, 27 Apr 2020 07:00:56 +0200 Subject: [PATCH] dev-ruby/actionpack: add fix timezone tests Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Hans de Graaff --- 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 7a0a34f9e5bd..92a68b49adb7 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 f22c41d0d073..4de989d426cc 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 } -- 2.26.2