forked from gshutler/useragent
An unofficial fork to add bug fixes for use in Stella.
License
delano/useragent
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
UserAgent ========= UserAgent is a Ruby library that parses and compares HTTP User Agents. Example ======= Browser = Struct.new(:browser, :version) SupportedBrowsers = [ Browser.new("Safari", "3.1.1"), Browser.new("Firefox", "2.0.0.14"), Browser.new("Internet Explorer", "7.0") ] user_agent = UserAgent.parse(request.user_agent) SupportedBrowsers.detect { |browser| user_agent >= browser } Copyright (c) 2008 Joshua Peek, released under the MIT license
About
An unofficial fork to add bug fixes for use in Stella.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Ruby 100.0%