Permalink
Browse files

Merge pull request #2 from agoragames/speakerdeck-support

Add speakerdeck.com endpoint
  • Loading branch information...
hypomodern committed May 25, 2012
2 parents 284bc28 + f5a07a6 commit 22728433bed202c0e719fe3f731dee6f2311c71a
Showing with 4 additions and 2 deletions.
  1. +2 −1 lib/oembedr/providers.rb
  2. +2 −1 spec/oembedr/providers_spec.rb
View
@@ -24,7 +24,8 @@ module Providers
/dotsub\.com/ => 'http://dotsub.com/services/oembed',
/clikthrough\.com/ => 'http://clikthrough.com/services/oembed',
/kinomap\.com/ => 'http://www.kinomap.com/oembed',
- /photobucket\.com/ => 'http://photobucket.com/oembed'
+ /photobucket\.com/ => 'http://photobucket.com/oembed',
+ /speakerdeck\.com/ => 'https://speakerdeck.com/oembed.{format}'
# ...
}
@@ -45,7 +45,8 @@ module Oembedr
"http://dotsub.com/view/10e3cb5e-96c7-4cfb-bcea-8ab11e04e090" => 'http://dotsub.com/services/oembed',
"http://www.clikthrough.com/theater/video/55" => 'http://clikthrough.com/services/oembed',
"http://www.kinomap.com/kms-vzkpc7" => 'http://www.kinomap.com/oembed',
- "http://img.photobucket.com/albums/v211/JAV123/Michael%20Holland%20Candle%20Burning/_MG_5661.jpg" => 'http://photobucket.com/oembed'
+ "http://img.photobucket.com/albums/v211/JAV123/Michael%20Holland%20Candle%20Burning/_MG_5661.jpg" => 'http://photobucket.com/oembed',
+ "https://speakerdeck.com/u/czarneckid/p/railsconf-2012-stack-smashing-cornflower-blue" => 'https://speakerdeck.com/oembed.{format}'
}.each do |(test_url, expected_value)|
it "should match #{test_url} to #{expected_value}" do
Oembedr.service_endpoint(test_url).should == expected_value

0 comments on commit 2272843

Please sign in to comment.