Skip to content

Commit

Permalink
Fix dependency check for Tumblr gem (huginn#1615)
Browse files Browse the repository at this point in the history
  • Loading branch information
cantino authored Aug 5, 2016
1 parent d627a18 commit ddb35e8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/models/agents/tumblr_publish_agent.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
require "tumblr_client"

module Agents
class TumblrPublishAgent < Agent
include TumblrConcern

cannot_be_scheduled!

gem_dependency_check { defined?(Tumblr::Client) }

description <<-MD
The Tumblr Publish Agent publishes Tumblr posts from the events it receives.
Expand Down Expand Up @@ -58,8 +58,6 @@ class TumblrPublishAgent < Agent
Set `expected_update_period_in_days` to the maximum amount of time that you'd expect to pass between Events being created by this Agent.
MD

gem_dependency_check { defined?(Tumblr) }

def validate_options
errors.add(:base, "expected_update_period_in_days is required") unless options['expected_update_period_in_days'].present?
end
Expand Down

0 comments on commit ddb35e8

Please sign in to comment.