This helper has finally been moved into a gem called nav_lynx!
https://github.com/vigetlabs/nav_lynx
http://rubygems.org/gems/nav_lynx
Thanks to @brianjlandau and @reagent for getting that set up and tested!
module Capybara::Poltergeist | |
class Client | |
private | |
def redirect_stdout | |
prev = STDOUT.dup | |
prev.autoclose = false | |
$stdout = @write_io | |
STDOUT.reopen(@write_io) | |
prev = STDERR.dup |
// proxy.pac | |
function FindProxyForURL(url, host) { | |
if (shExpMatch(host, "*.dev")) { | |
return "PROXY local:3000"; | |
} | |
if (shExpMatch(host, "dev")) { | |
return "PROXY local:3000"; | |
} | |
return "DIRECT"; | |
} |
This helper has finally been moved into a gem called nav_lynx!
https://github.com/vigetlabs/nav_lynx
http://rubygems.org/gems/nav_lynx
Thanks to @brianjlandau and @reagent for getting that set up and tested!
<?xml version="1.0" encoding="UTF-8"?> | |
<VAST version="2.0"> | |
<Ad id="preroll-1"> | |
<InLine> | |
<AdSystem>2.0</AdSystem> | |
<AdTitle>5773100</AdTitle> | |
<Creatives> | |
<Creative> | |
<Linear> | |
<Duration>00:00:01</Duration> |
module OverAchievement | |
def level_up(level, *args, &block) | |
options = args.extract_options! | |
options[:on] = options[:on].to_a | |
options[:on].each do |callback| | |
defined_levels[callback] ||= [] | |
defined_levels[callback] << block | |
end |