Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add feedback about the # of characters

  • Loading branch information...
commit 603c4c87be3d352bab07b068dd30f2737159f91a 1 parent a0fcef9
@webmat webmat authored
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!
Please sign in to comment.
Something went wrong with that request. Please try again.