mobile_devices 0.1.3 → 0.5.0
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/.gitignore +4 -3
- data/README.md +23 -1
- data/data/android-devices-min.json +1 -1
- data/lib/android.rb +1 -1
- data/mobile_devices.gemspec +4 -2
- data/test/test_mobile_devices.rb +39 -0
- metadata +24 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 97c4456f8d100d6535822a64762eeb6cf843544c2805b4ab64daf8e1452722d1
|
|
4
|
+
data.tar.gz: 0c9d377c2cf2443af6d752960e926b16328ab903945668458d937942957d1300
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 82dc6953a478a24b860526ecc42276b6ec071652bc4ff48308c192b644ec0ce1f59855be507666a15aa3281c1af69a84913bdd41b873117e12079943015abe74
|
|
7
|
+
data.tar.gz: 38d60992d39b681ab87d6f236a476e6d20b4b86e8ad7135e696055552ec9e41623e4ad665bcfce35a51fd04a44be5f19cd9375979a071838246b70dcd0927710
|
data/.gitignore
CHANGED
|
@@ -42,9 +42,10 @@ build-iPhoneSimulator/
|
|
|
42
42
|
|
|
43
43
|
# for a library or gem, you might want to ignore these files since the code is
|
|
44
44
|
# intended to run in multiple environments; otherwise, check them in:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
Gemfile
|
|
46
|
+
Gemfile.lock
|
|
47
|
+
.ruby-version
|
|
48
|
+
.ruby-gemset
|
|
48
49
|
|
|
49
50
|
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
|
50
51
|
.rvmrc
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# RubyGem mobile_devices
|
|
2
2
|
|
|
3
|
-
Convert code names into real names using [@rikas/iosdevices](https://github.com/rikas/iosdevices) and data from [
|
|
3
|
+
Convert code names into real names using [@rikas/iosdevices](https://github.com/rikas/iosdevices) and data from Google's [supported devices list](https://storage.googleapis.com/play_public/supported_devices.csv).
|
|
4
4
|
|
|
5
5
|
```
|
|
6
6
|
require 'mobile_devices'
|
|
@@ -11,3 +11,25 @@ puts MobileDevices.get_name('iPhone6,2')
|
|
|
11
11
|
puts MobileDevices.get_name('zerofltespr')
|
|
12
12
|
# "Galaxy S6"
|
|
13
13
|
```
|
|
14
|
+
|
|
15
|
+
## Android data
|
|
16
|
+
|
|
17
|
+
Android names come from `data/android-devices-min.json`, generated from Google
|
|
18
|
+
Play's [supported devices CSV](https://storage.googleapis.com/play_public/supported_devices.csv)
|
|
19
|
+
(last refreshed October 2026). Each row is
|
|
20
|
+
`[retail branding, marketing name, device codename, model]`; lookups are by
|
|
21
|
+
device codename (`Build.PRODUCT`). When multiple devices share a codename, the
|
|
22
|
+
last row in the file wins.
|
|
23
|
+
|
|
24
|
+
## Tests
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
bundle exec ruby test/test_mobile_devices.rb
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Requirements
|
|
31
|
+
|
|
32
|
+
Ruby >= 3.1, as of version 0.4.0.
|
|
33
|
+
|
|
34
|
+
Version 0.4.0 tracks [ios-devices](https://rubygems.org/gems/ios-devices) 0.4.0,
|
|
35
|
+
which requires Ruby 3.1 or newer. On Ruby 2.7 or 3.0, use mobile_devices 0.3.0.
|