diff options
author | Hans de Graaff <graaff@gentoo.org> | 2021-03-11 11:33:01 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2021-03-11 11:54:51 +0100 |
commit | 56727587de325b4357b445256a7e96cdf2fcfd01 (patch) | |
tree | 331434e52cc13082ad9d9d55f93252e4bdf92c99 /dev-ruby/globalid/files | |
parent | profiles/package.mask: mask dev-ruby/astrolabe for removal (diff) | |
download | gentoo-56727587de325b4357b445256a7e96cdf2fcfd01.tar.gz gentoo-56727587de325b4357b445256a7e96cdf2fcfd01.tar.bz2 gentoo-56727587de325b4357b445256a7e96cdf2fcfd01.zip |
dev-ruby/globalid: fix tests
Forward port upstream fix for activesupport time extensions.
Closes: https://bugs.gentoo.org/775203
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/globalid/files')
-rw-r--r-- | dev-ruby/globalid/files/globalid-0.4.2-integer-time.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-ruby/globalid/files/globalid-0.4.2-integer-time.patch b/dev-ruby/globalid/files/globalid-0.4.2-integer-time.patch new file mode 100644 index 000000000000..7cd1c627daf2 --- /dev/null +++ b/dev-ruby/globalid/files/globalid-0.4.2-integer-time.patch @@ -0,0 +1,23 @@ +From 1aec708b98d8657ef241d02813960e8af8ebd952 Mon Sep 17 00:00:00 2001 +From: Eugene Kenny <elkenny@gmail.com> +Date: Sun, 26 Apr 2020 17:35:41 +0100 +Subject: [PATCH] Require time core extension for 1.year + +Since 39ab83a43a64b339739c6e8c7ab24bb1325204ed this file uses `1.year` +without requiring the Active Support core extension that defines it. +--- + lib/global_id/railtie.rb | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/lib/global_id/railtie.rb b/lib/global_id/railtie.rb +index edc90d8..096c20b 100644 +--- a/lib/global_id/railtie.rb ++++ b/lib/global_id/railtie.rb +@@ -5,6 +5,7 @@ + require 'global_id' + require 'active_support' + require 'active_support/core_ext/string/inflections' ++require 'active_support/core_ext/integer/time' + + class GlobalID + # = GlobalID Railtie |