Skip to content

Instantly share code, notes, and snippets.

@michaelherold
Last active December 24, 2015 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelherold/6781697 to your computer and use it in GitHub Desktop.
Save michaelherold/6781697 to your computer and use it in GitHub Desktop.
Bug report for issue on sferik/twitter
ruby-2.0.0 (main)> client = Twitter::REST::Client.new do |config|
config.consumer_key = <snip>,
config.consumer_secret = <snip>
end
=> #<Twitter::REST::Client:0x0000000749a370>
ruby-2.0.0 (main)> tweet = client.status(381940500032258049)
=> #<Twitter::Tweet:0x00000007752770>
ruby-2.0.0 (main)> uri = Twitter::Entity::URI.new(tweet.attrs[:entities][:urls][0])
=> #<Twitter::Entity::URI:0x00000007061808>
ruby-2.0.0 (main)> uri.display_url
URI::InvalidURIError: bad URI(is not URI?): gawker.com/louis-c-k-s-ex…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment