Sha256: 2100741cdf394811ea8fe0ffede9319657f9367ab8c6a9fe714ccf64cd3eef49
Contents?: true
Size: 641 Bytes
Versions: 2
Compression:
Stored size: 641 Bytes
Contents
require "open-uri" require "multi_json" require "nokogiri" require "mustache" require "opengraph_parser" require "verbal_expressions" require "ostruct" require "moneta" require_relative "onebox/version" require_relative "onebox/preview" require_relative "onebox/matcher" require_relative "onebox/engine" module Onebox DEFAULTS = { cache: Moneta.new(:Memory, expires: true, serializer: :json) } @@defaults = DEFAULTS def self.preview(url, options = Onebox.defaults) Preview.new(url, options) end def self.defaults @@defaults end def self.defaults=(options) @@defaults = DEFAULTS.merge(options) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
onebox-1.0.1 | lib/onebox.rb |
onebox-1.0.0 | lib/onebox.rb |