Sha256: f19264114fe952a0743a1dc8fd22866e22c328aa03a2b82d12f24f45b0cc4ff9

Contents?: true

Size: 207 Bytes

Versions: 15

Compression:

Stored size: 207 Bytes

Contents

# frozen_string_literal: true

module Browser
  class Bot
    class KnownBotsMatcher
      def self.call(ua, _browser)
        Browser::Bot.bots.any? {|key, _| ua.include?(key) }
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
browser-6.2.0 lib/browser/bot/known_bots_matcher.rb
browser-6.1.0 lib/browser/bot/known_bots_matcher.rb
browser-6.0.0 lib/browser/bot/known_bots_matcher.rb
browser-5.3.1 lib/browser/bot/known_bots_matcher.rb
browser-5.3.0 lib/browser/bot/known_bots_matcher.rb
browser-5.2.0 lib/browser/bot/known_bots_matcher.rb
browser-5.1.0 lib/browser/bot/known_bots_matcher.rb
browser-5.0.0 lib/browser/bot/known_bots_matcher.rb
browser-4.2.0 lib/browser/bot/known_bots_matcher.rb
browser-4.1.0 lib/browser/bot/known_bots_matcher.rb
browser-4.0.0 lib/browser/bot/known_bots_matcher.rb
browser-3.0.3 lib/browser/bot/known_bots_matcher.rb
browser-3.0.2 lib/browser/bot/known_bots_matcher.rb
browser-3.0.1 lib/browser/bot/known_bots_matcher.rb
browser-3.0.0 lib/browser/bot/known_bots_matcher.rb