Sha256: cdb7c84f46822f5112b7ec57417105332114402fc74f01232c81e1dfbd822303

Contents?: true

Size: 456 Bytes

Versions: 1

Compression:

Stored size: 456 Bytes

Contents

## Config::WebPost -- Yuanying
##
## post to web page with WWW::Mechanize agent.
## 
## - module: Config::WebPost
##   config:
##     url: http://www.pixiv.net/index.php
##     params:
##       pixiv_id: yuanying
##       pass: password-dayo
##
require 'yapra/plugin/mechanize_base'

module Yapra::Plugin::Config
  class WebPost < Yapra::Plugin::MechanizeBase
    def run(data)
      agent.post(config['url'], config['params'])
      data
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yapra-0.1.0 lib-plugins/yapra/plugin/config/web_post.rb