Stock quotes as a Ruby library or via your command line: Stockery
Stockery, a simple Ruby gem that allows you to query stock quotes from (for now) the Google API or Yahoo Finance API. The nice thing is that you can use it as a library inside your project, or just via the command line and mix & mash it with your favourite shell script.
Usage via command line
By default stockery outputs a JSON format of the result fetched from Google.
Fetch GOOG quote via Yahoo.
Set the output to print and it prints it directly to your prompt.
Multiple stock symbols.
Help :)
Usage through Ruby