Sha256: 5bc12d77b617644a1e8ee18a44b494a2fad025d9b72a28ea3771ba93e86a702a
Contents?: true
Size: 1.23 KB
Versions: 3
Compression:
Stored size: 1.23 KB
Contents
module Mobylette # This is a mobile_user_agents object, you may pass your own implementation of this # to the mobylette_config, it must return respond to call, returning a regexp # for matching mobile user agents. # # mobylette_config do |config| # config[:mobile_user_agents] = proc { /iphone|android/ } # end # class MobileUserAgents # Returns a list of mobile user agents # def call() Regexp.union(DEFAULT_USER_AGENTS) end # List of all mobile user agents # DEFAULT_USER_AGENTS = %w( palm blackberry nokia phone midp mobi symbian chtml ericsson minimo audiovox motorola samsung telit upg1 windows\ ce ucweb astel plucker x320 x240 j2me sgh portable sprint docomo kddi softbank android mmp pdxgw netfront xiino vodafone portalmmm sagem mot- sie- ipod up.b webos amoi novarra cdm alcatel pocket ipad iphone mobileexplorer mobile maemo fennec silk playbook ) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mobylette-3.5 | lib/mobylette/mobile_user_agents.rb |
mobylette-3.4.1 | lib/mobylette/mobile_user_agents.rb |
mobylette-3.3.2 | lib/mobylette/mobile_user_agents.rb |