![]() If you want to keep your wurfl.zip up-to-date with the ScientiaMobile data release schedule, please consider applying WURFL Updater. ![]() # Release the device object to avoid memory leaks Print("is_ios = " + dev.get_capability("is_ios") + "\n") # virtual capability Print("is_mobile = " + dev.get_capability("is_mobile") + "\n") # capability Print("deviceid = " + dev.get_device_id() + "\n") # device ID # Lookup a UserAgent string (renamed device method "parse_useragent" to "lookup_useragent" startingĭev = MyWurfl.lookup_useragent(UserAgent) (KHTML, like Gecko) SamsungBrowser/4.0 Chrome/.133 Mobile Safari/537.36" UserAgent = "Mozilla/5.0 (Linux Android 5.0 SAMSUNG SM-G925 Build/LRX21V) AppleWebKit/537.36\ MyWurfl = Wurfl.new("wurfl.zip", patches=, engine_target=:WURFL_ENGINE_TARGET_DEFAULT,\Ĭache_provider=:WURFL_CACHE_PROVIDER_LRU, cache_extra_config="10000") Here is an example to get started: require 'wurfl_obj' Note: if you encounter any problem with RubyInstaller, please verify that you have correctly Install the gem: C:\> gem install -no-ri -no-rdoc wurfl-.gem On Windows, WURFL InFuze libs go to C:\Windows\System32. The Ruby module has been tested with a RubyInstallerĮnvironment on Windows. Now install the gem: $ sudo gem install -no-ri -no-rdoc wurfl-.gem On Redhat/CentOS: $ sudo yum install ruby-devel On debian based Linux: $ sudo apt-get install ruby-dev If you have not already installed libwurfl, instructionsĬan be found here.You will need ruby-dev and rubygems: WURFL InFuze for Ruby is available as a gem and requires the WURFL InFuze C API ![]() ![]() Release notes for each API can be found here. ![]() If you have not already installed libwurfl, Libwurfl is provided in your Customer Vault/FileX. In order for the Module to work it is ESSENTIAL that the libwurfl library is installed on your system. It is available for Linux and MacOS X platforms for Ruby versions 1.9 WURFL InFuze for Ruby is a module wrapping the WURFL C API andĮncapsulating it in an object oriented manner to provide a fast and intuitive ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |