Sha256: 54eaebc57c5301b57f44828c355408625b5afbbbdd4db311125323c05ef2fa4a

Contents?: true

Size: 319 Bytes

Versions: 11

Compression:

Stored size: 319 Bytes

Contents

Burglar.extra_dep('mechanize', 'mechanize')

module LogCabin
  module Modules
    ##
    # Provide a helper to scrape websites
    module Mechanize
      def mech
        return @mech if @mech
        @mech = ::Mechanize.new
        setup_mech if respond_to? :setup_mech, true
        @mech
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
burglar-0.3.2 lib/burglar/helpers/mechanize.rb
burglar-0.3.1 lib/burglar/helpers/mechanize.rb
burglar-0.3.0 lib/burglar/helpers/mechanize.rb
burglar-0.2.0 lib/burglar/helpers/mechanize.rb
burglar-0.1.4 lib/burglar/helpers/mechanize.rb
burglar-0.1.3 lib/burglar/helpers/mechanize.rb
burglar-0.1.2 lib/burglar/helpers/mechanize.rb
burglar-0.1.1 lib/burglar/helpers/mechanize.rb
burglar-0.1.0 lib/burglar/helpers/mechanize.rb
burglar-0.0.3 lib/burglar/helpers/mechanize.rb
burglar-0.0.2 lib/burglar/helpers/mechanize.rb