Skip to content

Commit

Permalink
iPod should be one of smartphone
Browse files Browse the repository at this point in the history
  • Loading branch information
toshimaru committed Sep 24, 2016
1 parent 09c3561 commit fcaa608
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rack/simple_user_agent/detectors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def from_smartdevice?
end

def from_smartphone?
from_iphone? || from_android_mobile? || from_windows_phone?
from_iphone? || from_ipod? || from_android_mobile? || from_windows_phone?
end

def from_tablet?
Expand Down
2 changes: 1 addition & 1 deletion test/rack/detectors/ios_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class IosTest < BaseTest
ipod: {
"Mozilla/5.0 (iPod touch; CPU iPhone OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53" => {
from_smartdevice?: true,
from_smartphone?: false,
from_smartphone?: true,
from_tablet?: false,
from_ios?: true,
from_iphone?: false,
Expand Down

0 comments on commit fcaa608

Please sign in to comment.