Sha256: 3e4f9b8c80492a4a4390b483a5c751e4099b3ce13dfddcc4a63b6a8fb7b7a11d
Contents?: true
Size: 345 Bytes
Versions: 1
Compression:
Stored size: 345 Bytes
Contents
#!/usr/bin/env ruby require_relative File.join '..', 'lib', 'tweet_compressor' unless ARGV.size == 1 puts "Usage: #{File.basename $0} <tweet>" exit 1 end tweet = TweetCompressor::Tweet.new ARGV.join ' ' tweet.compress $stderr.puts "Chars: #{tweet.char_count}, Compression: #{tweet.compression_level}%" $stdout.puts ?\n, tweet.compressed
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tweet_compressor-0.8.2 | bin/tweet_compressor |