Sha256: 85a2d6c3cac6ee860097349ce433f9dafa3efca3f3dcde691f0e5b52bd8fcc9e

Contents?: true

Size: 513 Bytes

Versions: 13

Compression:

Stored size: 513 Bytes

Contents

# frozen_string_literal: true

require 'user_agent_parser/parser'
require 'user_agent_parser/user_agent'
require 'user_agent_parser/version'
require 'user_agent_parser/operating_system'
require 'user_agent_parser/device'

module UserAgentParser
  DefaultPatternsPath = File.join(File.dirname(__FILE__), '../vendor/uap-core/regexes.yaml')

  # Parse the given +user_agent_string+, returning a +UserAgent+
  def self.parse(user_agent_string, options = {})
    Parser.new(options).parse(user_agent_string)
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
user_agent_parser-2.12.0 lib/user_agent_parser.rb
user_agent_parser-2.11.0 lib/user_agent_parser.rb
user_agent_parser-2.10.0 lib/user_agent_parser.rb
user_agent_parser-2.9.0 lib/user_agent_parser.rb
user_agent_parser-2.8.0 lib/user_agent_parser.rb
user_agent_parser-2.7.0 lib/user_agent_parser.rb
user_agent_parser_livelink-2.6.0 lib/user_agent_parser.rb
user_agent_parser-2.6.0 lib/user_agent_parser.rb
user_agent_parser-2.5.3 lib/user_agent_parser.rb
user_agent_parser-2.5.2 lib/user_agent_parser.rb
user_agent_parser-2.5.1 lib/user_agent_parser.rb
user_agent_parser-2.5.0 lib/user_agent_parser.rb
user_agent_parser-2.4.1 lib/user_agent_parser.rb