W weekend napisałem niewielki gem - skrypt umożliwiający proste i szybkie dzielenie się plikami w sieci.
http://github.com/sebcioz/raxus :
[quote]Raxus is a gem that helps to easily transfer files or folders from one computer to another on a network. It’s a small Ruby script that facilitates transfer of data across networks and only requires the recipient of the files have a Web browser.
When you run command:
raxus ~/some_data/ ~/image.jpg
your folder “some_data” and “image.jpg” will be compressed with zip, application will start a mini webserver (thin, using rack). Now your files are available for download - just visit YOUR_IP:5000.[/quote]
Aplikacja jest dostępna w standardowym repo (http://rubygems.org/gems/raxus), jest +/- otestowana (rspec).
Z implementacją nie było większych problemów, jedynie jednej funkcjonalności nie udało mi się dodać: chciałbym aby po przekroczeniu limitu liczby pobrań serwer się automatycznie wyłączał (na razie wyświetla tylko odpowiedni komunikat).
Wszelkie uwagi, sugestie mile widziane.