Skip to content

Commit

Permalink
Bump required ruby version to v2.4.0
Browse files Browse the repository at this point in the history
a9137ac 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.
  • Loading branch information
cgunther committed Mar 29, 2021
1 parent c00a57b commit 0c166f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion listen.gemspec
Expand Up @@ -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'
Expand Down

0 comments on commit 0c166f5

Please sign in to comment.