Skip to content

Commit

Permalink
Bump Rubocop to Ruby 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed Dec 14, 2023
1 parent d418a4b commit 0c05fd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require:
- rubocop-rspec

AllCops:
TargetRubyVersion: 2.5
TargetRubyVersion: 2.6
Exclude:
# Exclude .gemspec files because they are generally auto-generated
- '*.gemspec'
Expand Down
4 changes: 2 additions & 2 deletions lib/whois/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def load_json(file)
options = if settings.empty?
EMPTY_HASH
else
settings.map { |k, v| [k.to_sym, v.is_a?(String) ? intern_string(v) : v] }.to_h.freeze
settings.to_h { |k, v| [k.to_sym, v.is_a?(String) ? intern_string(v) : v] }.freeze
end
define(type, allocation, host, options)
end
Expand Down Expand Up @@ -303,7 +303,7 @@ def find_for_domain(string)
index = token.index(".")
break if index.nil?

token = token[(index + 1)..-1]
token = token[(index + 1)..]
end
end

Expand Down

0 comments on commit 0c05fd8

Please sign in to comment.