README.md in browser-5.1.0 vs README.md in browser-5.2.0

- old
+ new

@@ -1,10 +1,9 @@ # Browser -[![Travis-CI](https://travis-ci.org/fnando/browser.svg)](https://travis-ci.org/fnando/browser) +[![Tests](https://github.com/fnando/browser/workflows/Tests/badge.svg)](https://github.com/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. @@ -129,10 +128,11 @@ browser.platform.windows_vista? browser.platform.windows_wow64? browser.platform.windows_x64? browser.platform.windows_x64_inclusive? browser.platform.windows_xp? +browser.platform.kai_os? ``` ### Aliases To add aliases like `mobile?` and `tablet?` to the base object (e.g @@ -303,10 +303,10 @@ To add custom matchers, you can add a callable object to `Browser::Bot.matchers`. The following example matches everything that has a `externalhit` substring on it. The bot name will always be `General Bot`. ```ruby -Browser::Bot.matchers << ->(ua, _browser) { ua =~ /externalhit/i } +Browser::Bot.matchers << ->(ua, _browser) { ua.match?(/externalhit/i) } ``` To clear all matchers, including the ones that are bundled, use `Browser::Bot.matchers.clear`. You can re-add built-in matchers by doing the following: