lib/jekyll-twitter-plugin.rb in jekyll-twitter-plugin-1.0.0 vs lib/jekyll-twitter-plugin.rb in jekyll-twitter-plugin-1.0.1
- old
+ new
@@ -89,13 +89,13 @@
@status_url
end
end
class UnknownTypeClient
- def fetch; end
+ include TwitterJekyll::Cacheable
- def cache_key; end
+ def fetch; end
end
class TwitterTag < Liquid::Tag
ERROR_BODY_TEXT = 'Tweet could not be processed'
@@ -149,13 +149,13 @@
end
end
def create_twitter_rest_client
@twitter_client = Twitter::REST::Client.new do |config|
- config.consumer_key = ENV.fetch('twitter_consumer_key')
- config.consumer_secret = ENV.fetch('twitter_consumer_secret')
- config.access_token = ENV.fetch('twitter_access_token')
- config.access_token_secret = ENV.fetch('twitter_access_token_secret')
+ config.consumer_key = ENV.fetch('TWITTER_CONSUMER_KEY')
+ config.consumer_secret = ENV.fetch('TWITTER_CONSUMER_SECRET')
+ config.access_token = ENV.fetch('TWITTER_ACCESS_TOKEN')
+ config.access_token_secret = ENV.fetch('TWITTER_ACCESS_TOKEN_SECRET')
end
end
end
class TwitterTagNoCache < TwitterTag