anjlab/mechanize_clip — pull request #1 by alxjrvs (2012-12-10 06:56:44+00:00)
Title: Custom agent

Hey Anjlab. Your gem was perfect for my needs, save for one little point: in the case of a scraper that scrapes behind a login, it's important to use the same agent. To that end, I added an m_agent argument to the get! and get fields. it has a default value of Mechanize.new, so all the specs run as is - however, for my purposes, I can also add in my own, already-behind-enemy-lines agent.