Posting a tweet using the Twitter gem

require 'twitter'

client = Twitter::REST::Client.new do |config|

  config.consumer_key       = '63ntjKwemfZRJruB14kRSg'
  config.consumer_secret    = 'HqdRCM17rSOJEaHnI7yVavwavWtFNwT5BWEJJWWaDwM'
  config.access_token        = '1436581-39F2314oxZpsAoyHA80bpjFreTHQAkLevS979M78Gt'
  config.access_token_secret = 'AugbJ5HcIGbYKBcSEngtZU2cb1zJFoiNqd9bkNTf50TXc'
end

client.update('Test post from the console')

Note: The above authentication data has been altered from actual working data.