Commits

Richo Healey committed 3559ea3

Utterly untested, should show the last n posts from newsfeedo

Potential bugs off top of head:
- Will it fail if there aren't enough?
- What the shit does each_with_index stem from? Enumerable?

  • Participants
  • Parent commits b235d1f

Comments (0)

Files changed (1)

File lib/twat/actions.rb

 
     def show(opts)
       twitter_auth(opts)
-      puts "#{opts[:count]} Tweets XD"
+      Twitter.home_timeline.each_with_index do |tweet, idx|
+        puts tweet.text
+
+        break if idx == opts[:count]
+      end
     end
 
     def version(opts)