Deviceify
Turns iOS device platform strings into usable info.
Installation
Add this line to your application's Gemfile:
gem 'deviceify'
And then execute:
$ bundle
Or install it yourself as:
$ gem install deviceify
Usage
Deviceify.device 'iPhone1,1'
=> #<Deviceify::Device:0x007fb9d307c6c0 @name="iPhone", @generation="iPhone 2G", @fcc_ids=["BCGA1203"], @sizes=["4GB", "8GB", "16GB"], @models=["A1203"]>
Deviceify.name 'iPhone4,1'
=> "iPhone 4S"
Deviceify.name 'iPhone9,1'
=> "iPhone9,1"
Contributing
- Fork it ( http://github.com/
/deviceify/fork ) - Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request