README.md in rmega-0.0.5 vs README.md in rmega-0.0.6

- old
+ new

@@ -1,20 +1,18 @@ -# Rmega [![Build Status](https://travis-ci.org/daniele-m/rmega.png)](https://travis-ci.org/daniele-m/rmega) +# Rmega +A ruby library for the Mega.co.nz. +Tested using ruby 1.9.3+ (OpenSSL 0.9.8r+) +This work is the result of a reverse engineering of the Mega's Javascript code. -Ruby library for the Mega.co.nz API. -Tested using ruby 1.9.3+ (OpenSSL 0.9.8r+) +## Installation -<div style="background-color: #000000; border-radius: 8px"> - <img src="https://eu.static.mega.co.nz/images/mega/logo.png" /> -</div> + Rmega is distributed via rubygems, so if you have ruby 1.9.3+ installed + system wide, just type `gem install rmega`. - - ## Usage - $ gem install rmega $ irb -r rmega ### Login and retrive all the files and folders ```ruby @@ -64,13 +62,21 @@ # Gets the public url (the sharable one) of a file my_node.public_url # See the attributes of a node my_node.attributes + +# Create a folder +parent_folder = storage.nodes_by_name(/photos/i).first +folder_node = storage.create_folder parent_folder, "london" ``` +## Todo + * Handle connection errors during upload/download + + ## Installation Add this line to your application's Gemfile: gem 'rmega' @@ -92,10 +98,8 @@ 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request ## Copyright - -This work is the result of a reverse engineering of the Mega's Javascript code. Copyright (c) 2013 Daniele Molteni MIT License