lib/tw/app/main.rb in tw-1.2.1 vs lib/tw/app/main.rb in tw-1.3.0

- old
+ new

@@ -2,11 +2,11 @@ require File.expand_path 'cmds', File.dirname(__FILE__) require File.expand_path 'render', File.dirname(__FILE__) require File.expand_path 'helper', File.dirname(__FILE__) module Tw::App - + def self.new Main.new end class Main @@ -136,10 +136,10 @@ res }, @args[:format] else message = @args.argv.join(' ') tweet_opts = {} - if (len = message.char_length_with_t_co) > 140 + if (len = message.char_length_with_t_co) > 280 STDERR.puts "tweet too long (#{len} chars)" on_error else if @args.has_param? :status_id client.show_status @args[:status_id]