All Projects → rikas → iosdevices

rikas / iosdevices

Licence: MIT License
iOS device model translation from Apple device types.

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to iosdevices

glimmer-dsl-swt
Glimmer DSL for SWT (JRuby Desktop Development GUI Framework)
Stars: ✭ 53 (+278.57%)
Mutual labels:  ruby-library
cutie-shell
A mobile QtWayland compositor and shell and for smartphones and tablets.
Stars: ✭ 21 (+50%)
Mutual labels:  devices
device-mockups
No longer mirroring this repo with .org
Stars: ✭ 27 (+92.86%)
Mutual labels:  devices
glimmer-dsl-tk
Glimmer DSL for Tk (Ruby Tk Desktop Development GUI Library)
Stars: ✭ 26 (+85.71%)
Mutual labels:  ruby-library
goacs
No description or website provided.
Stars: ✭ 24 (+71.43%)
Mutual labels:  devices
ruby terraform
A simple Ruby wrapper for invoking terraform commands.
Stars: ✭ 92 (+557.14%)
Mutual labels:  ruby-library
decoder
Efficient, portable and lightweight library for Internet of Things payload decoding.
Stars: ✭ 59 (+321.43%)
Mutual labels:  devices
indicium
Portable, advanced system information utility
Stars: ✭ 46 (+228.57%)
Mutual labels:  devices
iyzipay-ruby
iyzipay api ruby client
Stars: ✭ 37 (+164.29%)
Mutual labels:  ruby-library
azure-iot-explorer
Cross-platform UI for interacting with devices attached to Azure IoT Hub
Stars: ✭ 174 (+1142.86%)
Mutual labels:  devices
activerecord-crate-adapter
Ruby on Rails ActiveRecord adapter for CrateDB
Stars: ✭ 27 (+92.86%)
Mutual labels:  ruby-library
The-Ruby-Workshop
A New, Interactive Approach to Learning Ruby
Stars: ✭ 26 (+85.71%)
Mutual labels:  ruby-library
lwpkt
Lightweight packet protocol structure for multi-device communication focused on RS-485
Stars: ✭ 71 (+407.14%)
Mutual labels:  devices
glimmer-dsl-opal
Glimmer DSL for Opal (Pure-Ruby Web GUI and Auto-Webifier of Desktop Apps)
Stars: ✭ 22 (+57.14%)
Mutual labels:  ruby-library
open dota api
Ruby client for Dota 2 from OpenDotaAPI
Stars: ✭ 19 (+35.71%)
Mutual labels:  ruby-library
crate ruby
A Ruby client library for CrateDB.
Stars: ✭ 31 (+121.43%)
Mutual labels:  ruby-library
Ransack
Object-based searching.
Stars: ✭ 5,020 (+35757.14%)
Mutual labels:  ruby-library
minimal-ruby-project
A minimal Ruby project template
Stars: ✭ 40 (+185.71%)
Mutual labels:  ruby-library
IRLSize
A library for determining the actual physical size of pixels on an iOS device.
Stars: ✭ 14 (+0%)
Mutual labels:  devices

Gem Version Build Status

Ios::Devices

This is a little Gem used to translate Apple iOS device types (like "iPhone6,1") to proper device names that you can use.

Installation

Add this line to your application's Gemfile:

gem 'ios-devices'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ios-devices

Usage

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.

  device = Ios::Devices.search('iPhone6,1')
  => #<Ios::Devices::Model:0x007fa55ba1a948 @extra=nil, @name="iPhone 5s", @device_type="iPhone6,1">

  device.name
  => "iPhone 5s"

  device = Ios::Devices.search('iPad2,2')
  => #<Ios::Devices::Model:0x007fa55b957308 @extra="GSM", @name="iPad 2", @device_type="iPad2,2">

  device.name
  => "iPad 2"

  device.extra
  => "GSM"

Contributing

  1. Fork it (https://github.com/rikas/iosdevices/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].