Sha256: 13999d104df9ca45fd8e742e08d01a5c9eaa6cadef25b9675dcceba041e70f13

Contents?: true

Size: 841 Bytes

Versions: 1

Compression:

Stored size: 841 Bytes

Contents

module Ubiquitously
  module MetaFilter
    class Account < Ubiquitously::Service::Account
      def login
        page = agent.get("https://login.metafilter.com/")
        form = page.forms.first
        form["user_name"] = username
        form["user_pass"] = password
        page = form.submit
        
        authorize!(page.uri != "https://login.metafilter.com/logging-in.mefi")
      end
    end
    
    # You cannot post to the front page at this time.
    # This can be due to one of several things.
    # You may not have been a member long enough (1 week),
    # you may not have posted enough comments (at least 3),
    # or you may have already posted a link in the past 24 hours.
    class Post < Ubiquitously::Service::Post
      def create
        page = agent.get("http://www.metafilter.com/")
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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