Sha256: 74783e67d51150b170b22fc381fd8ea4223029a1c5304d71e83b7676f7fd6a5f

Contents?: true

Size: 481 Bytes

Versions: 8

Compression:

Stored size: 481 Bytes

Contents

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/ua-parser/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

8 entries across 8 versions & 1 rubygems

Version Path
user_agent_parser-2.2.0 lib/user_agent_parser.rb
user_agent_parser-2.1.5 lib/user_agent_parser.rb
user_agent_parser-2.1.4 lib/user_agent_parser.rb
user_agent_parser-2.1.3 lib/user_agent_parser.rb
user_agent_parser-2.1.2 lib/user_agent_parser.rb
user_agent_parser-2.1.1 lib/user_agent_parser.rb
user_agent_parser-2.1.0 lib/user_agent_parser.rb
user_agent_parser-2.0.0 lib/user_agent_parser.rb