device_detector 1.0.2 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +49 -0
- data/.ruby-version +1 -0
- data/.travis.yml +5 -6
- data/CHANGELOG.md +11 -0
- data/README.md +8 -7
- data/Rakefile +7 -4
- data/device_detector.gemspec +1 -0
- data/lib/device_detector/bot.rb +2 -2
- data/lib/device_detector/browser.rb +364 -0
- data/lib/device_detector/client.rb +11 -2
- data/lib/device_detector/device.rb +1168 -22
- data/lib/device_detector/memory_cache.rb +5 -5
- data/lib/device_detector/metadata_extractor.rb +7 -8
- data/lib/device_detector/model_extractor.rb +3 -3
- data/lib/device_detector/name_extractor.rb +2 -2
- data/lib/device_detector/os.rb +148 -116
- data/lib/device_detector/parser.rb +22 -9
- data/lib/device_detector/version.rb +1 -1
- data/lib/device_detector/version_extractor.rb +10 -2
- data/lib/device_detector.rb +73 -40
- data/regexes/bots.yml +909 -59
- data/regexes/client/browser_engine.yml +14 -2
- data/regexes/client/browsers.yml +1356 -241
- data/regexes/client/feed_readers.yml +10 -10
- data/regexes/client/libraries.yml +75 -1
- data/regexes/client/mediaplayers.yml +39 -3
- data/regexes/client/mobile_apps.yml +524 -45
- data/regexes/client/pim.yml +55 -2
- data/regexes/device/cameras.yml +6 -6
- data/regexes/device/car_browsers.yml +23 -3
- data/regexes/device/consoles.yml +9 -3
- data/regexes/device/mobiles.yml +16903 -3199
- data/regexes/device/notebooks.yml +114 -0
- data/regexes/device/portable_media_player.yml +20 -3
- data/regexes/device/shell_tv.yml +117 -0
- data/regexes/device/televisions.yml +440 -35
- data/regexes/oss.yml +603 -165
- data/regexes/vendorfragments.yml +6 -2
- data/spec/device_detector/concrete_user_agent_spec.rb +38 -51
- data/spec/device_detector/detector_fixtures_spec.rb +36 -37
- data/spec/device_detector/device_spec.rb +52 -56
- data/spec/device_detector/memory_cache_spec.rb +19 -19
- data/spec/device_detector/model_extractor_spec.rb +3 -3
- data/spec/device_detector/version_extractor_spec.rb +5 -6
- data/spec/device_detector_spec.rb +26 -26
- data/spec/fixtures/client/browser.yml +2617 -555
- data/spec/fixtures/client/feed_reader.yml +34 -52
- data/spec/fixtures/client/library.yml +129 -38
- data/spec/fixtures/client/mediaplayer.yml +59 -28
- data/spec/fixtures/client/mobile_app.yml +589 -20
- data/spec/fixtures/client/pim.yml +92 -19
- data/spec/fixtures/detector/bots.yml +1749 -458
- data/spec/fixtures/detector/camera.yml +30 -24
- data/spec/fixtures/detector/car_browser.yml +199 -3
- data/spec/fixtures/detector/console.yml +107 -45
- data/spec/fixtures/detector/desktop.yml +3216 -758
- data/spec/fixtures/detector/feature_phone.yml +935 -181
- data/spec/fixtures/detector/feed_reader.yml +181 -193
- data/spec/fixtures/detector/mediaplayer.yml +157 -60
- data/spec/fixtures/detector/mobile_apps.yml +914 -136
- data/spec/fixtures/detector/peripheral.yml +271 -0
- data/spec/fixtures/detector/phablet.yml +5593 -1533
- data/spec/fixtures/detector/portable_media_player.yml +398 -32
- data/spec/fixtures/detector/smart_display.yml +183 -9
- data/spec/fixtures/detector/smart_speaker.yml +60 -0
- data/spec/fixtures/detector/smartphone-1.yml +3930 -4239
- data/spec/fixtures/detector/smartphone-10.yml +3985 -7366
- data/spec/fixtures/detector/smartphone-11.yml +5083 -3784
- data/spec/fixtures/detector/smartphone-12.yml +8989 -0
- data/spec/fixtures/detector/smartphone-13.yml +9412 -0
- data/spec/fixtures/detector/smartphone-14.yml +9477 -0
- data/spec/fixtures/detector/smartphone-15.yml +9281 -0
- data/spec/fixtures/detector/smartphone-16.yml +9678 -0
- data/spec/fixtures/detector/smartphone-17.yml +9965 -0
- data/spec/fixtures/detector/smartphone-18.yml +9806 -0
- data/spec/fixtures/detector/smartphone-19.yml +9965 -0
- data/spec/fixtures/detector/smartphone-2.yml +6670 -4375
- data/spec/fixtures/detector/smartphone-20.yml +9710 -0
- data/spec/fixtures/detector/smartphone-21.yml +8693 -0
- data/spec/fixtures/detector/smartphone-22.yml +10178 -0
- data/spec/fixtures/detector/smartphone-23.yml +9453 -0
- data/spec/fixtures/detector/smartphone-24.yml +9843 -0
- data/spec/fixtures/detector/smartphone-25.yml +9703 -0
- data/spec/fixtures/detector/smartphone-26.yml +10007 -0
- data/spec/fixtures/detector/smartphone-27.yml +4927 -0
- data/spec/fixtures/detector/smartphone-3.yml +4656 -4711
- data/spec/fixtures/detector/smartphone-4.yml +3518 -4479
- data/spec/fixtures/detector/smartphone-5.yml +3805 -4803
- data/spec/fixtures/detector/smartphone-6.yml +3745 -4693
- data/spec/fixtures/detector/smartphone-7.yml +3721 -4645
- data/spec/fixtures/detector/smartphone-8.yml +4564 -4699
- data/spec/fixtures/detector/smartphone-9.yml +3897 -4888
- data/spec/fixtures/detector/smartphone.yml +3154 -4141
- data/spec/fixtures/detector/tablet-1.yml +4742 -4576
- data/spec/fixtures/detector/tablet-2.yml +3803 -4731
- data/spec/fixtures/detector/tablet-3.yml +6210 -2309
- data/spec/fixtures/detector/tablet-4.yml +9062 -0
- data/spec/fixtures/detector/tablet-5.yml +9273 -0
- data/spec/fixtures/detector/tablet-6.yml +4588 -0
- data/spec/fixtures/detector/tablet.yml +3629 -4613
- data/spec/fixtures/detector/tv-1.yml +2501 -0
- data/spec/fixtures/detector/tv.yml +8856 -2064
- data/spec/fixtures/detector/unknown.yml +412 -587
- data/spec/fixtures/detector/wearable.yml +915 -0
- data/spec/fixtures/device/camera.yml +4 -3
- data/spec/fixtures/device/car_browser.yml +9 -2
- data/spec/fixtures/device/console.yml +15 -14
- data/spec/fixtures/device/notebook.yml +7 -0
- data/spec/fixtures/parser/oss.yml +1392 -21
- data/spec/fixtures/parser/vendorfragments.yml +57 -51
- metadata +70 -4
@@ -1,102 +1,175 @@
|
|
1
|
-
|
1
|
+
---
|
2
|
+
-
|
2
3
|
user_agent: Outlook-Express/7.0 (MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; AskTbORJ/5.15.9.29495; .NET4.0E; TmstmpExt)
|
3
4
|
client:
|
4
5
|
type: pim
|
5
6
|
name: Outlook Express
|
6
7
|
version: "7.0"
|
7
|
-
-
|
8
|
+
-
|
8
9
|
user_agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Win64; x64; Trident/7.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3; .NET CLR 1.1.4322; FDM; Tablet PC 2.0; .NET4.0E; Microsoft Outlook 14.0.7113; ms-office; MSOffice 14)
|
9
10
|
client:
|
10
11
|
type: pim
|
11
12
|
name: Microsoft Outlook
|
12
13
|
version: "14.0.7113"
|
13
|
-
-
|
14
|
+
-
|
14
15
|
user_agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5
|
15
16
|
client:
|
16
17
|
type: pim
|
17
18
|
name: Thunderbird
|
18
19
|
version: "17.0.5"
|
19
|
-
-
|
20
|
+
-
|
20
21
|
user_agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 Lightning/2.6.4
|
21
22
|
client:
|
22
23
|
type: pim
|
23
24
|
name: Thunderbird
|
24
25
|
version: "24.4.0"
|
25
|
-
-
|
26
|
+
-
|
26
27
|
user_agent: Airmail 1.4 rv:238 (Macintosh; Mac OS X 10.9.2; hr_HR)
|
27
28
|
client:
|
28
29
|
type: pim
|
29
30
|
name: Airmail
|
30
31
|
version: "1.4"
|
31
|
-
-
|
32
|
+
-
|
32
33
|
user_agent: Airmail 1.3.3 rv:237 (Macintosh; Mac OS X 10.9.2; en_US)
|
33
34
|
client:
|
34
35
|
type: pim
|
35
36
|
name: Airmail
|
36
37
|
version: "1.3.3"
|
37
|
-
-
|
38
|
+
-
|
38
39
|
user_agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.4.0
|
39
40
|
client:
|
40
41
|
type: pim
|
41
42
|
name: Thunderbird
|
42
43
|
version: "24.4.0"
|
43
|
-
-
|
44
|
+
-
|
44
45
|
user_agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.4.0 Lightning/2.6.5
|
45
46
|
client:
|
46
47
|
type: pim
|
47
48
|
name: Thunderbird
|
48
49
|
version: "24.4.0"
|
49
|
-
-
|
50
|
+
-
|
50
51
|
user_agent: Mozilla/4.0 (compatible; Lotus-Notes/6.0; Windows-NT)
|
51
52
|
client:
|
52
53
|
type: pim
|
53
54
|
name: Lotus Notes
|
54
55
|
version: "6.0"
|
55
|
-
-
|
56
|
+
-
|
56
57
|
user_agent: Barca/2.8.4400
|
57
58
|
client:
|
58
59
|
type: pim
|
59
60
|
name: Barca
|
60
61
|
version: "2.8.4400"
|
61
|
-
-
|
62
|
+
-
|
62
63
|
user_agent: BarcaPro/1.4 L.1001
|
63
64
|
client:
|
64
65
|
type: pim
|
65
66
|
name: Barca
|
66
67
|
version: "1.4"
|
67
|
-
-
|
68
|
+
-
|
68
69
|
user_agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.8) Gecko/20100317 Postbox/1.1.3
|
69
70
|
client:
|
70
71
|
type: pim
|
71
72
|
name: Postbox
|
72
73
|
version: "1.1.3"
|
73
|
-
-
|
74
|
+
-
|
74
75
|
user_agent: Postbox 1.0b14 (Windows/2009072715)
|
75
76
|
client:
|
76
77
|
type: pim
|
77
78
|
name: Postbox
|
78
79
|
version: "1.0"
|
79
|
-
-
|
80
|
+
-
|
80
81
|
user_agent: MailBar/1.3.2 (Mac OS X Version 10.11.1 (Build 15B42))
|
81
82
|
client:
|
82
83
|
type: pim
|
83
84
|
name: MailBar
|
84
|
-
version: 1.3.2
|
85
|
-
-
|
85
|
+
version: "1.3.2"
|
86
|
+
-
|
86
87
|
user_agent: The Bat! 4.0.0.22
|
87
88
|
client:
|
88
89
|
type: pim
|
89
90
|
name: The Bat!
|
90
91
|
version: "4.0.0.22"
|
91
|
-
-
|
92
|
+
-
|
92
93
|
user_agent: The Bat! Voyager 4.0.18.4
|
93
94
|
client:
|
94
95
|
type: pim
|
95
96
|
name: The Bat!
|
96
97
|
version: "4.0.18.4"
|
97
|
-
-
|
98
|
+
-
|
98
99
|
user_agent: DAVdroid/1.6.2-ose (2017/06/23; dav4android; okhttp3) Android/7.0
|
99
100
|
client:
|
100
101
|
type: pim
|
101
102
|
name: DAVdroid
|
102
|
-
version: "1.6.2"
|
103
|
+
version: "1.6.2"
|
104
|
+
-
|
105
|
+
user_agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130823 Firefox/10.0.11esrpre Iceape/2.7.12
|
106
|
+
client:
|
107
|
+
type: pim
|
108
|
+
name: SeaMonkey
|
109
|
+
version: "2.7.12"
|
110
|
+
-
|
111
|
+
user_agent: Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26a1 Lightning/3.1a1
|
112
|
+
client:
|
113
|
+
type: pim
|
114
|
+
name: SeaMonkey
|
115
|
+
version: "2.26"
|
116
|
+
-
|
117
|
+
user_agent: Monazilla/1.00 Live5ch/1.52 Windows/10.0.17134
|
118
|
+
client:
|
119
|
+
type: pim
|
120
|
+
name: Live5ch
|
121
|
+
version: "1.52"
|
122
|
+
-
|
123
|
+
user_agent: Monazilla/1.00 (JaneView/1501150412)
|
124
|
+
client:
|
125
|
+
type: pim
|
126
|
+
name: JaneView
|
127
|
+
version: ""
|
128
|
+
-
|
129
|
+
user_agent: Monazilla/1.00 BathyScaphe/1057 Mac OS X/10.11.6
|
130
|
+
client:
|
131
|
+
type: pim
|
132
|
+
name: BathyScaphe
|
133
|
+
version: ""
|
134
|
+
-
|
135
|
+
user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Raindrop.io/5.2.0 Chrome/82.0.4048.0 Electron/9.0.0-beta.3 Safari/537.36
|
136
|
+
client:
|
137
|
+
type: pim
|
138
|
+
name: Raindrop.io
|
139
|
+
version: 5.2.0
|
140
|
+
-
|
141
|
+
user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Franz/5.4.1 Chrome/76.0.3809.146 Electron/6.0.10 Safari/537.36
|
142
|
+
client:
|
143
|
+
type: pim
|
144
|
+
name: Franz
|
145
|
+
version: 5.4.1
|
146
|
+
-
|
147
|
+
user_agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Mailspring/1.7.4 Chrome/69.0.3497.128 Electron/4.2.2 Safari/537.36
|
148
|
+
client:
|
149
|
+
type: pim
|
150
|
+
name: Mailspring
|
151
|
+
version: 1.7.4
|
152
|
+
-
|
153
|
+
user_agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Notion/2.0.8 Chrome/76.0.3809.146 Electron/6.1.5 Safari/537.36
|
154
|
+
client:
|
155
|
+
type: pim
|
156
|
+
name: Notion
|
157
|
+
version: 2.0.8
|
158
|
+
-
|
159
|
+
user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Basecamp3/2.1.0 Chrome/78.0.3904.130 Electron/7.1.5 Safari/537.36
|
160
|
+
client:
|
161
|
+
type: pim
|
162
|
+
name: Basecamp
|
163
|
+
version: 2.1.0
|
164
|
+
-
|
165
|
+
user_agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Evernote/10.8.5 Chrome/87.0.4280.88 Electron/11.1.1 Safari/537.36
|
166
|
+
client:
|
167
|
+
type: pim
|
168
|
+
name: Evernote
|
169
|
+
version: 10.8.5
|
170
|
+
-
|
171
|
+
user_agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) ramboxpro/1.5.2 Chrome/83.0.4103.122 Electron/9.4.4 Safari/537.36
|
172
|
+
client:
|
173
|
+
type: pim
|
174
|
+
name: Rambox Pro
|
175
|
+
version: 1.5.2
|