From bf8dd491055a61e36ecfcdaa2fd88c3a41b777f5 Mon Sep 17 00:00:00 2001 From: meyric Date: Fri, 28 Apr 2023 10:59:22 +0100 Subject: [PATCH] Use Ruby 2.7.8 Whilst we have updated to Ruby 3.2.2 it is not a hard requirement. As Rails supports Ruby 2.7.x: https://guides.rubyonrails.org/getting_started.html#installing-ruby We should remain compatible. 2.7.8 is the last of the 2.x branch: https://www.ruby-lang.org/en/news/2023/03/30/ruby-2-7-8-released/ --- .ruby-version | 2 +- mail-notify.gemspec | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.ruby-version b/.ruby-version index be94e6f..6a81b4c 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.2.2 +2.7.8 diff --git a/mail-notify.gemspec b/mail-notify.gemspec index 1261bdf..695b156 100644 --- a/mail-notify.gemspec +++ b/mail-notify.gemspec @@ -14,6 +14,8 @@ Gem::Specification.new do |spec| spec.homepage = "https://github.com/dxw/mail-notify" spec.license = "MIT" + spec.required_ruby_version = ">= 2.7.8" + # Specify which files should be added to the gem when it is released. # The `git ls-files -z` loads the files in the RubyGem that have been added into git. spec.files = Dir.chdir(File.expand_path(__dir__)) do