deviceify 0.0.2 → 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -2
- data/lib/deviceify/map.rb +2 -2
- data/lib/deviceify/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 310388e796a8771a8665dff760383888f77c6698
|
4
|
+
data.tar.gz: c8dc3bd1280cb85c782963c3e6a7caf2b1ce9c17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15b5666db4efb485a8ce0f03e3034e28417b98011d9515a6dfca58d273a2407ab00ba892e1b33bc7cf6b1bb35784c895be6664cde4b7c9ad23300ffc52bf7378
|
7
|
+
data.tar.gz: c944afd661d26afb80d211704327dbeabf9a024a8873a653a792502ee3c4758f9e2873948ec294fbe875e5d7cecdf4fa61781d8d7a42dfc78478eb993001b902
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Deviceify
|
2
2
|
|
3
|
-
|
3
|
+
Turns iOS device platform strings into usable info.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -18,7 +18,16 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
```Ruby
|
22
|
+
Deviceify::Map.device 'iPhone1,1'
|
23
|
+
=> #<Deviceify::Device:0x007fb9d307c6c0 @name="iPhone", @generation="iPhone 2G", @fcc_ids=["BCGA1203"], @sizes=["4GB", "8GB", "16GB"], @models=["A1203"]>
|
24
|
+
|
25
|
+
Deviceify::Map.name 'iPhone4,1'
|
26
|
+
=> "iPhone 4S"
|
27
|
+
|
28
|
+
Deviceify::Map.name 'iPhone9,1'
|
29
|
+
=> "iPhone9,1"
|
30
|
+
```
|
22
31
|
|
23
32
|
## Contributing
|
24
33
|
|
data/lib/deviceify/map.rb
CHANGED
@@ -227,8 +227,8 @@ module Deviceify
|
|
227
227
|
sizes: %w[16GB 32GB 64GB]
|
228
228
|
},
|
229
229
|
"iPhone5,2" => {
|
230
|
-
name: "
|
231
|
-
generation: "
|
230
|
+
name: "iPhone 5",
|
231
|
+
generation: "iPhone 5",
|
232
232
|
models: %w[A1429 A1442],
|
233
233
|
fcc_ids: %w[BCG‑E2599A],
|
234
234
|
sizes: %w[16GB 32GB 64GB]
|
data/lib/deviceify/version.rb
CHANGED