Sha256: 20997429562083ae56d653b262cc100c405a8545e5d6c12ca96b60fab49eed28
Contents?: true
Size: 549 Bytes
Versions: 2
Compression:
Stored size: 549 Bytes
Contents
require 'rubygems' require 'sinatra' $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rack-mobile-detect' use Rack::MobileDetect # Very simple sinatra app that allows debugging of the headers with # Rack::MobileDetect. Also useful for looking at various mobile phone # headers. get '/' do content_type 'text/plain' env_string = env.sort.map{ |v| v.join(': ') }.join("\n") + "\n" # Print to log if debug is passed, i.e.: # http://localhost:4567/?debug puts env_string if params.key?('debug') env_string end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rack-mobile-detect-0.1.1 | util/echo_env.rb |
rack-mobile-detect-0.1.0 | util/echo_env.rb |