device_detector 1.0.2 → 1.0.3
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/.travis.yml +4 -5
- data/CHANGELOG.md +3 -0
- data/README.md +5 -5
- data/Rakefile +13 -0
- data/lib/device_detector/version.rb +1 -1
- data/regexes/bots.yml +89 -2
- data/regexes/client/browser_engine.yml +3 -0
- data/regexes/client/browsers.yml +325 -76
- data/regexes/client/feed_readers.yml +6 -0
- data/regexes/client/libraries.yml +9 -0
- data/regexes/client/mobile_apps.yml +40 -1
- data/regexes/client/pim.yml +5 -0
- data/regexes/device/mobiles.yml +1607 -431
- data/regexes/oss.yml +1 -1
- data/regexes/vendorfragments.yml +1 -1
- data/spec/device_detector/concrete_user_agent_spec.rb +16 -17
- data/spec/device_detector/device_spec.rb +25 -25
- 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 +655 -322
- data/spec/fixtures/client/feed_reader.yml +39 -45
- data/spec/fixtures/client/library.yml +24 -11
- data/spec/fixtures/client/mediaplayer.yml +29 -28
- data/spec/fixtures/client/mobile_app.yml +100 -41
- data/spec/fixtures/client/pim.yml +32 -19
- data/spec/fixtures/detector/bots.yml +140 -23
- data/spec/fixtures/detector/camera.yml +2 -2
- data/spec/fixtures/detector/console.yml +3 -3
- data/spec/fixtures/detector/desktop.yml +312 -73
- data/spec/fixtures/detector/feature_phone.yml +48 -0
- data/spec/fixtures/detector/feed_reader.yml +141 -126
- data/spec/fixtures/detector/mediaplayer.yml +39 -38
- data/spec/fixtures/detector/mobile_apps.yml +86 -85
- data/spec/fixtures/detector/phablet.yml +715 -236
- data/spec/fixtures/detector/portable_media_player.yml +17 -0
- data/spec/fixtures/detector/smartphone-1.yml +3534 -3512
- data/spec/fixtures/detector/smartphone-10.yml +3848 -6286
- data/spec/fixtures/detector/smartphone-11.yml +5548 -3298
- data/spec/fixtures/detector/smartphone-12.yml +8655 -0
- data/spec/fixtures/detector/smartphone-2.yml +3645 -3625
- data/spec/fixtures/detector/smartphone-3.yml +4099 -4176
- data/spec/fixtures/detector/smartphone-4.yml +3861 -3865
- data/spec/fixtures/detector/smartphone-5.yml +3991 -4037
- data/spec/fixtures/detector/smartphone-6.yml +4074 -4047
- data/spec/fixtures/detector/smartphone-7.yml +4355 -4362
- data/spec/fixtures/detector/smartphone-8.yml +4087 -4136
- data/spec/fixtures/detector/smartphone-9.yml +4420 -4408
- data/spec/fixtures/detector/smartphone.yml +2900 -2904
- data/spec/fixtures/detector/tablet-1.yml +3946 -3912
- data/spec/fixtures/detector/tablet-2.yml +3593 -3617
- data/spec/fixtures/detector/tablet-3.yml +2738 -85
- data/spec/fixtures/detector/tablet.yml +3604 -3616
- data/spec/fixtures/detector/tv.yml +131 -51
- data/spec/fixtures/detector/unknown.yml +64 -27
- data/spec/fixtures/device/camera.yml +4 -3
- data/spec/fixtures/device/car_browser.yml +3 -2
- data/spec/fixtures/device/console.yml +15 -14
- metadata +4 -2
@@ -1,16 +1,17 @@
|
|
1
|
-
|
1
|
+
---
|
2
|
+
-
|
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
|
3
4
|
device:
|
4
5
|
type: 8
|
5
6
|
brand: SA
|
6
7
|
model: GALAXY Camera
|
7
|
-
-
|
8
|
+
-
|
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
|
9
10
|
device:
|
10
11
|
type: 8
|
11
12
|
brand: SA
|
12
13
|
model: GALAXY Camera
|
13
|
-
-
|
14
|
+
-
|
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
|
15
16
|
device:
|
16
17
|
type: 8
|
@@ -1,78 +1,79 @@
|
|
1
|
-
|
1
|
+
---
|
2
|
+
-
|
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
|
3
4
|
device:
|
4
5
|
type: 4
|
5
6
|
brand: AR
|
6
7
|
model: Gamepad
|
7
|
-
-
|
8
|
+
-
|
8
9
|
user_agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; Xbox)
|
9
10
|
device:
|
10
11
|
type: 4
|
11
12
|
brand: MS
|
12
13
|
model: Xbox 360
|
13
|
-
-
|
14
|
+
-
|
14
15
|
user_agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0; Xbox; Xbox One)
|
15
16
|
device:
|
16
17
|
type: 4
|
17
18
|
brand: MS
|
18
19
|
model: Xbox One
|
19
|
-
-
|
20
|
+
-
|
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
|
21
22
|
device:
|
22
23
|
type: 4
|
23
24
|
brand: MS
|
24
25
|
model: Xbox One
|
25
|
-
-
|
26
|
+
-
|
26
27
|
user_agent: Mozilla/5.0 (Nintendo 3DS; U; ; en) Version/1.7498.EU
|
27
28
|
device:
|
28
29
|
type: 4
|
29
30
|
brand: NI
|
30
31
|
model: 3DS
|
31
|
-
-
|
32
|
+
-
|
32
33
|
user_agent: Bunjalloo/0.7.6(Nintendo DS;U;en)
|
33
34
|
device:
|
34
35
|
type: 4
|
35
36
|
brand: NI
|
36
37
|
model: DS
|
37
|
-
-
|
38
|
+
-
|
38
39
|
user_agent: Opera/9.30 (Nintendo Wii; U; ; 3642; en)
|
39
40
|
device:
|
40
41
|
type: 4
|
41
42
|
brand: NI
|
42
43
|
model: Wii
|
43
|
-
-
|
44
|
+
-
|
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
|
45
46
|
device:
|
46
47
|
type: 4
|
47
48
|
brand: NI
|
48
49
|
model: WiiU
|
49
|
-
-
|
50
|
+
-
|
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
|
51
52
|
device:
|
52
53
|
type: 4
|
53
54
|
brand: OU
|
54
55
|
model: OUYA
|
55
|
-
-
|
56
|
+
-
|
56
57
|
user_agent: Mozilla/5.0 (PLAYSTATION 3 4.46) AppleWebKit/531.22.8 (KHTML, like Gecko)
|
57
58
|
device:
|
58
59
|
type: 4
|
59
60
|
brand: SO
|
60
61
|
model: PlayStation 3
|
61
|
-
-
|
62
|
+
-
|
62
63
|
user_agent: Mozilla/5.0 (PlayStation 4 1.52) AppleWebKit/536.26 (KHTML, like Gecko)
|
63
64
|
device:
|
64
65
|
type: 4
|
65
66
|
brand: SO
|
66
67
|
model: PlayStation 4
|
67
|
-
-
|
68
|
+
-
|
68
69
|
user_agent: Mozilla/4.0 (PlayStation Portable); 2.00)
|
69
70
|
device:
|
70
71
|
type: 4
|
71
72
|
brand: SO
|
72
73
|
model: PlayStation Portable
|
73
|
-
-
|
74
|
+
-
|
74
75
|
user_agent: Mozilla/5.0 (PlayStation Vita 3.01) AppleWebKit/536.26 (KHTML, like Gecko) Silk/3.2
|
75
76
|
device:
|
76
77
|
type: 4
|
77
78
|
brand: SO
|
78
|
-
model: PlayStation Vita
|
79
|
+
model: PlayStation Vita
|
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.3
|
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: 2019-
|
12
|
+
date: 2019-12-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|
@@ -129,6 +129,7 @@ files:
|
|
129
129
|
- spec/fixtures/detector/smartphone-1.yml
|
130
130
|
- spec/fixtures/detector/smartphone-10.yml
|
131
131
|
- spec/fixtures/detector/smartphone-11.yml
|
132
|
+
- spec/fixtures/detector/smartphone-12.yml
|
132
133
|
- spec/fixtures/detector/smartphone-2.yml
|
133
134
|
- spec/fixtures/detector/smartphone-3.yml
|
134
135
|
- spec/fixtures/detector/smartphone-4.yml
|
@@ -207,6 +208,7 @@ test_files:
|
|
207
208
|
- spec/fixtures/detector/smartphone-1.yml
|
208
209
|
- spec/fixtures/detector/smartphone-10.yml
|
209
210
|
- spec/fixtures/detector/smartphone-11.yml
|
211
|
+
- spec/fixtures/detector/smartphone-12.yml
|
210
212
|
- spec/fixtures/detector/smartphone-2.yml
|
211
213
|
- spec/fixtures/detector/smartphone-3.yml
|
212
214
|
- spec/fixtures/detector/smartphone-4.yml
|