From cbf3845e99dd6dffd1e89f6e897da095946a78b3 Mon Sep 17 00:00:00 2001 From: Ian Christian Myers Date: Sun, 2 Jun 2013 21:24:19 -0700 Subject: [PATCH] Added Findery and Zappos entries to the Oneboxer::Whitelist. Both Findery and Zappos support OpenGraph and work with the OpenGraphOneboxer. Added a comment at the top of whitelist.rb asking developers to check for OpenGraph support prior to creating a custom Onebox. --- lib/oneboxer/whitelist.rb | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/oneboxer/whitelist.rb b/lib/oneboxer/whitelist.rb index bddaa5a2a85..ec3905959b8 100644 --- a/lib/oneboxer/whitelist.rb +++ b/lib/oneboxer/whitelist.rb @@ -1,8 +1,19 @@ -module Oneboxer +#******************************************************************************# +# # +# Oneboxer already supports most sites using OpenGraph via the OpenGraphOnebox # +# class. If the site you want to create a onebox for supports OpenGraph, # +# please try adding the site to the whitelist below before creating a custom # +# parser or template. # +# # +#******************************************************************************# +module Oneboxer + module Whitelist def self.entries [ + Entry.new(/^https?:\/\/(?:www\.)?findery\.com\/.+/), + Entry.new(/^https?:\/\/(?:www\.)?zappos\.com\/.+/), Entry.new(/^https?:\/\/(?:www\.)?slideshare\.net\/.+/), Entry.new(/^https?:\/\/(?:www\.)?rottentomatoes\.com\/.+/), Entry.new(/^https?:\/\/(?:www\.)?cnn\.com\/.+/),