lib/adsense-info.rb in adsense-info-1.0.0 vs lib/adsense-info.rb in adsense-info-1.0.1
- old
+ new
@@ -5,13 +5,13 @@
class Info
def initialize( username, password )
@username = username
@password = password
- @agent = Mechanize::Mechanize.new
end
def login!
+ @agent = Mechanize::Mechanize.new
page = @agent.get 'http://www.gmail.com'
form = page.forms.first
form.Email = @username
form.Passwd = @password
@agent.submit form