Sha256: a31d3fd1f72139627240f2654e53af1c08df52434a7b1755465a19ac89c7ea2a

Contents?: true

Size: 506 Bytes

Versions: 6

Compression:

Stored size: 506 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, **args)
    Parser.new(**args).parse(user_agent_string)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
user_agent_parser-2.18.0 lib/user_agent_parser.rb
user_agent_parser-2.17.0 lib/user_agent_parser.rb
user_agent_parser-2.16.0 lib/user_agent_parser.rb
user_agent_parser-2.15.0 lib/user_agent_parser.rb
user_agent_parser-2.14.0 lib/user_agent_parser.rb
user_agent_parser-2.13.0 lib/user_agent_parser.rb