API Wrapper for TweetShrink
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
features
lib
spec
.gitignore
LICENSE
README.textile
Rakefile
VERSION.yml
tweetshrink.gemspec

README.textile

TweetShrink

This gem provides a Ruby interface to the TweetShrink API, as well as a shell command that can
be used as a filter for your favorite text editor.

What is TweetShrink?

Tweetshrink tries its very best to fit your text within the harsh constraints of a tweet by replacing common phrases and words with shorter representations. Kind of like running your new text through the dryer or sending it to fat camp.

More

Requirements

HTTParty

Installation

rake gem
gem install pkg/tweetshrink-0.0.1.gem

Shell usage

  1. You can use STDIN
    $ echo “Some text to shrink” | tweetshrink # => “sum text 2 shrnk”
  1. or a file
    $ tweetshrink [filename]

Ruby usage

require ‘tweetshrink’
t = TweetShrink.shrink(“Some text to shrink”)
t[‘text’] # The short text
t[‘original_text’] # The long text
t[‘difference’] # The difference (number of characters eliminated)

Copyright

Copyright © 2008 Logan Koester. See LICENSE for details.