Skip to content

Commit

Permalink
Ensure Duck Duck Go browser is not detected as a bot. (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
fnando committed Jul 8, 2020
1 parent daf2181 commit e28c9a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- Add Maxthon detection
- Add Google Search App detection
- Add Huawei Browser detection
- Fix Duck Duck Go browser that was being recognized as a bot.

## 4.2.0

Expand Down
2 changes: 1 addition & 1 deletion bots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ domain re-animator bot: Domain Re-Animator Bot
domainsbot: DomainsBot
domaintunocrawler: DomainTuno
dotbot: Dot Bot
duckduck: Duck Duck Go
duckduckbot: Duck Duck Go
elb-healthchecker: AWS ELB HealthChecker
embedly: Embedly
eoaagent: EOAAgent
Expand Down
2 changes: 2 additions & 0 deletions test/unit/duck_duck_go_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class DuckDuckGoTest < Minitest::Test
refute browser.safari?
refute browser.chrome?
assert browser.webkit?
refute browser.bot?
assert_equal "DuckDuckGo", browser.name
assert_equal :duckduckgo, browser.id
end
Expand All @@ -18,6 +19,7 @@ class DuckDuckGoTest < Minitest::Test
assert browser.duck_duck_go?
refute browser.safari?
refute browser.chrome?
refute browser.bot?
assert_equal "DuckDuckGo", browser.name
assert_equal :duckduckgo, browser.id
end
Expand Down

0 comments on commit e28c9a1

Please sign in to comment.