New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wurfl_device

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wurfl_device

  • 0.2.4
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

WurflDevice

Ruby client library for mobile handset detection

Requirements

  • redis server

Installation

install using rubygems

gem install wurfl_device

or add to your Gemfile:

gem wurfl_device

and install it via Bundler:

$ bundle

Usage

require 'wurfl_device'

get capabilities hash from user agent

user_agent = 'Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaN95_8GB/20.0.016; Profile/MIDP-2.0 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413'
capabilities = WurflDevice.capabilities_from_user_agent(user_agent)

get capabilities hash from device id

device_id = 'generic'
capabilities = WurflDevice.capabilities_from_id(device_id)

get capability from user agent

user_agent = 'generic'
capability_name = 'id'
capability = WurflDevice.capabilities(capability_name, user_agent)

FAQs

Package last updated on 06 Jan 2012

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc