Skip to content

Commit

Permalink
UrlFetchTitle: 設定の既定値を含めた
Browse files Browse the repository at this point in the history
refs #5
  • Loading branch information
ochaochaocha3 committed Mar 5, 2015
1 parent 07d7516 commit 11ba742
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rgrb/plugin/url_fetch_title/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ def initialize(*args)
end

def configure(config_data)
@no_ssl_verify = config_data['NoSSLVerify']
@no_ssl_verify = config_data['NoSSLVerify'] || []
@agent.open_timeout = config_data['OpenTimeout']
@agent.read_timeout = config_data['ReadTimeout']
@reply_prefix = config_data['ReplyPrefix']
@reply_suffix = config_data['ReplySuffix']
@reply_prefix = config_data['ReplyPrefix'] || 'Fetch title: '
@reply_suffix = config_data['ReplySuffix'] || ''
end

# 誰かが発言した URL にアクセスし、ページの title タグを取得する
Expand Down

0 comments on commit 11ba742

Please sign in to comment.