Sha256: de7309304ce97998a5efffbb107654d8a2808c9c3f239b23f77f2d9bff84293d

Contents?: true

Size: 483 Bytes

Versions: 9

Compression:

Stored size: 483 Bytes

Contents

# frozen_string_literal: true

require 'ipaddr'

module Legitbot # :nodoc:
  # https://support.apple.com/en-us/HT204683
  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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
legitbot-1.1.1 lib/legitbot/apple.rb
legitbot-1.1.0 lib/legitbot/apple.rb
legitbot-1.0.2 lib/legitbot/apple.rb
legitbot-1.0.1 lib/legitbot/apple.rb
legitbot-1.0.0 lib/legitbot/apple.rb
legitbot-0.4.3 lib/legitbot/apple.rb
legitbot-0.4.2 lib/legitbot/apple.rb
legitbot-0.4.1 lib/legitbot/apple.rb
legitbot-0.4.0 lib/legitbot/apple.rb