Skip to content
This repository has been archived by the owner on Dec 26, 2021. It is now read-only.

HaraldWalker/ua-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UA-UTILS

Utilities to parse user-agent strings.

First implementation is mainly focusing on most common operating systems and device types, so that content can be optimized.

Ruby

Usage

Rails

In your Gemfile:

gem 'ua-utils'

bundle install and restart your server to make the files available.

Example

user_agent = UaUtils::UserAgent.new(user_agent_string)
or
os = UaUtils::OperatingSystem.new(user_agent_string)

Operating systems

Following operating systems can be detected:
windows, windows phone, mac os x, iOS, android, bada, meego, symbian

Devices

Following device types can be detected:
desktop, tablet, mobile, tv, bot

Documentation

http://rubydoc.info/github/HaraldWalker/ua-utils/frames/file/README.md

About

Utilities to parse user-agent strings.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages