diff --git a/.rubocop.yml b/.rubocop.yml index cfc17390b..2c4033755 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -6,7 +6,7 @@ require: - rubocop-rspec AllCops: - TargetRubyVersion: 2.6 + TargetRubyVersion: 3.0 Exclude: # Exclude .gemspec files because they are generally auto-generated - '*.gemspec' diff --git a/README.md b/README.md index 9d49d1250..152bab568 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ This repository contains the core whois library, that includes the WHOIS client, ## Requirements -- Ruby >= 2.4 +- Ruby >= 3.0 For older versions of Ruby, see the [CHANGELOG](CHANGELOG.md). diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index cd19646e0..9b5bc7e91 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -12,7 +12,7 @@ # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. -Dir[File.join(SPEC_ROOT, "support/**/*.rb")].sort.each { |f| require f } +Dir[File.join(SPEC_ROOT, "support/**/*.rb")].each { |f| require f } RSpec.configure do |config| config.mock_with :rspec diff --git a/whois.gemspec b/whois.gemspec index 1e251e771..d077604a2 100644 --- a/whois.gemspec +++ b/whois.gemspec @@ -12,7 +12,7 @@ Gem::Specification.new do |s| s.description = "Whois is an intelligent WHOIS client and parser written in pure Ruby. It can query registry data for IPv4, IPv6 and top level domains, and parse the responses into easy-to-use Ruby objects via the whois-parser library." s.license = "MIT" - s.required_ruby_version = ">= 2.4" + s.required_ruby_version = ">= 3.0" s.require_paths = %w( lib ) s.executables =%w( whoisrb )