
This is the Ruby On Rails Web GUI consumer for TSP  
http://savannah.nongnu.org/projects/tsp

This application is contributed by Stephane GALLES: stephane.galles@free.fr

------------------
1. Prerequisites :
a. This web application use the Ruby lib consumer. See main README of the Ruby
lib consumer in order to make a TSP provider XMLRPC capable. Basically,
configure tsp in your build directory with :

cmake -DBUILD_XMLRPC=ON  ../tsp
make
Then run the tsp_stub_server TSP example provider that was compiled with XMLRPC support.

b. You need Ruby on Rails installed.
It is advised to use RubyGems to install Rails :
- download and install RubyGems from http://rubygems.org/
- install Rails using RubyGems :
gem install rails --include-dependencies

c. You need Gruff that makes beautiful graphs with Ruby:
http://nubyonrails.com/pages/gruff
can be installed with the command
gem install gruff
RMagick is also required on your system as Gruff needs it
gem install RMagick
(if you've installed Ruby from package, you need the package ruby-dev
or ruby1.8-dev, and RMagick itself must be installed
with for example package libmagick9-dev on Ubuntu)

----------------------------------
2. Launch the tspror application :
a. Run the Drb Consumer bridge that will fetch the symbols from the tsp_stub_server,
using the config file for a stub_server that runs on the same PC :
cd tspror
ruby consumer_ror.rb conf_local_stub_provider.yaml

b. Run the Rails application itself :
ruby script/server

c. Now with your browser open the page :
http://localhost:3000
You can loggin with any username, and password 'tsp'.
You can choose to disable the Ajax GUI on the loggin page if you browser
can not handle it

d. Choose some symbols one the right, and Drag and Drop them on the "Y Symbols"
box, or the "X Symbols box". You can also DnD between theses boxes too.

e. You can logout and loggin with the same username,
you'll keep your settings (till the consumer_ror.rb bridge
is turned off)