README.md in woothee-0.4.2 vs README.md in woothee-1.0.0
- old
+ new
@@ -25,11 +25,11 @@
### Parsing user-agent
```ruby
require 'woothee'
Woothee.parse("Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0)")
- # => {:name=>"Internet Explorer", :category=>:pc, :os=>"Windows 7", :version=>"8.0", :vendor=>"Microsoft"}
+ # => {:name=>"Internet Explorer", :category=>:pc, :os=>"Windows 7", :version=>"8.0", :vendor=>"Microsoft", :os_version=>"NT 6.1"}
```
Parse user-agent string and returns Hash instance with keys `:name`, `:category`, `:os`, `:version` and `:vendor`.
For unknown user-agent (or partially failed to parse), result Hash instance may have value 'UNKNOWN'.
@@ -43,9 +43,11 @@
* `:os`
* ex: 'Windows 7', 'Mac OSX', 'iPhone', 'iPad', 'Android'
* This field used to indicate cellar phone carrier for category 'mobilephone'
* `:vendor`
* optional field, shows browser vendor
+* `:os_version`
+ * optional field, shows version of operating systems
### Finding crawlers (almost all, not all) in fast
```ruby
require 'woothee'