Skip to content

Commit

Permalink
Fix dependency check for Tumblr gem
Browse files Browse the repository at this point in the history
  • Loading branch information
cantino committed Aug 3, 2016
1 parent b765c0c commit 8491396
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Gemfile.lock
Expand Up @@ -38,7 +38,7 @@ GIT

GIT
remote: git://github.com/tumblr/tumblr_client.git
revision: 0c59b04e49f2a8c89860613b18cf4e8f978d8dc7
revision: d7647bae2bafd557a8671ae8e60d1a30aed81bcd
branch: master
specs:
tumblr_client (0.8.5)
Expand Down Expand Up @@ -373,7 +373,8 @@ GEM
multi_json (~> 1.3)
oauth2 (~> 0.9.3)
omniauth (~> 1.2)
omniauth-tumblr (1.1)
omniauth-tumblr (1.2)
multi_json
omniauth-oauth (~> 1.0)
omniauth-twitter (1.0.1)
multi_json (~> 1.3)
Expand Down
6 changes: 2 additions & 4 deletions app/models/agents/tumblr_publish_agent.rb
@@ -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 8491396

Please sign in to comment.