Sha256: 73379c0fd36c29389578fe22965079c0adf76e92f8dab138cb5486653750823f
Contents?: true
Size: 1.07 KB
Versions: 4
Compression:
Stored size: 1.07 KB
Contents
#!/usr/bin/env ruby require 't' begin T::CLI.start(ARGV) rescue Interrupt $stderr.puts "Quitting..." exit 1 rescue Twitter::Error::BadRequest => error $stderr.puts error.message exit 400 rescue OAuth::Unauthorized $stderr.puts "Authorization failed" exit 401 rescue Twitter::Error::Unauthorized => error $stderr.puts error.message $stderr.puts $stderr.puts "Run `#{$0} authorize --consumer-key=CONSUMER_KEY --consumer-secret=CONSUMER_SECRET` to authorize." exit 401 rescue Twitter::Error::Forbidden => error $stderr.puts error.message exit 403 rescue Twitter::Error::NotFound => error $stderr.puts error.message exit 404 rescue Twitter::Error::NotAcceptable => error $stderr.puts error.message exit 406 rescue Twitter::Error::EnhanceYourCalm => error $stderr.puts error.message exit 420 rescue Twitter::Error::InternalServerError => error $stderr.puts error.message exit 500 rescue Twitter::Error::BadGateway => error $stderr.puts error.message exit 502 rescue Twitter::Error::ServiceUnavailable => error $stderr.puts error.message exit 503 end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
t-0.3.0 | bin/t |
t-0.2.1 | bin/t |
t-0.2.0 | bin/t |
t-0.1.0 | bin/t |