lib/slack-ruby-bot/config.rb in slack-ruby-bot-0.8.2 vs lib/slack-ruby-bot/config.rb in slack-ruby-bot-0.9.0
- old
+ new
@@ -8,11 +8,12 @@
def allow_message_loops?
allow_message_loops
end
def send_gifs?
+ return false unless defined?(Giphy)
v = boolean_from_env('SLACK_RUBY_BOT_SEND_GIFS')
- v.nil? ? (send_gifs.nil? || send_gifs) : v
+ send_gifs.nil? ? (v.nil? || v) : send_gifs
end
def reset!
ATTRS.each { |attr| send("#{attr}=", nil) }
end