From 0c166f53024b8832c14d93b28a15dad8bf41e7b5 Mon Sep 17 00:00:00 2001 From: Chris Gunther Date: Mon, 29 Mar 2021 17:05:04 -0400 Subject: [PATCH] Bump required ruby version to v2.4.0 a9137acc introduced a use of Hash#transform_values in Listen::Record#dir_entries, however that was only added to Ruby in [v2.4](https://github.com/ruby/ruby/blob/v2_4_0/NEWS#core-classes-updates-outstanding-ones-only-). This can lead to runtime errors when run on an older version of Ruby, such as 2.2.7, which the gemspec previously implied was supported. --- listen.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/listen.gemspec b/listen.gemspec index ed1ec0ce..ba62b76c 100644 --- a/listen.gemspec +++ b/listen.gemspec @@ -32,7 +32,7 @@ Gem::Specification.new do |gem| # rubocop:disable Metrics/BlockLength gem.executable = 'listen' gem.require_path = 'lib' - gem.required_ruby_version = '>= 2.2.7' # rubocop:disable Gemspec/RequiredRubyVersion + gem.required_ruby_version = '>= 2.4.0' # rubocop:disable Gemspec/RequiredRubyVersion gem.add_dependency 'rb-fsevent', '~> 0.10', '>= 0.10.3' gem.add_dependency 'rb-inotify', '~> 0.9', '>= 0.9.10'