README.md in browser-0.7.2 vs README.md in browser-0.8.0
- old
+ new
@@ -42,10 +42,11 @@
browser.search_engine?
browser.phantom_js?
browser.quicktime?
browser.core_media?
browser.silk?
+browser.known? # has the browser been successfully detected?
browser.meta # an array with several attributes
browser.to_s # the meta info joined by space
```
See the [tests](https://github.com/fnando/browser/blob/master/test/browser_spec.rb) and [implementation](https://github.com/fnando/browser/blob/master/lib/browser.rb) for more examples.
@@ -116,36 +117,9 @@
Rails.configuration.middleware.use Browser::Middleware do
next if browser.search_engine?
redirect_to upgrade_path(browser: "oldie") if browser.ie? && !browser.modern?
redirect_to upgrade_path(browser: "oldfx") if browser.firefox? && !browser.modern?
end
-```
-
-## Issues
-
-If you want to request a feature or report a bug, please use the following template.
-
-```markdown
-## Description
-
-[Add feature/bug description here]
-
-## How to reproduce
-
-[Add steps on how to reproduce this issue]
-
-## What do you expect
-
-[Describe what do you expect to happen]
-
-## What happened instead
-
-[Describe the actual results]
-
-## Environment
-
-- User agent: [Get the UA - <http://user-agent.herokuapp.com>]
-- Gem version: [Add browser gem version here]
```
## Maintainer
* Nando Vieira - http://nandovieira.com.br