
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
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:
gem '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.
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"
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that ios-devices demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.