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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ae909b65b57f6472d1794dcad83142329bbf1c497131692ee5f4219d1bb77ad
4
- data.tar.gz: 82c9f004555eaab7e20fac3f63ab820ebeeef78b9e997d59c8c3fe5c24ee75c7
3
+ metadata.gz: 97c4456f8d100d6535822a64762eeb6cf843544c2805b4ab64daf8e1452722d1
4
+ data.tar.gz: 0c9d377c2cf2443af6d752960e926b16328ab903945668458d937942957d1300
5
5
  SHA512:
6
- metadata.gz: 2093d61a791fdd9652cbc52341132417338253224e064d382e2311ec04475e1141d3809f8cedad47dd3f9a5e1bb39fd2405fa3e9991c3f095c2e85e6422b990f
7
- data.tar.gz: 57bf60a2aed768500f3ffb66cc19c8bf5e592e20aae1ea10ba26685ec579fccd7f3a1450d20d56267d17d7f306c05c99f96a969a8cfe33987b2ec9bd674db9df
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
- # Gemfile.lock
46
- # .ruby-version
47
- # .ruby-gemset
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 [@vinuthomas/android-devices](https://github.com/vinuthomas/android-devices).
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.