Name: iosdevices
Owner: Bitrise
Description: iOS device model translation from Apple device types.
Created: 2015-03-05 21:38:52.0
Updated: 2015-03-05 21:38:52.0
Pushed: 2015-01-05 10:44:33.0
Homepage: null
Size: 164
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This is a little Gem used to translate Apple iOS device types (like “iPhone6,1”) to proper device names that you can use.
Add this line to your application's Gemfile:
'ios-devices'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ios-devices
Just use the Ios::Devices.search
method with the Apple string and you should get a
Ios::Devices::Model
object. This object has an extra
attribute for things like internet
connection, revision model, etc.
s::Devices.search('iPhone6,1')
#<Ios::Devices::Model:0x007fa55ba1a948 @extra=nil, @name="iPhone 5s", @device_type="iPhone6,1">
s::Devices.search('iPad2,2')
#<Ios::Devices::Model:0x007fa55b957308 @extra="GSM", @name="iPad 2", @device_type="iPad2,2">
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)