Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

OhEmbedr is a super simple ruby OEmbed library.

tree: 4c657a35ea

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 doc
Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.markdown
Octocat-spinner-32 ohembedr.gemspec


OhEmbedr is the easiest way to avail of OEmbed services in ruby.


To install you must add the gemcutter source to your gem sources, as follows:

gem sources -a

After you've done that just install the gem:

gem install ohembedr


Using OhEmbed is super easy below is an example for getting OEmbed data for a vimeo video.

    o = => "", :maxwidth => 600)
    embed_data = o.gets
rescue OhEmbedr::UnsupportedError => error
    # URL not supported

embed_data now contains an hash with all the data about embedding the specified url. By wrapping our OhEmbed call with a begin rescue block we can pass any url to OhEmbed and take that the url isn't supported if UnsupportedError is raised. OhEmbed currently supports the following OEmbed providers:

  • YouTube
  • Vimeo
  • Flickr
  • Qik
  • Revision 3
  • Viddler
  • Hulu
  • Mobypicture

If you would like a provider to be added just open a GitHub ticket.

Something went wrong with that request. Please try again.