Sha256: 5ccbc965730227949ffb7222927a5921b85d0c80430a7a81114c9bbb42d2cbc5

Contents?: true

Size: 601 Bytes

Versions: 1

Compression:

Stored size: 601 Bytes

Contents

module Ubiquitously
  module CodeProject
    class Account < Ubiquitously::Service::Account
      def login
        page = agent.get("http://www.codeproject.com/script/Articles/Submit.aspx")
        form = page.form_with(:name => "subForm")
        form["Email"] = email
        form["Password"] = password
        page = form.submit
        
        authorized?(page.title =~ /Article Submission/i)
      end
    end
    
    class Post < Ubiquitously::Service::Post
      def create
        page = agent.get("http://www.codeproject.com/script/Articles/SubmitStep1.aspx")
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ubiquitously-0.1.0 lib/ubiquitously/services/code_project.rb