Project

ua-utils

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Utility for parsing and handling user-agent strings.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
 Project Readme

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