Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed master to main in docs #556

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -112,7 +112,7 @@
(`Browser::Bot.detect_empty_ua!` and `Browser::Bot.detect_empty_ua?`).
- [BREAKING CHANGE] Bot detection is now more aggressive by default. It matches empty
user agents, anything that matches `crawl|fetch|search|monitoring|spider|bot`,
and anything listed under https://github.com/fnando/browser/blob/master/bots.yml.
and anything listed under https://github.com/fnando/browser/blob/main/bots.yml.
- Add Jaunt to the bot list.

## 2.7.1
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -150,11 +150,11 @@ browser.mobile? #=> false
### What's being detected?

- For a list of platform detections, check
[lib/browser/platform.rb](https://github.com/fnando/browser/blob/master/lib/browser/platform.rb)
[lib/browser/platform.rb](https://github.com/fnando/browser/blob/main/lib/browser/platform.rb)
- For a list of device detections, check
[lib/browser/device.rb](https://github.com/fnando/browser/blob/master/lib/browser/device.rb)
[lib/browser/device.rb](https://github.com/fnando/browser/blob/main/lib/browser/device.rb)
- For a list of bot detections, check
[bots.yml](https://github.com/fnando/browser/blob/master/bots.yml)
[bots.yml](https://github.com/fnando/browser/blob/main/bots.yml)

### Detecting modern browsers

@@ -298,7 +298,7 @@ following requirements will be considered a bot.
- Empty user agent string
- User agent that matches `/crawl|fetch|search|monitoring|spider|bot/`
- Any known bot listed under
[bots.yml](https://github.com/fnando/browser/blob/master/bots.yml)
[bots.yml](https://github.com/fnando/browser/blob/main/bots.yml)

To add custom matchers, you can add a callable object to
`Browser::Bot.matchers`. The following example matches everything that has a