Sha256: b26fb51d28613020eda3063928ca13632e15d636b011c472fdd7402086c8e66e
Contents?: true
Size: 592 Bytes
Versions: 1
Compression:
Stored size: 592 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib') require "wurfl/uaproftowurfl" # The code below is called if this file is executed from the command line. def usage puts "Usage: usaprofparser.rb uaprof_files" puts "No files passed to parse." exit 1 end if ARGV.size == 0 usage end uaprof = Wurfl::UAProfToWURLF.new # Parse all the files and merge them into one UAProf. # Following profs take precedence of previous ones ARGV.each do |file| uaprof.parse_UAProf(file) end # Now output the mapped WURFL to standard out uaprof.output_WURFL
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wurfl-1.0.2 | bin/uaproftowurfl.rb |