Skip to content

Commit

Permalink
Add Kickstarted and TED built-in providers
Browse files Browse the repository at this point in the history
  • Loading branch information
metavida committed Mar 26, 2017
1 parent 19dc574 commit f2ae6e4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

* Add built-in Speaker Deck provider; Issue #67 (Camille Roux)
* Add built-in Giphy provider
* Add built-in Kickstarter provider
* Add built-in TED provider
* Add built-in CodePen provider
* Update built-in Hulu provider to support https

Expand Down
12 changes: 12 additions & 0 deletions lib/oembed/providers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,12 @@ def add_official_provider(provider_class, sub_type=nil)
Imgur << "http://*.imgur.com/gallery/*"
add_official_provider(Imgur)

# Provider for Kickstarter
Kickstarter = OEmbed::Provider.new("https://www.kickstarter.com/services/oembed")
Kickstarter << "http://www.kickstarter.com/projects/*"
Kickstarter << "https://www.kickstarter.com/projects/*"
add_official_provider(Kickstarter)

# provider for mlg-tv
# http://tv.majorleaguegaming.com/oembed
MlgTv = OEmbed::Provider.new("http://tv.majorleaguegaming.com/oembed")
Expand Down Expand Up @@ -340,6 +346,12 @@ def add_official_provider(provider_class, sub_type=nil)
Skitch << "https://*.skitch.com/*"
add_official_provider(Skitch)

# Provider for TED
Ted = OEmbed::Provider.new("https://www.ted.com/talks/oembed.{format}")
Ted << "http://*.ted.com/talks/*"
Ted << "https://*.ted.com/talks/*"
add_official_provider(Ted)

# Provider for tumblr.com
Tumblr = OEmbed::Provider.new("http://www.tumblr.com/oembed/1.0/", :json)
Tumblr << "http://*.tumblr.com/post/*"
Expand Down

0 comments on commit f2ae6e4

Please sign in to comment.