Skip to content

Commit

Permalink
Merge pull request #36 from alaz/minor/remove-applebot-as-googlebot
Browse files Browse the repository at this point in the history
Remove  workaround for `Applebot` masquerading as `Googlebot`
  • Loading branch information
alaz authored Sep 27, 2020
2 parents 4c40f81 + db6ca09 commit dee98fc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 37 deletions.
4 changes: 2 additions & 2 deletions legitbot.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
spec.add_dependency 'irrc', '~> 0.2', '>= 0.2.1'
spec.add_development_dependency 'bump', '~> 0.8', '>= 0.8.0'
spec.add_development_dependency 'minitest', '~> 5.1', '>= 5.1.0'
spec.add_development_dependency 'rake', '~> 12.3', '>= 12.3.0'
spec.add_development_dependency 'rubocop', '~> 0.90', '< 0.91'
spec.add_development_dependency 'rake', '~> 13.0', '>= 13.0.0'
spec.add_development_dependency 'rubocop', '~> 0.92.0', '>= 0.92.0'

spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
spec.rdoc_options = ['--charset=UTF-8']
Expand Down
8 changes: 0 additions & 8 deletions lib/legitbot/apple.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,5 @@ class Apple < BotMatch
ip_ranges '17.0.0.0/8'
end

# https://support.apple.com/en-us/HT204683
# rubocop:disable Naming/ClassAndModuleCamelCase
class Apple_as_Google < BotMatch
ip_ranges '17.0.0.0/8'
end
# rubocop:enable Naming/ClassAndModuleCamelCase

rule Legitbot::Apple, %w[Applebot]
rule Legitbot::Apple_as_Google, %w[Googlebot]
end
27 changes: 0 additions & 27 deletions test/apple_as_google_test.rb

This file was deleted.

0 comments on commit dee98fc

Please sign in to comment.