lib/slack-ruby-bot/config.rb in slack-ruby-bot-0.12.0 vs lib/slack-ruby-bot/config.rb in slack-ruby-bot-0.13.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module SlackRubyBot module Config extend self ATTRS = %i[token url aliases user user_id team team_id allow_message_loops send_gifs logger].freeze @@ -9,9 +11,10 @@ allow_message_loops end def send_gifs? return false unless defined?(Giphy) + v = boolean_from_env('SLACK_RUBY_BOT_SEND_GIFS') send_gifs.nil? ? (v.nil? || v) : send_gifs end def reset!