lib/rmega.rb in rmega-0.0.3 vs lib/rmega.rb in rmega-0.0.4
- old
+ new
@@ -3,10 +3,12 @@
require "json"
require "logger"
require "ostruct"
# Gems in the bundle
+require 'active_support/core_ext/module/delegation'
+require 'active_support/core_ext/string/inflections'
require "httpclient"
require "execjs"
require "ruby-progressbar"
# Require all the other files
@@ -15,19 +17,21 @@
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/nodes/node"
+require "rmega/nodes/file_node"
+require "rmega/nodes/folder_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.level = Logger::ERROR
logger
end
end
def self.login email, password