Permalink
Browse files

Merge pull request #4 from evendis/add_soundcloud

add soundcloud as oembedr provider
  • Loading branch information...
2 parents e1428a7 + 9e614bd commit ec49f41919161d53f2fc66305b59622461992aea @czarneckid czarneckid committed Jul 24, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −1 lib/oembedr/providers.rb
  2. +2 −1 spec/oembedr/providers_spec.rb
View
@@ -25,7 +25,8 @@ module Providers
/clikthrough\.com/ => 'http://clikthrough.com/services/oembed',
/kinomap\.com/ => 'http://www.kinomap.com/oembed',
/photobucket\.com/ => 'http://photobucket.com/oembed',
- /speakerdeck\.com/ => 'https://speakerdeck.com/oembed.{format}'
+ /speakerdeck\.com/ => 'https://speakerdeck.com/oembed.{format}',
+ /soundcloud\.com/ => 'http://soundcloud.com/oembed'
# ...
}
@@ -46,7 +46,8 @@ module Oembedr
"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',
- "https://speakerdeck.com/u/czarneckid/p/railsconf-2012-stack-smashing-cornflower-blue" => 'https://speakerdeck.com/oembed.{format}'
+ "https://speakerdeck.com/u/czarneckid/p/railsconf-2012-stack-smashing-cornflower-blue" => 'https://speakerdeck.com/oembed.{format}',
+ "http://soundcloud.com/cape910/17-cape-x-example-midnight-run" => 'http://soundcloud.com/oembed'
}.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 ec49f41

Please sign in to comment.