README.md in browser-2.0.3 vs README.md in browser-2.1.0

- old
+ new

@@ -1,9 +1,10 @@ # Browser [![Travis-CI](https://travis-ci.org/fnando/browser.png)](https://travis-ci.org/fnando/browser) -[![CodeClimate](https://codeclimate.com/github/fnando/browser.png)](https://codeclimate.com/github/fnando/browser) +[![Code Climate](https://codeclimate.com/github/fnando/browser/badges/gpa.svg)](https://codeclimate.com/github/fnando/browser) +[![Test Coverage](https://codeclimate.com/github/fnando/browser/badges/coverage.svg)](https://codeclimate.com/github/fnando/browser/coverage) [![Gem](https://img.shields.io/gem/v/browser.svg)](https://rubygems.org/gems/browser) [![Gem](https://img.shields.io/gem/dt/browser.svg)](https://rubygems.org/gems/browser) Do some browser detection with Ruby. Includes ActionController integration. @@ -45,10 +46,12 @@ browser.uc_browser? browser.version # major version number browser.webkit? browser.webkit_full_version browser.yandex? +browser.wechat? # detect the MicroMessenger(WeChat) +browser.weibo? # detect Weibo embedded browser (Sina Weibo) # Get bot info browser.bot.name browser.bot.search_engine? browser.bot? @@ -179,10 +182,13 @@ language.name #=> "English/United States" ``` -Result is always sorted in quality order from highest -> lowest. as per the HTTP spec, omitting the quality value implies 1.0. +Result is always sorted in quality order from highest -> lowest. As per the HTTP spec: + +- omitting the quality value implies 1.0. +- quality value equal to zero means that is not accepted by the client. ### Internet Explorer Internet Explorer has a compatibility view mode that allows newer versions (IE8+) to run as an older version. Browser will always return the navigator version, ignoring the compatibility view version, when defined. If you need to get the engine's version, you have to use `Browser#msie_version` and `Browser#msie_full_version`.