README.md in rmega-0.2.5 vs README.md in rmega-0.2.6

- old
+ new

@@ -1,33 +1,34 @@ -# Rmega +[![Gem Version](https://badge.fury.io/rb/rmega.svg)](https://badge.fury.io/rb/rmega) +[![Build Status](https://travis-ci.org/topac/rmega.svg?branch=master)](https://travis-ci.org/topac/rmega) +# rmega + Pure ruby library for <img src="https://mega.co.nz/favicon.ico" alt=""/> **MEGA** [https://mega.nz/](https://mega.nz/). Works on Linux and OSX with Ruby 1.9.3+. ## Installation ``` gem install rmega ``` -## Command line usage +## Command Line Usage -Since version 0.2.0 you can use the commands `rmega-dl` and `rmega-up` to easily download and upload files to MEGA. +<img src="https://i.imgur.com/3cjgp4g.gif"/> +Since version 0.2.0 you can use the commands `rmega-dl` and `rmega-up` to download and upload files to MEGA. + * Downloads are resumable + * You can download all the links in a given file, e.g. `rmega-dl my_links.txt` + * Scrape a web page and download all the MEGA links, e.g. `rmega-dl https://www.reddit.com/r/megalinks/foobar` * HTTP proxy support - * See the CHANGELOG file for more info + * Streaming! :beer: You can use a video player (VLC works perfectly) to play videos while downloading them + * You can use it combined with [torsocks](https://github.com/dgoulet/torsocks/) to download and upload files through the Tor network (slower) -<img src="https://i.imgur.com/VVl55wj.gif"/> +## DSL Usage -*Pro tips:* - -* Streaming: you can use a video player (e.g. VLC) to play videos while downloading them. -* Super privacy: you can use it combined with [torsocks](https://github.com/dgoulet/torsocks/) to download and upload files through the Tor network (very slow). - -## DSL usage - ### Login ```ruby require "rmega" storage = Rmega.login("your@email.com", "your_password") @@ -86,10 +87,10 @@ node.type == :folder and node.name == 'my_folder' end folder.download("~/Downloads/my_folder") # Download a file by url -public_url = 'https://mega.co.nz/#!MAkg2Iab!bc9Y2U6d93IlRRKVYpcC9hLZjS4G278OPdH6nTFPDNQ' +public_url = 'https://mega.nz/file/MAkg2Iab#bc9Y2U6d93IlRRKVYpcC9hLZjS4G278OPdH6nTFPDNQ' Rmega.download(public_url, '~/Downloads') ``` ### Upload