Skip to content

Commit

Permalink
Add post install message for Ruby < 3.2 users
Browse files Browse the repository at this point in the history
As per #686
  • Loading branch information
radar committed Sep 15, 2024
1 parent 1fbc930 commit 6d0c2ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions i18n.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 comments on commit 6d0c2ce

@mathieujobin
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was very surprised to see this message on bundle install or gem install ... although I am on latest 3.4.1 ?

I thought there might be a bug, but it looks like a mystery...

Successfully installed concurrent-ruby-1.3.5
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.
Successfully installed i18n-1.14.6
...
Successfully installed jekyll-4.3.4
28 gems installed

A new release of RubyGems is available: 3.6.2 → 3.6.3!
Run `gem update --system 3.6.3` to update your installation.

me:~$ irb
irb(main):001> RUBY_VERSION
=> "3.4.1"
irb(main):002> RUBY_VERSION < '3.2'
=> false
irb(main):003> 

@radar
Copy link
Collaborator Author

@radar radar commented on 6d0c2ce Jan 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.