Was playing around a bit with the Twitter4R library the other day and realized that in order to make it to work on Mac OS X (Leopard) you need to also require ‘time’. Or you will get an error similar to
1
lib/twitter/model.rb:268:in `initâ: undefined method `parseâ for Time:Class (NoMethodError).
A small snippet to display my public tweets:
1234567891011121314
require'rubygems'gem('twitter4r','0.3.0')require'twitter'# Required on Mac OS X Leopardrequire'time'twitter=Twitter::Client.newm5h_timeline=twitter.timeline_for(:user,:id=>'m5h')m5h_timeline.eachdo|status|putsstatus.textend