device_detector 1.0.4 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +8 -7
- data/lib/device_detector/browser.rb +364 -0
- data/lib/device_detector/client.rb +8 -0
- data/lib/device_detector/device.rb +1204 -2
- data/lib/device_detector/os.rb +39 -12
- data/lib/device_detector/parser.rb +1 -1
- data/lib/device_detector/version.rb +1 -1
- data/lib/device_detector/version_extractor.rb +28 -0
- data/lib/device_detector.rb +57 -13
- data/regexes/bots.yml +651 -61
- data/regexes/client/browser_engine.yml +7 -1
- data/regexes/client/browsers.yml +774 -78
- data/regexes/client/feed_readers.yml +4 -10
- data/regexes/client/libraries.yml +71 -2
- data/regexes/client/mediaplayers.yml +25 -1
- data/regexes/client/mobile_apps.yml +923 -73
- data/regexes/client/pim.yml +65 -2
- data/regexes/device/cameras.yml +5 -5
- data/regexes/device/car_browsers.yml +16 -0
- data/regexes/device/consoles.yml +13 -1
- data/regexes/device/mobiles.yml +17029 -3889
- data/regexes/device/notebooks.yml +114 -0
- data/regexes/device/portable_media_player.yml +36 -9
- data/regexes/device/shell_tv.yml +117 -0
- data/regexes/device/televisions.yml +439 -34
- data/regexes/oss.yml +620 -284
- metadata +9 -131
- data/.gitignore +0 -14
- data/.rubocop.yml +0 -49
- data/.ruby-version +0 -1
- data/.travis.yml +0 -14
- data/Gemfile +0 -8
- data/Rakefile +0 -85
- data/device_detector.gemspec +0 -27
- data/spec/device_detector/bot_fixtures_spec.rb +0 -30
- data/spec/device_detector/client_fixtures_spec.rb +0 -31
- data/spec/device_detector/concrete_user_agent_spec.rb +0 -135
- data/spec/device_detector/detector_fixtures_spec.rb +0 -100
- data/spec/device_detector/device_fixtures_spec.rb +0 -36
- data/spec/device_detector/device_spec.rb +0 -131
- data/spec/device_detector/memory_cache_spec.rb +0 -148
- data/spec/device_detector/model_extractor_spec.rb +0 -63
- data/spec/device_detector/os_fixtures_spec.rb +0 -26
- data/spec/device_detector/version_extractor_spec.rb +0 -79
- data/spec/device_detector_spec.rb +0 -189
- data/spec/fixtures/client/browser.yml +0 -2836
- data/spec/fixtures/client/feed_reader.yml +0 -199
- data/spec/fixtures/client/library.yml +0 -193
- data/spec/fixtures/client/mediaplayer.yml +0 -163
- data/spec/fixtures/client/mobile_app.yml +0 -217
- data/spec/fixtures/client/pim.yml +0 -115
- data/spec/fixtures/detector/bots.yml +0 -3726
- data/spec/fixtures/detector/camera.yml +0 -141
- data/spec/fixtures/detector/car_browser.yml +0 -81
- data/spec/fixtures/detector/console.yml +0 -321
- data/spec/fixtures/detector/desktop.yml +0 -5461
- data/spec/fixtures/detector/feature_phone.yml +0 -891
- data/spec/fixtures/detector/feed_reader.yml +0 -551
- data/spec/fixtures/detector/mediaplayer.yml +0 -253
- data/spec/fixtures/detector/mobile_apps.yml +0 -494
- data/spec/fixtures/detector/phablet.yml +0 -4167
- data/spec/fixtures/detector/portable_media_player.yml +0 -178
- data/spec/fixtures/detector/smart_display.yml +0 -61
- data/spec/fixtures/detector/smart_speaker.yml +0 -55
- data/spec/fixtures/detector/smartphone-1.yml +0 -9927
- data/spec/fixtures/detector/smartphone-10.yml +0 -9977
- data/spec/fixtures/detector/smartphone-11.yml +0 -9891
- data/spec/fixtures/detector/smartphone-12.yml +0 -9906
- data/spec/fixtures/detector/smartphone-13.yml +0 -9920
- data/spec/fixtures/detector/smartphone-14.yml +0 -2662
- data/spec/fixtures/detector/smartphone-2.yml +0 -9992
- data/spec/fixtures/detector/smartphone-3.yml +0 -9945
- data/spec/fixtures/detector/smartphone-4.yml +0 -9923
- data/spec/fixtures/detector/smartphone-5.yml +0 -9914
- data/spec/fixtures/detector/smartphone-6.yml +0 -9962
- data/spec/fixtures/detector/smartphone-7.yml +0 -9899
- data/spec/fixtures/detector/smartphone-8.yml +0 -9931
- data/spec/fixtures/detector/smartphone-9.yml +0 -9899
- data/spec/fixtures/detector/smartphone.yml +0 -9984
- data/spec/fixtures/detector/tablet-1.yml +0 -9995
- data/spec/fixtures/detector/tablet-2.yml +0 -9977
- data/spec/fixtures/detector/tablet-3.yml +0 -9959
- data/spec/fixtures/detector/tablet-4.yml +0 -4528
- data/spec/fixtures/detector/tablet.yml +0 -9971
- data/spec/fixtures/detector/tv.yml +0 -4933
- data/spec/fixtures/detector/unknown.yml +0 -3236
- data/spec/fixtures/detector/wearable.yml +0 -61
- data/spec/fixtures/device/camera.yml +0 -19
- data/spec/fixtures/device/car_browser.yml +0 -13
- data/spec/fixtures/device/console.yml +0 -79
- data/spec/fixtures/parser/oss.yml +0 -1082
- data/spec/fixtures/parser/vendorfragments.yml +0 -168
- data/spec/spec_helper.rb +0 -9
@@ -1,253 +0,0 @@
|
|
1
|
-
---
|
2
|
-
-
|
3
|
-
user_agent: Audacious/3.6.2 neon/0.30.1
|
4
|
-
os: [ ]
|
5
|
-
client:
|
6
|
-
type: mediaplayer
|
7
|
-
name: Audacious
|
8
|
-
version: "3.6.2"
|
9
|
-
device:
|
10
|
-
type: ""
|
11
|
-
brand: ""
|
12
|
-
model: ""
|
13
|
-
os_family: Unknown
|
14
|
-
browser_family: Unknown
|
15
|
-
-
|
16
|
-
user_agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.28) Gecko/20130316 Songbird/1.12.1 (20140112193149)
|
17
|
-
os:
|
18
|
-
name: GNU/Linux
|
19
|
-
short_name: LIN
|
20
|
-
version: ""
|
21
|
-
platform: x86
|
22
|
-
client:
|
23
|
-
type: mediaplayer
|
24
|
-
name: Songbird
|
25
|
-
version: "1.12.1"
|
26
|
-
device:
|
27
|
-
type: desktop
|
28
|
-
brand: ""
|
29
|
-
model: ""
|
30
|
-
os_family: GNU/Linux
|
31
|
-
browser_family: Unknown
|
32
|
-
-
|
33
|
-
user_agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.28) Gecko/20130316 Nightingale/1.12.2 (20140112193149)
|
34
|
-
os:
|
35
|
-
name: GNU/Linux
|
36
|
-
short_name: LIN
|
37
|
-
version: ""
|
38
|
-
platform: x86
|
39
|
-
client:
|
40
|
-
type: mediaplayer
|
41
|
-
name: Nightingale
|
42
|
-
version: "1.12.2"
|
43
|
-
device:
|
44
|
-
type: desktop
|
45
|
-
brand: ""
|
46
|
-
model: ""
|
47
|
-
os_family: GNU/Linux
|
48
|
-
browser_family: Unknown
|
49
|
-
-
|
50
|
-
user_agent: iTunes/10.2.1 (Macintosh; Intel Mac OS X 10.7) AppleWebKit/534.20.8
|
51
|
-
os:
|
52
|
-
name: Mac
|
53
|
-
short_name: MAC
|
54
|
-
version: "10.7"
|
55
|
-
platform: ""
|
56
|
-
client:
|
57
|
-
type: mediaplayer
|
58
|
-
name: iTunes
|
59
|
-
version: "10.2.1"
|
60
|
-
device:
|
61
|
-
type: desktop
|
62
|
-
brand: AP
|
63
|
-
model: ""
|
64
|
-
os_family: Mac
|
65
|
-
browser_family: Unknown
|
66
|
-
-
|
67
|
-
user_agent: iTunes/10.2.1 (Windows; Microsoft Windows 7 Enterprise Edition Service Pack 1 (Build 7601)) AppleWebKit/533.20.25
|
68
|
-
os:
|
69
|
-
name: Windows
|
70
|
-
short_name: WIN
|
71
|
-
version: "7"
|
72
|
-
platform: ""
|
73
|
-
client:
|
74
|
-
type: mediaplayer
|
75
|
-
name: iTunes
|
76
|
-
version: "10.2.1"
|
77
|
-
device:
|
78
|
-
type: desktop
|
79
|
-
brand: ""
|
80
|
-
model: ""
|
81
|
-
os_family: Windows
|
82
|
-
browser_family: Unknown
|
83
|
-
-
|
84
|
-
user_agent: SAMSUNG-GT-S3850/S3850CXKD1 SHP/VPP/R5 Dolfin/2.0 NexPlayer/3.0 SMM-MMS/1.2.0 profile/MIDP-2.1 configuration/CLDC-1.1 OPN-B
|
85
|
-
os: [ ]
|
86
|
-
client:
|
87
|
-
type: mediaplayer
|
88
|
-
name: NexPlayer
|
89
|
-
version: "3.0"
|
90
|
-
device:
|
91
|
-
type: smartphone
|
92
|
-
brand: SA
|
93
|
-
model: GT-S3850
|
94
|
-
os_family: Unknown
|
95
|
-
browser_family: Unknown
|
96
|
-
-
|
97
|
-
user_agent: Deezer/5.4.21.97 (Android; 6.0; Mobile; fr) WIKO U FEEL
|
98
|
-
os:
|
99
|
-
name: Android
|
100
|
-
short_name: AND
|
101
|
-
version: ""
|
102
|
-
platform: ""
|
103
|
-
client:
|
104
|
-
type: mediaplayer
|
105
|
-
name: Deezer
|
106
|
-
version: "5.4.21.97"
|
107
|
-
device:
|
108
|
-
type: smartphone
|
109
|
-
brand: WI
|
110
|
-
model: U Feel
|
111
|
-
os_family: Android
|
112
|
-
browser_family: Unknown
|
113
|
-
-
|
114
|
-
user_agent: FlyCast/1.34 (BlackBerry; 8330/4.5.0.131 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/-1)
|
115
|
-
os:
|
116
|
-
name: BlackBerry OS
|
117
|
-
short_name: BLB
|
118
|
-
version: ""
|
119
|
-
platform: ""
|
120
|
-
client:
|
121
|
-
type: mediaplayer
|
122
|
-
name: FlyCast
|
123
|
-
version: "1.34"
|
124
|
-
device:
|
125
|
-
type: smartphone
|
126
|
-
brand: RM
|
127
|
-
model: BlackBerry
|
128
|
-
os_family: BlackBerry
|
129
|
-
browser_family: Unknown
|
130
|
-
-
|
131
|
-
user_agent: NSPlayer/10.0.0.4072 WMFSDK/10.0
|
132
|
-
os: [ ]
|
133
|
-
client:
|
134
|
-
type: mediaplayer
|
135
|
-
name: Windows Media Player
|
136
|
-
version: "10.0.0.4072"
|
137
|
-
device:
|
138
|
-
type: ""
|
139
|
-
brand: ""
|
140
|
-
model: ""
|
141
|
-
os_family: Unknown
|
142
|
-
browser_family: Unknown
|
143
|
-
-
|
144
|
-
user_agent: XBMC/9.04 r19840 (Mac OS X; Darwin 9.6.0; http://www.xbmc.org)
|
145
|
-
os:
|
146
|
-
name: Mac
|
147
|
-
short_name: MAC
|
148
|
-
version: ""
|
149
|
-
platform: ""
|
150
|
-
client:
|
151
|
-
type: mediaplayer
|
152
|
-
name: XBMC
|
153
|
-
version: "9.04"
|
154
|
-
device:
|
155
|
-
type: desktop
|
156
|
-
brand: AP
|
157
|
-
model: ""
|
158
|
-
os_family: Mac
|
159
|
-
browser_family: Unknown
|
160
|
-
-
|
161
|
-
user_agent: SubStream/0.7 CFNetwork/485.12.30 Darwin/10.4.0
|
162
|
-
os:
|
163
|
-
name: iOS
|
164
|
-
short_name: IOS
|
165
|
-
version: "4.2"
|
166
|
-
platform: ""
|
167
|
-
client:
|
168
|
-
type: mediaplayer
|
169
|
-
name: SubStream
|
170
|
-
version: "0.7"
|
171
|
-
device:
|
172
|
-
type: ""
|
173
|
-
brand: AP
|
174
|
-
model: ""
|
175
|
-
os_family: iOS
|
176
|
-
browser_family: Unknown
|
177
|
-
-
|
178
|
-
user_agent: Samsung GT-I9505 stagefright/1.2 (Linux;Android 4.4.2)
|
179
|
-
os:
|
180
|
-
name: Android
|
181
|
-
short_name: AND
|
182
|
-
version: "4.4.2"
|
183
|
-
platform: ""
|
184
|
-
client:
|
185
|
-
type: mediaplayer
|
186
|
-
name: Stagefright
|
187
|
-
version: "1.2"
|
188
|
-
device:
|
189
|
-
type: smartphone
|
190
|
-
brand: SA
|
191
|
-
model: GALAXY S4
|
192
|
-
os_family: Android
|
193
|
-
browser_family: Unknown
|
194
|
-
-
|
195
|
-
user_agent: Kodi/14.0 (Macintosh; Intel Mac OS X 10_10_3) App_Bitness/64 Version/14.0-Git:2014-12-23-ad747d9-dirty
|
196
|
-
os:
|
197
|
-
name: Mac
|
198
|
-
short_name: MAC
|
199
|
-
version: "10.10.3"
|
200
|
-
platform: ""
|
201
|
-
client:
|
202
|
-
type: mediaplayer
|
203
|
-
name: Kodi
|
204
|
-
version: "14.0"
|
205
|
-
device:
|
206
|
-
type: desktop
|
207
|
-
brand: AP
|
208
|
-
model: ""
|
209
|
-
os_family: Mac
|
210
|
-
browser_family: Unknown
|
211
|
-
-
|
212
|
-
user_agent: GoogleChirp/1.0.1 (Linux; Android/5.0) GOOG/7 AppleWebKit/534.30 (KHTML, like Gecko)
|
213
|
-
os:
|
214
|
-
name: Android
|
215
|
-
short_name: AND
|
216
|
-
version: "5.0"
|
217
|
-
platform: ""
|
218
|
-
client:
|
219
|
-
type: mediaplayer
|
220
|
-
name: Google Podcasts
|
221
|
-
version: "1.0.1"
|
222
|
-
device:
|
223
|
-
type: ""
|
224
|
-
brand: ""
|
225
|
-
model: ""
|
226
|
-
os_family: Android
|
227
|
-
browser_family: Unknown
|
228
|
-
-
|
229
|
-
user_agent: Music Player Daemon 0.19.21
|
230
|
-
os: [ ]
|
231
|
-
client:
|
232
|
-
type: mediaplayer
|
233
|
-
name: Music Player Daemon
|
234
|
-
version: "0.19.21"
|
235
|
-
device:
|
236
|
-
type: ""
|
237
|
-
brand: ""
|
238
|
-
model: ""
|
239
|
-
os_family: Unknown
|
240
|
-
browser_family: Unknown
|
241
|
-
-
|
242
|
-
user_agent: mpv 0.29.1
|
243
|
-
os: [ ]
|
244
|
-
client:
|
245
|
-
type: mediaplayer
|
246
|
-
name: mpv
|
247
|
-
version: "0.29.1"
|
248
|
-
device:
|
249
|
-
type: ""
|
250
|
-
brand: ""
|
251
|
-
model: ""
|
252
|
-
os_family: Unknown
|
253
|
-
browser_family: Unknown
|