device_detector 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -5
- data/CHANGELOG.md +3 -1
- data/README.md +5 -5
- data/Rakefile +16 -12
- data/lib/device_detector.rb +15 -0
- data/lib/device_detector/memory_cache.rb +21 -14
- data/lib/device_detector/os.rb +6 -3
- data/lib/device_detector/version.rb +3 -1
- data/regexes/bots.yml +73 -7
- data/regexes/client/browsers.yml +80 -2
- data/regexes/client/feed_readers.yml +7 -7
- data/regexes/client/libraries.yml +13 -1
- data/regexes/client/mediaplayers.yml +9 -5
- data/regexes/client/mobile_apps.yml +21 -0
- data/regexes/device/mobiles.yml +5616 -402
- data/regexes/device/televisions.yml +1 -1
- data/regexes/oss.yml +71 -13
- data/spec/device_detector/memory_cache_spec.rb +51 -19
- data/spec/device_detector_spec.rb +26 -55
- data/spec/fixtures/client/browser.yml +221 -96
- data/spec/fixtures/client/feed_reader.yml +0 -6
- data/spec/fixtures/client/library.yml +25 -1
- data/spec/fixtures/client/mediaplayer.yml +0 -12
- data/spec/fixtures/client/mobile_app.yml +24 -0
- data/spec/fixtures/detector/bots.yml +168 -3
- data/spec/fixtures/detector/desktop.yml +1422 -1422
- data/spec/fixtures/detector/feature_phone.yml +21 -1
- data/spec/fixtures/detector/feed_reader.yml +18 -5
- data/spec/fixtures/detector/mediaplayer.yml +33 -3
- data/spec/fixtures/detector/mobile_apps.yml +55 -6
- data/spec/fixtures/detector/phablet.yml +924 -164
- data/spec/fixtures/detector/smartphone-1.yml +4654 -4655
- data/spec/fixtures/detector/smartphone-10.yml +12362 -0
- data/spec/fixtures/detector/smartphone-11.yml +7639 -0
- data/spec/fixtures/detector/smartphone-2.yml +4232 -4247
- data/spec/fixtures/detector/smartphone-3.yml +4348 -4237
- data/spec/fixtures/detector/smartphone-4.yml +4110 -4103
- data/spec/fixtures/detector/smartphone-5.yml +5651 -2716
- data/spec/fixtures/detector/smartphone-6.yml +9896 -0
- data/spec/fixtures/detector/smartphone-7.yml +9899 -0
- data/spec/fixtures/detector/smartphone-8.yml +9945 -0
- data/spec/fixtures/detector/smartphone-9.yml +9916 -0
- data/spec/fixtures/detector/smartphone.yml +4114 -4013
- data/spec/fixtures/detector/tablet-1.yml +3857 -3857
- data/spec/fixtures/detector/tablet-2.yml +6681 -1787
- data/spec/fixtures/detector/tablet-3.yml +5134 -0
- data/spec/fixtures/detector/tablet.yml +3383 -3406
- data/spec/fixtures/detector/tv.yml +338 -24
- data/spec/fixtures/detector/unknown.yml +0 -120
- data/spec/fixtures/parser/oss.yml +135 -0
- metadata +17 -3
@@ -55,6 +55,13 @@
|
|
55
55
|
short_name: FED
|
56
56
|
version: "1.9.0.8"
|
57
57
|
platform: x86
|
58
|
+
-
|
59
|
+
user_agent: Fire OS/5.3.6.2 stagefright/1.2 (Linux;Android 5.1.1)
|
60
|
+
os:
|
61
|
+
name: Fire OS
|
62
|
+
short_name: FIR
|
63
|
+
version: 5.3.6.2
|
64
|
+
platform: ""
|
58
65
|
-
|
59
66
|
user_agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:25.0) Gecko/20100101 Firefox/25.0
|
60
67
|
os:
|
@@ -97,6 +104,13 @@
|
|
97
104
|
short_name: HAI
|
98
105
|
version:
|
99
106
|
platform:
|
107
|
+
-
|
108
|
+
user_agent: Mozilla/5.0 (Macintosh; Intel Haiku R1 x86) AppleWebKit/605.1.17 (KHTML, like Gecko) WebPositive/1.2 Version/11.1 Safari/605.1.17
|
109
|
+
os:
|
110
|
+
name: Haiku OS
|
111
|
+
short_name: HAI
|
112
|
+
version: ""
|
113
|
+
platform: ""
|
100
114
|
-
|
101
115
|
user_agent: Mozilla/4.08 (Charon; Inferno)
|
102
116
|
os:
|
@@ -125,6 +139,13 @@
|
|
125
139
|
short_name: KBT
|
126
140
|
version:
|
127
141
|
platform:
|
142
|
+
-
|
143
|
+
user_agent: Mozilla/5.0 (Mobile; LYF/F30C/LYF_F30C-000-09-10-140318; Android; rv:48.0) Gecko/48.0 Firefox/48.0 KAIOS/2.0
|
144
|
+
os:
|
145
|
+
name: KaiOS
|
146
|
+
short_name: KOS
|
147
|
+
version: "2.0"
|
148
|
+
platform: ""
|
128
149
|
-
|
129
150
|
user_agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.1) Gecko/2008072820 Kubuntu/8.04 (hardy) Firefox/3.0.1
|
130
151
|
os:
|
@@ -434,6 +455,13 @@
|
|
434
455
|
short_name: AND
|
435
456
|
version: "2.2.2"
|
436
457
|
platform:
|
458
|
+
-
|
459
|
+
user_agent: Mozilla/5.0 (Linux; Android 9; Pixel XL Build/PPR1.180610.009) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.91 Mobile Safari/537.36
|
460
|
+
os:
|
461
|
+
name: Android
|
462
|
+
short_name: AND
|
463
|
+
version: "9"
|
464
|
+
platform: ""
|
437
465
|
-
|
438
466
|
user_agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile 8.12; MSIEMobile 6.0) acer_F900
|
439
467
|
os:
|
@@ -483,6 +511,55 @@
|
|
483
511
|
short_name: IOS
|
484
512
|
version: "9.3.2"
|
485
513
|
platform:
|
514
|
+
-
|
515
|
+
user_agent: Interflora/22 CFNetwork/808.0.1 Darwin/16.0.0
|
516
|
+
os:
|
517
|
+
name: iOS
|
518
|
+
short_name: IOS
|
519
|
+
version: "10.0"
|
520
|
+
platform: ""
|
521
|
+
-
|
522
|
+
user_agent: MobileSafari/602.1 CFNetwork/808.1.3 Darwin/16.1.0
|
523
|
+
os:
|
524
|
+
name: iOS
|
525
|
+
short_name: IOS
|
526
|
+
version: "10.1"
|
527
|
+
platform: ""
|
528
|
+
-
|
529
|
+
user_agent: MobileSafari/602.1 CFNetwork/808.2.16 Darwin/16.3.0
|
530
|
+
os:
|
531
|
+
name: iOS
|
532
|
+
short_name: IOS
|
533
|
+
version: "10.2"
|
534
|
+
platform: ""
|
535
|
+
-
|
536
|
+
user_agent: MobileSafari/602.1 CFNetwork/811.5.4 Darwin/16.6.0
|
537
|
+
os:
|
538
|
+
name: iOS
|
539
|
+
short_name: IOS
|
540
|
+
version: "10.3"
|
541
|
+
platform: ""
|
542
|
+
-
|
543
|
+
user_agent: MobileSafari/602.1 CFNetwork/808.3 Darwin/16.3.0
|
544
|
+
os:
|
545
|
+
name: iOS
|
546
|
+
short_name: IOS
|
547
|
+
version: "10.3"
|
548
|
+
platform: ""
|
549
|
+
-
|
550
|
+
user_agent: MobileSafari/604.1 CFNetwork/887 Darwin/17.0.0
|
551
|
+
os:
|
552
|
+
name: iOS
|
553
|
+
short_name: IOS
|
554
|
+
version: "11.0"
|
555
|
+
platform: ""
|
556
|
+
-
|
557
|
+
user_agent: MobileSafari/604.1 CFNetwork/889.9 Darwin/17.2.0
|
558
|
+
os:
|
559
|
+
name: iOS
|
560
|
+
short_name: IOS
|
561
|
+
version: "11.1"
|
562
|
+
platform: ""
|
486
563
|
-
|
487
564
|
user_agent: NokiaN73-2/3.0-630.0.2 Series60/3.0 Profile/MIDP-2.0 Configuration/CLDC-1.1
|
488
565
|
os:
|
@@ -833,6 +910,27 @@
|
|
833
910
|
short_name: MAC
|
834
911
|
version: "10.9"
|
835
912
|
platform: "x64"
|
913
|
+
-
|
914
|
+
user_agent: Safari/12602.3.12.0.1 CFNetwork/807.2.14 Darwin/16.3.0 (x86_64)
|
915
|
+
os:
|
916
|
+
name: Mac
|
917
|
+
short_name: MAC
|
918
|
+
version: "10.12"
|
919
|
+
platform: "x64"
|
920
|
+
-
|
921
|
+
user_agent: Safari/12603.3.8 CFNetwork/811.5.4 Darwin/16.7.0 (x86_64)
|
922
|
+
os:
|
923
|
+
name: Mac
|
924
|
+
short_name: MAC
|
925
|
+
version: "10.12"
|
926
|
+
platform: "x64"
|
927
|
+
-
|
928
|
+
user_agent: Safari/13604.1.38.1.6 CFNetwork/887 Darwin/17.0.0 (x86_64)
|
929
|
+
os:
|
930
|
+
name: Mac
|
931
|
+
short_name: MAC
|
932
|
+
version: "10.13"
|
933
|
+
platform: x64
|
836
934
|
-
|
837
935
|
user_agent: Podcasts/2.1.2
|
838
936
|
os:
|
@@ -910,3 +1008,40 @@
|
|
910
1008
|
short_name: IOS
|
911
1009
|
version:
|
912
1010
|
platform:
|
1011
|
+
|
1012
|
+
-
|
1013
|
+
user_agent: TwitterAndroid/7.73.0-release.17 (8900198-r-17) HUAWEI VNS-L53/7.0 (HUAWEI;HUAWEI VNS-L53;HUAWEI;VNS-L53;0;;1;2013)
|
1014
|
+
os:
|
1015
|
+
name: Android
|
1016
|
+
short_name: AND
|
1017
|
+
version: "7.0"
|
1018
|
+
platform:
|
1019
|
+
|
1020
|
+
-
|
1021
|
+
user_agent: TwitterAndroid/7.71.1-release.15 (8900196-r-15) TA-1028/8.0.0 (HMD Global;TA-1028;Nokia;TA-1028_00WW;0;;1;2013)
|
1022
|
+
os:
|
1023
|
+
name: Android
|
1024
|
+
short_name: AND
|
1025
|
+
version: "8.0.0"
|
1026
|
+
platform:
|
1027
|
+
-
|
1028
|
+
user_agent: RSSRadio/9220 (iPad;iOS;12.3.1)
|
1029
|
+
os:
|
1030
|
+
name: iOS
|
1031
|
+
short_name: IOS
|
1032
|
+
version: ""
|
1033
|
+
platform:
|
1034
|
+
-
|
1035
|
+
user_agent: RSSRadio/9252
|
1036
|
+
os:
|
1037
|
+
name: iOS
|
1038
|
+
short_name: IOS
|
1039
|
+
version: ""
|
1040
|
+
platform:
|
1041
|
+
-
|
1042
|
+
user_agent: RSSRadio/
|
1043
|
+
os:
|
1044
|
+
name: iOS
|
1045
|
+
short_name: IOS
|
1046
|
+
version: ""
|
1047
|
+
platform:
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: device_detector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mati Sójka
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-08-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|
@@ -127,13 +127,20 @@ files:
|
|
127
127
|
- spec/fixtures/detector/portable_media_player.yml
|
128
128
|
- spec/fixtures/detector/smart_display.yml
|
129
129
|
- spec/fixtures/detector/smartphone-1.yml
|
130
|
+
- spec/fixtures/detector/smartphone-10.yml
|
131
|
+
- spec/fixtures/detector/smartphone-11.yml
|
130
132
|
- spec/fixtures/detector/smartphone-2.yml
|
131
133
|
- spec/fixtures/detector/smartphone-3.yml
|
132
134
|
- spec/fixtures/detector/smartphone-4.yml
|
133
135
|
- spec/fixtures/detector/smartphone-5.yml
|
136
|
+
- spec/fixtures/detector/smartphone-6.yml
|
137
|
+
- spec/fixtures/detector/smartphone-7.yml
|
138
|
+
- spec/fixtures/detector/smartphone-8.yml
|
139
|
+
- spec/fixtures/detector/smartphone-9.yml
|
134
140
|
- spec/fixtures/detector/smartphone.yml
|
135
141
|
- spec/fixtures/detector/tablet-1.yml
|
136
142
|
- spec/fixtures/detector/tablet-2.yml
|
143
|
+
- spec/fixtures/detector/tablet-3.yml
|
137
144
|
- spec/fixtures/detector/tablet.yml
|
138
145
|
- spec/fixtures/detector/tv.yml
|
139
146
|
- spec/fixtures/detector/unknown.yml
|
@@ -163,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
170
|
version: '0'
|
164
171
|
requirements: []
|
165
172
|
rubyforge_project:
|
166
|
-
rubygems_version: 2.
|
173
|
+
rubygems_version: 2.5.1
|
167
174
|
signing_key:
|
168
175
|
specification_version: 4
|
169
176
|
summary: Precise and fast user agent parser and device detector
|
@@ -198,13 +205,20 @@ test_files:
|
|
198
205
|
- spec/fixtures/detector/portable_media_player.yml
|
199
206
|
- spec/fixtures/detector/smart_display.yml
|
200
207
|
- spec/fixtures/detector/smartphone-1.yml
|
208
|
+
- spec/fixtures/detector/smartphone-10.yml
|
209
|
+
- spec/fixtures/detector/smartphone-11.yml
|
201
210
|
- spec/fixtures/detector/smartphone-2.yml
|
202
211
|
- spec/fixtures/detector/smartphone-3.yml
|
203
212
|
- spec/fixtures/detector/smartphone-4.yml
|
204
213
|
- spec/fixtures/detector/smartphone-5.yml
|
214
|
+
- spec/fixtures/detector/smartphone-6.yml
|
215
|
+
- spec/fixtures/detector/smartphone-7.yml
|
216
|
+
- spec/fixtures/detector/smartphone-8.yml
|
217
|
+
- spec/fixtures/detector/smartphone-9.yml
|
205
218
|
- spec/fixtures/detector/smartphone.yml
|
206
219
|
- spec/fixtures/detector/tablet-1.yml
|
207
220
|
- spec/fixtures/detector/tablet-2.yml
|
221
|
+
- spec/fixtures/detector/tablet-3.yml
|
208
222
|
- spec/fixtures/detector/tablet.yml
|
209
223
|
- spec/fixtures/detector/tv.yml
|
210
224
|
- spec/fixtures/detector/unknown.yml
|