module Jekyll::Tweetsert
Constants
- DEFAULT_REQUEST_HEADERS
- REQUEST_SIGNER
- TWITTER_OEMBED_API
- VERSION
Public Class Methods
backtrace(e)
click to toggle source
# File lib/jekyll-tweetsert.rb, line 51 def self.backtrace(e) puts e.backtrace if @debug end
debug(msg)
click to toggle source
# File lib/jekyll-tweetsert.rb, line 35 def self.debug(msg) puts "DEBUG> #{msg}" if @debug end
debug_state(state)
click to toggle source
TODO: Move stuff here class TweetPost < Jekyll::Document
def initialize(path, site, docs, date, id, content) @path = path @site = site @collection = docs self.data['date'] = date self.data['title'] = "Tweet #{id}" self.content = content end
end
# File lib/jekyll-tweetsert.rb, line 31 def self.debug_state(state) @debug = state end
error(msg)
click to toggle source
# File lib/jekyll-tweetsert.rb, line 47 def self.error(msg) Jekyll.logger.error "Tweetsert:", msg end
info(msg)
click to toggle source
# File lib/jekyll-tweetsert.rb, line 39 def self.info(msg) Jekyll.logger.info "Tweetsert:", msg end
warn(msg)
click to toggle source
# File lib/jekyll-tweetsert.rb, line 43 def self.warn(msg) Jekyll.logger.warn "Tweetsert:", msg end