lib/universa/service.rb in universa-3.13.2.2 vs lib/universa/service.rb in universa-3.14.2.1

- old
+ new

@@ -1,10 +1,10 @@ require 'singleton' module Universa - # The service is a singleton to provide porcess-wide objects and methods. For example, + # The service is a singleton to provide process-wide objects and methods. For example, # the {UMI} interface and reference class factory are unique per-process for Universa # library. It uses exactly one lazy created {UMI} connection which is shared among all threads. # As UMI server is multithreaded by nature, is will not block ruby threads waiting for remote # invocation. class Service @@ -24,11 +24,12 @@ @config = SmartHash.new path: nil @@log_umi && @config['log'] = 'umi.log' @known_proxies = {} [Contract, PrivateKey, PublicKey, KeyAddress, HashId, Binder, Role, SimpleRole, RoleLink, ListRole, Parcel, UnsContract, - ChangeOwnerPermission, RevokePermission, ModifyDataPermission, SplitJoinPermission, + ChangeOwnerPermission, ChangeRolePermission, RevokePermission, + ModifyDataPermission, SplitJoinPermission, QuorumVoteRole, UmiClient, Duration, Compound, KeyInfo, PBKDF2].each {|klass| register_proxy klass} end # Implementation of {Service.configure} def configure &block @@ -126,25 +127,25 @@ @remote end # Updating proxied object is not allowed. Raises error. def __setobj__ - raise "ObectProxy does not support changing referenced object" + raise "ObjectProxy does not support changing referenced object" end # Returns remote class name. There is no need to override it, when inheriting it use +remote_class+ helper: # # class MyKeyAddress < ObjectProxy # remote_class 'com.icodici.crypto.KeyAddress' # # #... # end # - # Notice: remote_class will do allnecessary work for you. + # Notice: remote_class will do all necessary work for you. # # @return [String] remote class name def self.remote_class_name - @remote_class_name or raise Error, "provde remote class name" + @remote_class_name or raise Error, "provide remote class name" end # Registers remote class name to be used with this adapted. Call it early in descendant class # declaration. def self.remote_class name