lib/onebox.rb in onebox-1.7.7 vs lib/onebox.rb in onebox-1.7.8

- old
+ new

@@ -13,11 +13,13 @@ module Onebox DEFAULTS = { cache: Moneta.new(:Memory, expires: true, serializer: :json), connect_timeout: 5, timeout: 10, - max_download_kb: (10 * 1024), # 10MB - load_paths: [File.join(Gem::Specification.find_by_name("onebox").gem_dir, "templates")] + max_download_kb: (10 * 1024), # 10MB + load_paths: [File.join(Gem::Specification.find_by_name("onebox").gem_dir, "templates")], + allowed_ports: [80, 443], + allowed_schemes: ["http", "https"], } @@options = DEFAULTS def self.preview(url, options = Onebox.options)