Sha256: 86818fdcb572519f8dafa889d0fc216c01128f2ad688b0a8e47e96a49f25f104

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

require 'thread'
require 'ostruct'
require 'logger'
require 'uri'
require 'net/http'
require 'base64'
require 'openssl'
require 'digest/md5'
require 'json'
require 'securerandom'
require 'pbkdf2'

# Used only in specs
require 'yaml'
require 'tmpdir'
require 'fileutils'

require 'rmega/version'
require 'rmega/loggable'
require 'rmega/options'
require 'rmega/not_inspectable'
require 'rmega/errors'
require 'rmega/api_response'
require 'rmega/utils'
require 'rmega/conn_pool'
require 'rmega/net'
require 'rmega/pool'
require 'rmega/progress'
require 'rmega/crypto'
require 'rmega/session'
require 'rmega/storage'
require 'rmega/nodes/factory'

module Rmega
  def self.login(email, password)
    Session.new.login(email, password).storage
  end

  def self.download(public_url, path = Dir.pwd)
    node = Nodes::Factory.build_from_url(public_url)
    return node.download(path)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rmega-0.3.2 lib/rmega.rb
rmega-0.3.1 lib/rmega.rb