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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32856f6759a53de303923d2ec3de1949a343c103
4
- data.tar.gz: 8a3419f0f21adc8afcf18db4a779758d42aeac07
3
+ metadata.gz: 310388e796a8771a8665dff760383888f77c6698
4
+ data.tar.gz: c8dc3bd1280cb85c782963c3e6a7caf2b1ce9c17
5
5
  SHA512:
6
- metadata.gz: 9274ccb836a3a8ad9aad1ed3573308054988da358f1bddcd13d5ebed1ecf010dba1210eccd5a5afaf5ce7a3fb163022f74a0090aa428950b99e20c35de16d4ce
7
- data.tar.gz: 7276daed6aa9438883242bd8001481f24d3d45a815bb4302947b60d5be65538b43f90cbb4e74c013d5c5c119a371e349d08363ce322463b07d0f62d1506d31fe
6
+ metadata.gz: 15b5666db4efb485a8ce0f03e3034e28417b98011d9515a6dfca58d273a2407ab00ba892e1b33bc7cf6b1bb35784c895be6664cde4b7c9ad23300ffc52bf7378
7
+ data.tar.gz: c944afd661d26afb80d211704327dbeabf9a024a8873a653a792502ee3c4758f9e2873948ec294fbe875e5d7cecdf4fa61781d8d7a42dfc78478eb993001b902
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Deviceify
2
2
 
3
- TODO: Write a gem description
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
- TODO: Write usage instructions here
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: "<#name#>",
231
- generation: "<#gen#>",
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]
@@ -1,3 +1,3 @@
1
1
  module Deviceify
2
- VERSION = "0.0.2"
2
+ VERSION = "1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deviceify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: '1.0'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Skylar Schipper