Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add speakerdeck.com endpoint #2

Merged
merged 1 commit into from

2 participants

@czarneckid
Owner

No description provided.

@hypomodern
Owner

:metal:

@hypomodern hypomodern merged commit 2272843 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 25, 2012
  1. @czarneckid
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 2 deletions.
  1. +2 −1  lib/oembedr/providers.rb
  2. +2 −1  spec/oembedr/providers_spec.rb
View
3  lib/oembedr/providers.rb
@@ -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}'
# ...
}
View
3  spec/oembedr/providers_spec.rb
@@ -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
Something went wrong with that request. Please try again.