From 6d0c2ceeabc7cf8b0c3f9c8502d6bef05164f37c Mon Sep 17 00:00:00 2001 From: Ryan Bigg Date: Mon, 16 Sep 2024 09:23:21 +1000 Subject: [PATCH] Add post install message for Ruby < 3.2 users As per #686 --- i18n.gemspec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/i18n.gemspec b/i18n.gemspec index a6b55ea5..8dcf493f 100644 --- a/i18n.gemspec +++ b/i18n.gemspec @@ -25,6 +25,9 @@ Gem::Specification.new do |s| s.require_path = 'lib' s.required_rubygems_version = '>= 1.3.5' s.required_ruby_version = '>= 2.3.0' + s.post_install_message = if RUBY_VERSION < '3.2' + "PSA: I18n will be dropping support for Ruby < 3.2 in the next major release (April 2025), due to Ruby's end of life for 3.1 and below (https://endoflife.date/ruby). Please upgrade to Ruby 3.2 or newer by April 2025 to continue using future versions of this gem." + end s.add_dependency 'concurrent-ruby', '~> 1.0' end