Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added information about the oohEmbed becoming part of Embed.ly

  • Loading branch information...
commit 0c4a50428a539d6f333e868723401226d28c1333 1 parent 968480f
@metavida metavida authored
Showing with 14 additions and 4 deletions.
  1. +2 −0  CHANGELOG.rdoc
  2. +12 −4 lib/oembed/providers.rb
View
2  CHANGELOG.rdoc
@@ -2,9 +2,11 @@
== 0.8.2 - Unreleased
+* Added built-in providers for Instagram, Slideshare and Yfrog
* Improved support (and error detection) for custom OEmbed::Formatter backends. (Marcos Wright Kuhns)
* DRYed up OEmbed::Formatter::JSON and XML methods into OEmbed::Formatter::Base (Marcos Wright Kuhns)
* More consistently raise an OEmbed::Parse error if there is any sort of problem parsing the server response, whether it's an expected error type or not. (Marcos Wright Kuhns)
+* Added in-code comments about the oohEmbed service becoming part of Embed.ly
== 0.8.1 - 27 February 2011
View
16 lib/oembed/providers.rb
@@ -114,6 +114,8 @@ def get(url, options = {})
# Provider for youtube.com
# http://apiblog.youtube.com/2009/10/oembed-support.html
+ # To get the iframe embed code, instead of flash-based, pass
+ # :flash=>1 as a query in your get request.
Youtube = OEmbed::Provider.new("http://www.youtube.com/oembed")
Youtube << "http://*.youtube.com/*"
Youtube << "http://*.youtu.be/*"
@@ -171,7 +173,10 @@ def get(url, options = {})
#Pownce << "http://*.pownce.com/*"
# Provider for oohembed.com, which is a provider agregator. See
- # OEmbed::Provders::OohEmbed.urls for a full list of supported url schemas.
+ # OEmbed::Providers::OohEmbed.urls for a full list of supported url schemas.
+ # Embed.ly has taken over the oohembed.com domain and as of July 20 all oohEmbed
+ # request will require you use an API key. For details on the transition see
+ # http://blog.embed.ly/oohembed
OohEmbed = OEmbed::Provider.new("http://oohembed.com/oohembed/", :json)
OohEmbed << "http://*.5min.com/Video/*" # micro-video host
OohEmbed << %r{http://(.*?).amazon.(com|co.uk|de|ca|jp)/(.*?)/(gp/product|o/ASIN|obidos/ASIN|dp)/(.*?)} # Online product shopping
@@ -207,9 +212,12 @@ def get(url, options = {})
OohEmbed << %r{http://yfrog.(com|ru|com.tr|it|fr|co.il|co.uk|com.pl|pl|eu|us)/(.*?)} # image & video hosting
OohEmbed << "http://*.youtube.com/watch*"
- # Provider for embedly.com, which is a provider agregator. See
- # OEmbed::Provders::OohEmbed.urls for a full list of supported url schemas.
- Embedly = OEmbed::Provider.new("http://api.embed.ly/v1/api/oembed")
+ # Provider for Embedly.com, which is a provider agregator. See
+ # OEmbed::Providers::Embedly.urls for a full list of supported url schemas.
+ # http://embed.ly/docs/endpoints/1/oembed
+ # You'll need to add your Embed.ly API key to each request as the "key"
+ # parameter. To get an API key you'll need to sign up here: http://embed.ly/pricing
+ Embedly = OEmbed::Provider.new("http://api.embed.ly/1/oembed")
# Add all known URL regexps for Embedly. To update this list run `rake oembed:update_embedly`
YAML.load_file(File.join(File.dirname(__FILE__), "/providers/embedly_urls.yml")).each do |url|
Embedly << url

0 comments on commit 0c4a504

Please sign in to comment.
Something went wrong with that request. Please try again.