# ua-utils **Repository Path**: mirrors_HaraldWalker/ua-utils ## Basic Information - **Project Name**: ua-utils - **Description**: Utilities to parse user-agent strings. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-07-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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](https://github.com/HaraldWalker/ua-utils/actions/workflows/ruby.yml/badge.svg)](https://github.com/HaraldWalker/ua-utils/actions/workflows/ruby.yml) ## Usage ### Rails In your Gemfile: ```ruby 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