From ad20a8487b8d41a281ca0dd97d6d2bd93caf9942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Thu, 19 Sep 2013 23:39:13 +0200 Subject: [PATCH] bump ruby-oembed --- Gemfile | 2 +- Gemfile.lock | 4 ++-- config/initializers/oembed.rb | 5 +---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Gemfile b/Gemfile index eb898ab26..f20ab5209 100644 --- a/Gemfile +++ b/Gemfile @@ -63,7 +63,7 @@ gem 'nokogiri', '1.6.0' gem 'rails_autolink', '1.1.0' gem 'redcarpet', '3.0.0' gem 'roxml', '3.1.6' -gem 'ruby-oembed', '0.8.8' +gem 'ruby-oembed', '0.8.9' gem 'opengraph_parser', '0.2.3' diff --git a/Gemfile.lock b/Gemfile.lock index 1a95d036f..f435e7294 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -350,7 +350,7 @@ GEM rspec-expectations (~> 2.13.0) rspec-mocks (~> 2.13.0) ruby-hmac (0.4.0) - ruby-oembed (0.8.8) + ruby-oembed (0.8.9) ruby-progressbar (1.1.1) rubyzip (0.9.9) safe_yaml (0.9.5) @@ -493,7 +493,7 @@ DEPENDENCIES roxml (= 3.1.6) rspec-instafail (= 0.2.4) rspec-rails (= 2.13.2) - ruby-oembed (= 0.8.8) + ruby-oembed (= 0.8.9) sass-rails (= 3.2.6) selenium-webdriver (= 2.34.0) sidekiq (= 2.11.1) diff --git a/config/initializers/oembed.rb b/config/initializers/oembed.rb index e7d98d648..e8334cdad 100644 --- a/config/initializers/oembed.rb +++ b/config/initializers/oembed.rb @@ -7,9 +7,6 @@ require 'uri' # note that 'trusted_endpoint_url' is the only information # in OEmbed that we can trust. anything else may be spoofed! -# patch in support for new https soundcloud -OEmbed::Providers::SoundCloud << "https://*.soundcloud.com/*" - oembed_provider_list = [ OEmbed::Providers::Youtube, OEmbed::Providers::Vimeo, @@ -35,4 +32,4 @@ end OEmbed::Providers.register_fallback(OEmbed::ProviderDiscovery) -TRUSTED_OEMBED_PROVIDERS = OEmbed::Providers \ No newline at end of file +TRUSTED_OEMBED_PROVIDERS = OEmbed::Providers