embedly/embedly-ruby — Issue #16: RuntimeError occurring
Author: coreyward
Created: 2012-02-27 20:22:22+00:00
State: open

Running Ruby 1.9.2 on Heroku Celadon Cedar stack in Rails 3.1.3. It's possible the URL is not valid for Embedly, or even that it's entirely invalid. If this is the case, I would expect Embedly to return an error and perhaps raise some subclass of StandardError.

### Code:

embedly = Embedly::API.new(:key => ENV['EMBEDLY_API_KEY'])
embedly_response = embedly.oembed :url => url, :width => 580

### Backtrace:

vendor/bundle/ruby/1.9.1/gems/embedly-1.0.0/lib/embedly/api.rb:118:in `apicall'
vendor/bundle/ruby/1.9.1/gems/embedly-1.0.0/lib/embedly/api.rb:169:in `method_missing'
[last line of above code]