Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
User agent string parser for Ruby. [UNMAINTAINED - Now using and working on https://github.com/toolmantim/user_agent_parser]
Ruby
tree: c703a2d3d7

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
LICENSE
README.rdoc
Rakefile
user_agent.gemspec

README.rdoc

User Agent

User agent parser.

Example

agent = UserAgent.new 'Mozilla/5.0 (Windows; U; Windows NT 6.0; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9'
agent.name    # => :Safari
agent.version # => '4.0.3'
agent.engine  # => :webkit
agent.os      # => :'Windows Vista'
agent.engine_version  # => '531.9'

Supported Agents

  • Safari

  • Chrome

  • Opera

  • IE

  • Konqueror

  • PS3

  • PSP

  • Wii

Something went wrong with that request. Please try again.