Readme.md in user_agent_parser-2.1.5 vs Readme.md in user_agent_parser-2.2.0
- old
+ new
@@ -1,12 +1,16 @@
# UserAgentParser [![Build Status](https://secure.travis-ci.org/toolmantim/user_agent_parser.png?branch=master)](http://travis-ci.org/toolmantim/user_agent_parser)
UserAgentParser is a simple, comprehensive Ruby gem for parsing user agent strings. It uses [BrowserScope](http://www.browserscope.org/)'s [parsing patterns](https://github.com/tobie/ua-parser).
-## Requirements
+## Supported Rubies
-* Ruby >= 1.8.7
+* Ruby 2.1
+* Ruby 2.0
+* Ruby 1.9.3
+* Ruby 1.9.2
+* JRuby
## Installation
```bash
$ gem install user_agent_parser
@@ -19,10 +23,10 @@
=> true
user_agent = UserAgentParser.parse 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0;)'
=> #<UserAgentParser::UserAgent IE 9.0 (Windows Vista)>
user_agent.to_s
=> "IE 9.0"
-user_agent.name
+user_agent.family
=> "IE"
user_agent.version.to_s
=> "9.0"
user_agent.version.major
=> "9"