Sha256: 7c16819c23e07ffb1eb6d8f618c710de63f8e3f8594aa4960741d8ec8a475201
Contents?: true
Size: 718 Bytes
Versions: 1
Compression:
Stored size: 718 Bytes
Contents
require "open-uri" require "multi_json" require "nokogiri" require "mustache" require "opengraph_parser" require "hexpress" require "hexpress/web" require "ostruct" require "moneta" require_relative "onebox/version" require_relative "onebox/preview" require_relative "onebox/matcher" require_relative "onebox/engine" require_relative "onebox/view" module Onebox DEFAULTS = { cache: Moneta.new(:Memory, expires: true, serializer: :json), timeout: 10 } @@defaults = DEFAULTS def self.preview(url, options = Onebox.defaults) Preview.new(url, options) end def self.defaults OpenStruct.new(@@defaults) end def self.defaults=(options) @@defaults = DEFAULTS.merge(options) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.1.0 | lib/onebox.rb |