Skip to content

Commit

Permalink
🛠 update gemspec and .ruby-version (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
alaz authored Jun 25, 2024
1 parent 391fa20 commit d155d8b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

strategy:
matrix:
ruby: [3.0.6]
ruby: [3.1]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.6
3.1.6
6 changes: 3 additions & 3 deletions legitbot.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ Gem::Specification.new do |spec|
spec.author = 'Alexander Azarov'
spec.email = '[email protected]'
spec.homepage = 'https://github.com/alaz/legitbot'
spec.summary = 'Validate requests from Web crawlers: impersonating or not?'
spec.description = 'Does Web request come from a real search engine or from an impersonating agent?'
spec.summary = 'Web crawler request validation'
spec.description = 'Is this Web request from a real search engine or from an impersonating agent?'
spec.metadata = {
'rubygems_mfa_required' => 'true'
}

spec.required_ruby_version = '>= 2.6.0'
spec.required_ruby_version = '>= 3.0.0'
spec.add_dependency 'fast_interval_tree', '~> 0.2', '>= 0.2.2'
spec.add_dependency 'irrc', '~> 0.2', '>= 0.2.1'

Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/custom/ip_ranges.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class IpRanges < Base # :nodoc:
extend AutoCorrector

MSG = 'Outdated list of IP ranges compared to %<url>s'
REGEXP = /^\s*#\s*@fetch:(?<param>[a-z0-9_]+)\s+(?<arg>.*)?/.freeze
REGEXP = /^\s*#\s*@fetch:(?<param>[a-z0-9_]+)\s+(?<arg>.*)?/

def_node_matcher :on_ip_ranges, <<~PATTERN
(send nil? :ip_ranges $(array str+))
Expand Down

0 comments on commit d155d8b

Please sign in to comment.