Sha256: a63a5b8c0830034112c4e7c2da5fd7dae162ac20e04b9296efd72b7b0a8c30eb
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
# Gem with ruby 1.9+ require "openssl" require "json" require "logger" require "ostruct" # Gems in the bundle require "httpclient" require "execjs" require "ruby-progressbar" # Require all the other files require "rmega/version" require "rmega/utils" require "rmega/crypto/rsa" require "rmega/crypto/aes" require "rmega/crypto/aes_ctr" require "rmega/crypto/crypto" require "rmega/storage" require "rmega/node" require "rmega/session" require "rmega/api_request_error" module Rmega def self.logger @logger ||= begin logger = Logger.new $stdout logger.formatter = Proc.new { | severity, time, progname, msg| "#{msg}\n" } logger.level = Logger::INFO logger end end def self.login email, password session = Session.new email, password session.storage end def self.default_options { show_progress: true, upload_timeout: 120, api_request_timeout: 20, api_url: 'https://eu.api.mega.co.nz/cs' } end def self.options @options ||= OpenStruct.new default_options end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rmega-0.0.3 | lib/rmega.rb |