Sha256: 2cb583dbc515b9d667c5967ecfa0b6a06796d8fb77632ac68f95f6556ae4a017

Contents?: true

Size: 524 Bytes

Versions: 38

Compression:

Stored size: 524 Bytes

Contents

require 'capybara'

module Capybara::Mechanize
  class << self

    # Host that should be considered local (includes default_host)
    def local_hosts
      @local_hosts ||= begin
        default_host = URI.parse(Capybara.default_host || "").host || Capybara.default_host
        [default_host].compact
      end
    end
    
    def local_hosts=(hosts)
      @local_hosts = hosts
    end
  end
end

require 'capybara/mechanize/driver'

Capybara.register_driver :mechanize do |app|
  Capybara::Mechanize::Driver.new(app)
end

Version data entries

38 entries across 38 versions & 5 rubygems

Version Path
capybara-mechanize-1.10.1 lib/capybara/mechanize.rb
capybara-mechanize-1.10.0 lib/capybara/mechanize.rb
capybara-mechanize-1.9.0 lib/capybara/mechanize.rb
capybara-mechanize-1.8.0 lib/capybara/mechanize.rb
capybara-mechanize-1.7.0 lib/capybara/mechanize.rb
capybara-mechanize-1.6.0 lib/capybara/mechanize.rb
capybara-mechanize-1.5.0 lib/capybara/mechanize.rb
capybara-mechanize-1.4.1 lib/capybara/mechanize.rb
capybara-mechanize-1.4.0 lib/capybara/mechanize.rb
capybara-mechanize-1.1.0 lib/capybara/mechanize.rb
capybara-mechanize-1.0.2 lib/capybara/mechanize.rb
capybara-mechanize-1.0.1 lib/capybara/mechanize.rb
capybara-mechanize-1.0.0 lib/capybara/mechanize.rb
capybara-mechanize-0.4.0.rc1 lib/capybara/mechanize.rb
ryansch-capybara-mechanize-1.0.1 lib/capybara/mechanize.rb
ryansch-capybara-mechanize-1.0.0 lib/capybara/mechanize.rb
bbc-capybara-mechanize-0.4.5 lib/capybara/mechanize.rb
bbc-capybara-mechanize-0.4.2 lib/capybara/mechanize.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/capybara-mechanize-0.3.0/lib/capybara/mechanize.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/capybara-mechanize-0.3.0/lib/capybara/mechanize.rb