rack-simple_user_agent 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rack/simple_user_agent/detector.rb +5 -5
- data/lib/rack/simple_user_agent/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3309a48be2e5b525ef4c973d4e869a68eef979f0
|
|
4
|
+
data.tar.gz: 337689d03919bf637f7aa9656096008740154ac4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 80142413c71166bee2d37b6fd6309a3fb6d87e7afb986240841332be4eb7173d8907bd1833f2f63b2d75314698b35d98410596b3cf262fcdfa7791d1ef291048
|
|
7
|
+
data.tar.gz: 9622528fbe51c5e03f03ab82123ebde1d2da8fe4f3bc92b71d0f9425068f62ca82ba6400968bb5c2dbaff6f4fa74f59775927decb4fb10dba1597379a7808cc1
|
|
@@ -6,15 +6,15 @@ module Rack
|
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
def from_iphone?
|
|
9
|
-
user_agent.include?("iPhone")
|
|
9
|
+
user_agent.to_s.include?("iPhone")
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
def from_ipad?
|
|
13
|
-
user_agent.include?("iPad")
|
|
13
|
+
user_agent.to_s.include?("iPad")
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def from_ipod?
|
|
17
|
-
user_agent.include?("iPod")
|
|
17
|
+
user_agent.to_s.include?("iPod")
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
def from_ios?
|
|
@@ -22,7 +22,7 @@ module Rack
|
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
def from_android?
|
|
25
|
-
user_agent.include?("Android")
|
|
25
|
+
user_agent.to_s.include?("Android")
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
def from_android_tablet?
|
|
@@ -34,7 +34,7 @@ module Rack
|
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
def from_windows_phone?
|
|
37
|
-
user_agent.include?("Windows Phone OS")
|
|
37
|
+
user_agent.to_s.include?("Windows Phone OS")
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
private
|