Permalink
Browse files

Add speakerdeck.com endpoint

  • Loading branch information...
1 parent 284bc28 commit f5a07a6f5b9aacf8bdae9189ea3934c89f6fcd59 @czarneckid czarneckid committed May 25, 2012
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 f5a07a6

Please sign in to comment.