Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🛠 update gemspec and .ruby-version #140

Merged
merged 3 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading