Skip to content
Browse files

Add feedback about the # of characters

  • Loading branch information...
1 parent a0fcef9 commit 603c4c87be3d352bab07b068dd30f2737159f91a @webmat webmat committed Dec 19, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/tweet.rb
View
1 lib/tweet.rb
@@ -15,6 +15,7 @@ def create_status(status)
get_credentials!
resource = RestClient::Resource.new 'http://twitter.com/statuses/update.xml', username, password
resource.post(:status => status, :source => 'tweetgem', :content_type => 'application/xml', :accept => 'application/xml')
+ puts "#{len} chars" + (len == 140 ? "!\nYou rock!" : '.')
end
def get_credentials!

0 comments on commit 603c4c8

Please sign in to comment.
Something went wrong with that request. Please try again.