device_detector 1.0.4 → 1.0.7
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/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,61 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
-
|
|
3
|
-
user_agent: Mozilla/5.0 (Linux; Android 8.0; LEO-BX9 Build/OWDD.180926.001.A1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Cr4 Mobile Safari/537.36
|
|
4
|
-
os:
|
|
5
|
-
name: Android
|
|
6
|
-
short_name: AND
|
|
7
|
-
version: "8.0"
|
|
8
|
-
platform: ""
|
|
9
|
-
client:
|
|
10
|
-
type: browser
|
|
11
|
-
name: Chrome
|
|
12
|
-
short_name: CH
|
|
13
|
-
version: "53.0.2785.143"
|
|
14
|
-
engine: Blink
|
|
15
|
-
engine_version: ""
|
|
16
|
-
device:
|
|
17
|
-
type: wearable
|
|
18
|
-
brand: HU
|
|
19
|
-
model: Smart Watch 2
|
|
20
|
-
os_family: Android
|
|
21
|
-
browser_family: Chrome
|
|
22
|
-
-
|
|
23
|
-
user_agent: Mozilla/5.0 Linux; Android 7.1.1; LG Watch Urbane Build/NWD1.180306.004 AppleWebKit/537.36 KHTML, like Gecko Chrome/19.77.34.5 Mobile Safari/537.36
|
|
24
|
-
os:
|
|
25
|
-
name: Android
|
|
26
|
-
short_name: AND
|
|
27
|
-
version: "7.1.1"
|
|
28
|
-
platform: ""
|
|
29
|
-
client:
|
|
30
|
-
type: browser
|
|
31
|
-
name: Chrome Mobile
|
|
32
|
-
short_name: CM
|
|
33
|
-
version: "19.77.34.5"
|
|
34
|
-
engine: WebKit
|
|
35
|
-
engine_version: "537.36"
|
|
36
|
-
device:
|
|
37
|
-
type: wearable
|
|
38
|
-
brand: LG
|
|
39
|
-
model: Watch Urbane
|
|
40
|
-
os_family: Android
|
|
41
|
-
browser_family: Chrome
|
|
42
|
-
-
|
|
43
|
-
user_agent: Mozilla/5.0 (Linux; Tizen 4.0; SAMSUNG SM-R820) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/2.0 Chrome/56.0.2924.0 Mobile Safari/537.36
|
|
44
|
-
os:
|
|
45
|
-
name: Tizen
|
|
46
|
-
short_name: TIZ
|
|
47
|
-
version: "4.0"
|
|
48
|
-
platform: ""
|
|
49
|
-
client:
|
|
50
|
-
type: browser
|
|
51
|
-
name: Samsung Browser
|
|
52
|
-
short_name: SB
|
|
53
|
-
version: "2.0"
|
|
54
|
-
engine: WebKit
|
|
55
|
-
engine_version: "537.36"
|
|
56
|
-
device:
|
|
57
|
-
type: wearable
|
|
58
|
-
brand: SA
|
|
59
|
-
model: GALAXY Watch Active 2
|
|
60
|
-
os_family: Other Mobile
|
|
61
|
-
browser_family: Chrome
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
-
|
|
3
|
-
user_agent: Mozilla/5.0 (Linux; U; Android 4.0; de-DE; EK-GC100 Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
|
|
4
|
-
device:
|
|
5
|
-
type: 8
|
|
6
|
-
brand: SA
|
|
7
|
-
model: GALAXY Camera
|
|
8
|
-
-
|
|
9
|
-
user_agent: Mozilla/5.0 (Linux; Android 4.1.2; EK-GC100 Build/JZO54K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.63 Mobile Safari/537.36 OPR/15.0.1162.60140
|
|
10
|
-
device:
|
|
11
|
-
type: 8
|
|
12
|
-
brand: SA
|
|
13
|
-
model: GALAXY Camera
|
|
14
|
-
-
|
|
15
|
-
user_agent: Mozilla/5.0 (Linux; U; Android 2.3.3; ja-jp; COOLPIX S800c Build/CP01_WW) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
|
|
16
|
-
device:
|
|
17
|
-
type: 8
|
|
18
|
-
brand: NN
|
|
19
|
-
model: Coolpix S800c
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
-
|
|
3
|
-
user_agent: Mozilla/5.0 (X11; u; Linux; C) AppleWebKit /533.3 (Khtml, like Gheko) QtCarBrowser Safari/533.3
|
|
4
|
-
device:
|
|
5
|
-
type: 6
|
|
6
|
-
brand: TA
|
|
7
|
-
model: Model S
|
|
8
|
-
-
|
|
9
|
-
user_agent: Mozilla/5.0 (X11; GNU/Linux) AppleWebKit/537.36 (KHTML, like Gecko) Chromium/75.0.3770.100 Chrome/75.0.3770.100 Safari/537.36 Tesla/2019.40.50.7-ad132c7b057e
|
|
10
|
-
device:
|
|
11
|
-
type: 6
|
|
12
|
-
brand: TA
|
|
13
|
-
model: ""
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
-
|
|
3
|
-
user_agent: Mozilla/5.0 (Linux; Android 4.1.1; ARCHOS GAMEPAD Build/JRO03H) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Safari/535.19
|
|
4
|
-
device:
|
|
5
|
-
type: 4
|
|
6
|
-
brand: AR
|
|
7
|
-
model: Gamepad
|
|
8
|
-
-
|
|
9
|
-
user_agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; Xbox)
|
|
10
|
-
device:
|
|
11
|
-
type: 4
|
|
12
|
-
brand: MS
|
|
13
|
-
model: Xbox 360
|
|
14
|
-
-
|
|
15
|
-
user_agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0; Xbox; Xbox One)
|
|
16
|
-
device:
|
|
17
|
-
type: 4
|
|
18
|
-
brand: MS
|
|
19
|
-
model: Xbox One
|
|
20
|
-
-
|
|
21
|
-
user_agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; Xbox; Xbox One) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586
|
|
22
|
-
device:
|
|
23
|
-
type: 4
|
|
24
|
-
brand: MS
|
|
25
|
-
model: Xbox One
|
|
26
|
-
-
|
|
27
|
-
user_agent: Mozilla/5.0 (Nintendo 3DS; U; ; en) Version/1.7498.EU
|
|
28
|
-
device:
|
|
29
|
-
type: 4
|
|
30
|
-
brand: NI
|
|
31
|
-
model: 3DS
|
|
32
|
-
-
|
|
33
|
-
user_agent: Bunjalloo/0.7.6(Nintendo DS;U;en)
|
|
34
|
-
device:
|
|
35
|
-
type: 4
|
|
36
|
-
brand: NI
|
|
37
|
-
model: DS
|
|
38
|
-
-
|
|
39
|
-
user_agent: Opera/9.30 (Nintendo Wii; U; ; 3642; en)
|
|
40
|
-
device:
|
|
41
|
-
type: 4
|
|
42
|
-
brand: NI
|
|
43
|
-
model: Wii
|
|
44
|
-
-
|
|
45
|
-
user_agent: Mozilla/5.0 (Nintendo WiiU) AppleWebKit/534.52 (KHTML, like Gecko) NX/2.1.0.8.21 NintendoBrowser/1.0.0.7494.US
|
|
46
|
-
device:
|
|
47
|
-
type: 4
|
|
48
|
-
brand: NI
|
|
49
|
-
model: WiiU
|
|
50
|
-
-
|
|
51
|
-
user_agent: Mozilla/5.0 (Linux; U; Android OUYA 4.1.2; en-us; OUYA Build/JZO54L-OUYA) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30
|
|
52
|
-
device:
|
|
53
|
-
type: 4
|
|
54
|
-
brand: OU
|
|
55
|
-
model: OUYA
|
|
56
|
-
-
|
|
57
|
-
user_agent: Mozilla/5.0 (PLAYSTATION 3 4.46) AppleWebKit/531.22.8 (KHTML, like Gecko)
|
|
58
|
-
device:
|
|
59
|
-
type: 4
|
|
60
|
-
brand: SO
|
|
61
|
-
model: PlayStation 3
|
|
62
|
-
-
|
|
63
|
-
user_agent: Mozilla/5.0 (PlayStation 4 1.52) AppleWebKit/536.26 (KHTML, like Gecko)
|
|
64
|
-
device:
|
|
65
|
-
type: 4
|
|
66
|
-
brand: SO
|
|
67
|
-
model: PlayStation 4
|
|
68
|
-
-
|
|
69
|
-
user_agent: Mozilla/4.0 (PlayStation Portable); 2.00)
|
|
70
|
-
device:
|
|
71
|
-
type: 4
|
|
72
|
-
brand: SO
|
|
73
|
-
model: PlayStation Portable
|
|
74
|
-
-
|
|
75
|
-
user_agent: Mozilla/5.0 (PlayStation Vita 3.01) AppleWebKit/536.26 (KHTML, like Gecko) Silk/3.2
|
|
76
|
-
device:
|
|
77
|
-
type: 4
|
|
78
|
-
brand: SO
|
|
79
|
-
model: PlayStation Vita
|