Skip to content

Commit b3375df

Browse files
Update rubocop requirement from ~> 1.82.0 to ~> 1.84.2 (#677)
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](rubocop/rubocop@v1.82.0...v1.84.2) --- updated-dependencies: - dependency-name: rubocop dependency-version: 1.84.2 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
1 parent bb5457a commit b3375df

7 files changed

Lines changed: 12 additions & 7 deletions

File tree

.github/workflows/tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ jobs:
1111
strategy:
1212
matrix:
1313
ruby-version:
14-
- "3.0"
15-
- "3.1"
1614
- "3.2"
1715
- "3.3"
1816
- "3.4"

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
This project uses [Semantic Versioning 2.0.0](http://semver.org/).
44

55

6+
## Unreleased
7+
8+
### Changed
9+
10+
- Minimum Ruby version is 3.2
11+
12+
613
## Release 6.0.3
714

815
### Changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ source "https://rubygems.org"
44

55
gemspec
66

7-
gem "rubocop", "~> 1.82.0", require: false
7+
gem "rubocop", "~> 1.84.2", require: false
88
gem "rubocop-rspec", "~> 3.9.0", require: false

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ This repository contains the core whois library, that includes the WHOIS client,
3333

3434
## Requirements
3535

36-
- Ruby >= 3.0
36+
- Ruby >= 3.2
3737

3838
For older versions of Ruby, see the [CHANGELOG](CHANGELOG.md).
3939

lib/whois/server/adapters/afilias.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def request(string)
4141
def extract_referral(response)
4242
return unless (match = response.match(/Registrar WHOIS Server:(.+?)$/))
4343

44-
server = match[match.size - 1].strip
44+
server = match[-1].strip
4545
server.empty? ? nil : server
4646
end
4747
end

lib/whois/server/adapters/verisign.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def request(string)
4141
def extract_referral(response)
4242
return unless (match = response.match(/Registrar WHOIS Server:(.+?)$/))
4343

44-
server = match[match.size - 1].strip
44+
server = match[-1].strip
4545
server.empty? ? nil : server
4646
end
4747
end

whois.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
1212
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."
1313
s.license = "MIT"
1414

15-
s.required_ruby_version = ">= 3.0"
15+
s.required_ruby_version = ">= 3.2"
1616

1717
s.require_paths = %w( lib )
1818
s.executables =%w( whoisrb )

0 commit comments

Comments
 (0)