Skip to content

Commit

Permalink
bump ruby-oembed
Browse files Browse the repository at this point in the history
  • Loading branch information
jhass committed Sep 19, 2013
1 parent 68da48f commit ad20a84
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'


Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
5 changes: 1 addition & 4 deletions config/initializers/oembed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
# 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,
Expand All @@ -35,4 +32,4 @@

OEmbed::Providers.register_fallback(OEmbed::ProviderDiscovery)

TRUSTED_OEMBED_PROVIDERS = OEmbed::Providers
TRUSTED_OEMBED_PROVIDERS = OEmbed::Providers

0 comments on commit ad20a84

Please sign in to comment.