Skip to content

Instantly share code, notes, and snippets.

@jayeff
Created March 19, 2013 13:47
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 jayeff/5196230 to your computer and use it in GitHub Desktop.
Save jayeff/5196230 to your computer and use it in GitHub Desktop.
gem 'activesupport', '= 3.2.13'
gem 'twitter', '= 4.6.1'
gem 'json', '= 1.7.7'
require 'twitter'
require 'active_support'
tweet = Twitter::Tweet.new(:id => 28669546014, :user => {:id => 7505382, :screen_name => 'sferik'})
ActiveSupport::JSON.encode(tweet)
# => [...].rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/twitter-4.6.1/lib/twitter/base.rb:96: stack level too deep (SystemStackError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment