javonet-ruby-sdk 2.4.5 → 2.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Clr/Windows/X64/Javonet.Clr.Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Clr/Windows/X64/JavonetClrRuntime.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Jvm/Linux/X64/JavonetJvmRuntime.jar +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Jvm/MacOs/X64/JavonetJvmRuntime.jar +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Jvm/Windows/X64/JavonetJvmRuntime.jar +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetActivationService.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetCppRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetGoRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetJvmRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNetcoreRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNodejs1816RuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNodejsRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetPerlRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetPythonRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetRubyRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetTcpClient.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetTcpTlsClient.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libUtils.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/openssl3/libJavonetActivationService.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/openssl3/libJavonetTcpTlsClient.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/openssl3/libUtils.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetActivationService.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetCppRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetGoRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetJvmRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNetcoreRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNodejs1816RuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNodejsRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetPerlRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetPythonRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetRubyRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetTcpClient.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetTcpTlsClient.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libUtils.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetActivationService.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetClrRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetCppRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetGoRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetJvmRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNetcoreRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNodejs1816RuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNodejsRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPerlRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPythonRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetRubyRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetTcpClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetTcpTlsClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Netcore/Linux/X64/Javonet.Netcore.Core.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Netcore/Linux/X64/Javonet.Netcore.Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Netcore/MacOs/X64/Javonet.Netcore.Core.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Netcore/MacOs/X64/Javonet.Netcore.Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Netcore/Windows/X64/Javonet.Netcore.Core.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Netcore/Windows/X64/Javonet.Netcore.Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/handler/DestructReferenceHandler.js +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/handler/EnableNamespaceHandler.js +37 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/handler/EnableTypeHandler.js +37 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/handler/GetTypeHandler.js +21 -5
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/handler/Handler.js +10 -7
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/handler/LoadLibraryHandler.js +11 -2
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/handler/ResolveReferenceHandler.js +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/namespaceCache/NamespaceCache.js +39 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/protocol/TypeSerializer.js +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/receiver/Receiver.js +7 -4
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/receiver/ReceiverNative.js +2 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/typeCache/TypeCache.js +39 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/utils/CommandType.js +3 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/{core → utils}/exception/ExceptionSerializer.js +4 -4
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/{core → utils}/exception/ExceptionThrower.js +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/handler/DestructReferenceHandler.js +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/handler/EnableNamespaceHandler.js +37 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/handler/EnableTypeHandler.js +37 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/handler/GetTypeHandler.js +21 -5
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/handler/Handler.js +10 -7
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/handler/LoadLibraryHandler.js +11 -2
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/handler/ResolveReferenceHandler.js +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/namespaceCache/NamespaceCache.js +39 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/protocol/TypeSerializer.js +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/receiver/Receiver.js +7 -4
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/receiver/ReceiverNative.js +2 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/typeCache/TypeCache.js +39 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/utils/CommandType.js +3 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/{core → utils}/exception/ExceptionSerializer.js +4 -4
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/{core → utils}/exception/ExceptionThrower.js +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/core/handler/DestructReferenceHandler.js +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/core/handler/EnableNamespaceHandler.js +37 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/core/handler/EnableTypeHandler.js +37 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/core/handler/GetTypeHandler.js +21 -5
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/core/handler/Handler.js +10 -7
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/core/handler/LoadLibraryHandler.js +11 -2
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/core/handler/ResolveReferenceHandler.js +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/core/namespaceCache/NamespaceCache.js +39 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/core/protocol/TypeSerializer.js +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/core/receiver/Receiver.js +7 -4
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/core/receiver/ReceiverNative.js +2 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/core/typeCache/TypeCache.js +39 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/utils/CommandType.js +3 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/{core → utils}/exception/ExceptionSerializer.js +4 -4
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/{core → utils}/exception/ExceptionThrower.js +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Class/Load/XS/XS.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Data/UUID/UUID.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/FFI/Platypus/Platypus.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/List/Util/Util.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Moose/Moose.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/PPI/XS/XS.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Package/Stash/XS/XS.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Params/Util/Util.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Want/Want.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/lib/libplfill.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/perllocal.pod +92 -92
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Exception/SdkExceptionHelper.pm +93 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Javonet.pm +33 -10
- data/lib/javonet-ruby-sdk/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/perllocal.pod +94 -94
- data/lib/javonet-ruby-sdk/Binaries/Perl/MacOs/X64/lib/Javonet/Core/Exception/SdkExceptionHelper.pm +93 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/MacOs/X64/lib/Javonet/Javonet.pm +33 -10
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Data/UUID/UUID.xs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/PPI/XS/XS.xs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Scalar/Util/Numeric/Numeric.xs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Want/Want.xs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/autobox/autobox.xs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/perllocal.pod +18 -18
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Exception/SdkExceptionHelper.pm +93 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Javonet.pm +33 -10
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/ArrayGetItemHandler.py → ArrayGetItemHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/{MacOs/X64/javonet/core/handler/CommandHandler → Linux/X64/javonet/core/handler}/ArrayGetRankHandler.py +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/ArrayGetSizeHandler.py → ArrayGetSizeHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/{MacOs/X64/javonet/core/handler/CommandHandler → Linux/X64/javonet/core/handler}/ArrayHandler.py +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/ArraySetItemHandler.py → ArraySetItemHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/{MacOs/X64/javonet/core/handler/CommandHandler → Linux/X64/javonet/core/handler}/CastingHandler.py +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/CreateClassInstanceHandler.py → CreateClassInstanceHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/{MacOs/X64/javonet/core/handler/CommandHandler → Linux/X64/javonet/core/handler}/DestructReferenceHandler.py +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/EnableNamespaceHandler.py +28 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/EnableTypeHandler.py +28 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/{MacOs/X64/javonet/core/handler/CommandHandler → Linux/X64/javonet/core/handler}/GetEnumItemHandler.py +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/{MacOs/X64/javonet/core/handler/CommandHandler → Linux/X64/javonet/core/handler}/GetEnumNameHandler.py +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/GetEnumValueHandler.py → GetEnumValueHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/GetInstanceFieldHandler.py → GetInstanceFieldHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/GetStaticFieldHandler.py → GetStaticFieldHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/GetTypeHandler.py +56 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/Handler.py +26 -24
- data/lib/javonet-ruby-sdk/Binaries/Python/{Windows/X64/javonet/core/handler/CommandHandler → Linux/X64/javonet/core/handler}/InvokeInstanceMethodHandler.py +31 -31
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/InvokeStaticMethodHandler.py → InvokeStaticMethodHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/LoadLibraryHandler.py → LoadLibraryHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/ResolveInstanceHandler.py → ResolveInstanceHandler.py} +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/SetInstanceFieldHandler.py → SetInstanceFieldHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/{MacOs/X64/javonet/core/handler/CommandHandler → Linux/X64/javonet/core/handler}/SetStaticFieldHandler.py +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/ValueHandler.py → ValueHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/namespaceCache/NamespaceCache.py +44 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/protocol/CommandSerializer.py +0 -3
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/receiver/Receiver.py +4 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/referenceCache/ReferencesCache.py +38 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/typeCache/TypeCache.py +44 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/utils/CommandType.py +2 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/ArrayGetItemHandler.py → ArrayGetItemHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/{Linux/X64/javonet/core/handler/CommandHandler → MacOs/X64/javonet/core/handler}/ArrayGetRankHandler.py +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/ArrayGetSizeHandler.py → ArrayGetSizeHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/{Linux/X64/javonet/core/handler/CommandHandler → MacOs/X64/javonet/core/handler}/ArrayHandler.py +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/ArraySetItemHandler.py → ArraySetItemHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/{Linux/X64/javonet/core/handler/CommandHandler → MacOs/X64/javonet/core/handler}/CastingHandler.py +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/CreateClassInstanceHandler.py → CreateClassInstanceHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/{Linux/X64/javonet/core/handler/CommandHandler → MacOs/X64/javonet/core/handler}/DestructReferenceHandler.py +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/EnableNamespaceHandler.py +28 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/EnableTypeHandler.py +28 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/{Linux/X64/javonet/core/handler/CommandHandler → MacOs/X64/javonet/core/handler}/GetEnumItemHandler.py +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/{Linux/X64/javonet/core/handler/CommandHandler → MacOs/X64/javonet/core/handler}/GetEnumNameHandler.py +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/GetEnumValueHandler.py → GetEnumValueHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/GetInstanceFieldHandler.py → GetInstanceFieldHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/GetStaticFieldHandler.py → GetStaticFieldHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/GetTypeHandler.py +56 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/Handler.py +26 -24
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/InvokeInstanceMethodHandler.py → InvokeInstanceMethodHandler.py} +5 -5
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/InvokeStaticMethodHandler.py → InvokeStaticMethodHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/LoadLibraryHandler.py → LoadLibraryHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/ResolveInstanceHandler.py → ResolveInstanceHandler.py} +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/SetInstanceFieldHandler.py → SetInstanceFieldHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/{Linux/X64/javonet/core/handler/CommandHandler → MacOs/X64/javonet/core/handler}/SetStaticFieldHandler.py +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/ValueHandler.py → ValueHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/namespaceCache/NamespaceCache.py +44 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/namespaceCache/__init__.py +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/protocol/CommandSerializer.py +0 -3
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/receiver/Receiver.py +4 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/referenceCache/ReferencesCache.py +38 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/referenceCache/__init__.py +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/typeCache/TypeCache.py +44 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/typeCache/__init__.py +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/utils/CommandType.py +2 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/__pycache__/__init__.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/__pycache__/__init__.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/internal/__pycache__/PythonStringBuilder.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/internal/__pycache__/__init__.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/ArrayGetItemHandler.py → ArrayGetItemHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/ArrayGetRankHandler.py → ArrayGetRankHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/ArrayGetSizeHandler.py → ArrayGetSizeHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/ArrayHandler.py → ArrayHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/ArraySetItemHandler.py → ArraySetItemHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/CastingHandler.py → CastingHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/CreateClassInstanceHandler.py → CreateClassInstanceHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/DestructReferenceHandler.py → DestructReferenceHandler.py} +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/EnableNamespaceHandler.py +28 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/EnableTypeHandler.py +28 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/GetEnumItemHandler.py → GetEnumItemHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/GetEnumNameHandler.py → GetEnumNameHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/GetEnumValueHandler.py → GetEnumValueHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/GetInstanceFieldHandler.py → GetInstanceFieldHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/GetStaticFieldHandler.py → GetStaticFieldHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/GetTypeHandler.py +56 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/Handler.py +26 -24
- data/lib/javonet-ruby-sdk/Binaries/Python/{Linux/X64/javonet/core/handler/CommandHandler → Windows/X64/javonet/core/handler}/InvokeInstanceMethodHandler.py +31 -31
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/InvokeStaticMethodHandler.py → InvokeStaticMethodHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/LoadLibraryHandler.py → LoadLibraryHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/ResolveInstanceHandler.py → ResolveInstanceHandler.py} +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/SetInstanceFieldHandler.py → SetInstanceFieldHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/SetStaticFieldHandler.py → SetStaticFieldHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/ValueHandler.py → ValueHandler.py} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/AbstractCommandHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/AbstractHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/ArrayGetItemHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/ArrayGetRankHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/ArrayGetSizeHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/ArrayHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/ArraySetItemHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/CastingHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/CreateClassInstanceHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/DestructReferenceHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/EnableNamespaceHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/EnableTypeHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/GetEnumItemHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/GetEnumNameHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/GetEnumValueHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/GetInstanceFieldHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/GetStaticFieldHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/GetTypeHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/Handler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/HandlerDictionary.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/InvokeInstanceMethodHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/InvokeStaticMethodHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/LoadLibraryHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/ResolveInstanceHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/SetInstanceFieldHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/__pycache__ → __pycache__}/SetStaticFieldHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/ValueHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/__init__.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/interpreter/__pycache__/Interpreter.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/interpreter/__pycache__/__init__.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/namespaceCache/NamespaceCache.py +44 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/namespaceCache/__init__.py +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/namespaceCache/__pycache__/NamespaceCache.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/namespaceCache/__pycache__/__init__.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/protocol/CommandSerializer.py +0 -3
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/protocol/__pycache__/CommandDeserializer.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/protocol/__pycache__/CommandSerializer.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/protocol/__pycache__/TypeDeserializer.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/protocol/__pycache__/TypeSerializer.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/protocol/__pycache__/__init__.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/receiver/Receiver.py +4 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/receiver/__pycache__/Receiver.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/receiver/__pycache__/__init__.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/referenceCache/ReferencesCache.py +38 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/referenceCache/__init__.py +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/referenceCache/__pycache__/ReferencesCache.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/referenceCache/__pycache__/__init__.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/typeCache/TypeCache.py +44 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/typeCache/__init__.py +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/typeCache/__pycache__/TypeCache.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/typeCache/__pycache__/__init__.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/CommandType.py +2 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/Command.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/CommandType.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/ConnectionType.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/ExceptionType.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/RuntimeName.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/StringEncodingMode.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/TcpConnectionData.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/Type.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/__init__.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/exception/__pycache__/ExceptionSerializer.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/exception/__pycache__/__init__.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/abstract_command_handler.rb → abstract_command_handler.rb} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Ruby/{MacOs/X64/core/handler/command_handler → Linux/X64/core/handler}/destruct_reference_handler.rb +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/enable_namespace_handler.rb +31 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/enable_type_handler.rb +32 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/{MacOs/X64/core/handler/command_handler → Linux/X64/core/handler}/get_instance_field_handler.rb +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Ruby/{MacOs/X64/core/handler/command_handler → Linux/X64/core/handler}/get_static_field_handler.rb +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/get_type_handler.rb +59 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/handler.rb +31 -25
- data/lib/javonet-ruby-sdk/Binaries/Ruby/{MacOs/X64/core/handler/command_handler → Linux/X64/core/handler}/resolve_instance_handler.rb +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/namespace_cache/namespace_cache.rb +40 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/reference_cache/references_cache.rb +33 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/type_cache/type_cache.rb +40 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/external_lib/random/formatter.rb +373 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/external_lib/securerandom.rb +29 -266
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/external_lib/singleton.rb +172 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/utils/command_type.rb +11 -3
- data/lib/javonet-ruby-sdk/Binaries/Ruby/{MacOs/X64/core → Linux/X64/utils}/exceptions/exception_serializer.rb +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/{core → utils}/exceptions/exception_thrower.rb +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/abstract_command_handler.rb → abstract_command_handler.rb} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Ruby/{Linux/X64/core/handler/command_handler → MacOs/X64/core/handler}/destruct_reference_handler.rb +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/enable_namespace_handler.rb +31 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/enable_type_handler.rb +32 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/{Linux/X64/core/handler/command_handler → MacOs/X64/core/handler}/get_instance_field_handler.rb +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Ruby/{Linux/X64/core/handler/command_handler → MacOs/X64/core/handler}/get_static_field_handler.rb +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/get_type_handler.rb +59 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/handler.rb +31 -25
- data/lib/javonet-ruby-sdk/Binaries/Ruby/{Linux/X64/core/handler/command_handler → MacOs/X64/core/handler}/resolve_instance_handler.rb +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/namespace_cache/namespace_cache.rb +40 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/reference_cache/references_cache.rb +33 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/type_cache/type_cache.rb +40 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/external_lib/random/formatter.rb +373 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/external_lib/securerandom.rb +29 -266
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/external_lib/singleton.rb +172 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/utils/command_type.rb +11 -3
- data/lib/javonet-ruby-sdk/Binaries/Ruby/{Linux/X64/core → MacOs/X64/utils}/exceptions/exception_serializer.rb +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/{core → utils}/exceptions/exception_thrower.rb +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/abstract_command_handler.rb → abstract_command_handler.rb} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/destruct_reference_handler.rb → destruct_reference_handler.rb} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/enable_namespace_handler.rb +31 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/enable_type_handler.rb +32 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/get_instance_field_handler.rb → get_instance_field_handler.rb} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/get_static_field_handler.rb → get_static_field_handler.rb} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/get_type_handler.rb +59 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/handler.rb +31 -25
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/resolve_instance_handler.rb → resolve_instance_handler.rb} +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/namespace_cache/namespace_cache.rb +40 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/reference_cache/references_cache.rb +33 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/type_cache/type_cache.rb +40 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/external_lib/random/formatter.rb +373 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/external_lib/securerandom.rb +29 -266
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/external_lib/singleton.rb +172 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/utils/command_type.rb +11 -3
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/{core → utils}/exceptions/exception_serializer.rb +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/{core → utils}/exceptions/exception_thrower.rb +1 -1
- data/lib/javonet-ruby-sdk/Binaries/version.txt +1 -1
- data/lib/javonet-ruby-sdk/core/handler/{command_handler/abstract_command_handler.rb → abstract_command_handler.rb} +1 -1
- data/lib/javonet-ruby-sdk/core/handler/{command_handler/destruct_reference_handler.rb → destruct_reference_handler.rb} +1 -1
- data/lib/javonet-ruby-sdk/core/handler/enable_namespace_handler.rb +31 -0
- data/lib/javonet-ruby-sdk/core/handler/enable_type_handler.rb +32 -0
- data/lib/javonet-ruby-sdk/core/handler/{command_handler/get_instance_field_handler.rb → get_instance_field_handler.rb} +1 -1
- data/lib/javonet-ruby-sdk/core/handler/{command_handler/get_static_field_handler.rb → get_static_field_handler.rb} +1 -1
- data/lib/javonet-ruby-sdk/core/handler/get_type_handler.rb +59 -0
- data/lib/javonet-ruby-sdk/core/handler/handler.rb +31 -25
- data/lib/javonet-ruby-sdk/core/handler/{command_handler/resolve_instance_handler.rb → resolve_instance_handler.rb} +1 -1
- data/lib/javonet-ruby-sdk/core/namespace_cache/namespace_cache.rb +40 -0
- data/lib/javonet-ruby-sdk/core/reference_cache/references_cache.rb +33 -0
- data/lib/javonet-ruby-sdk/core/type_cache/type_cache.rb +40 -0
- data/lib/javonet-ruby-sdk/external_lib/random/formatter.rb +373 -0
- data/lib/javonet-ruby-sdk/external_lib/securerandom.rb +29 -266
- data/lib/javonet-ruby-sdk/external_lib/singleton.rb +172 -0
- data/lib/javonet-ruby-sdk/sdk/invocation_context.rb +1 -1
- data/lib/javonet-ruby-sdk/sdk/javonet.rb +22 -5
- data/lib/javonet-ruby-sdk/sdk/tools/sdk_exception_helper.rb +77 -0
- data/lib/javonet-ruby-sdk/utils/command_type.rb +11 -3
- data/lib/javonet-ruby-sdk/{core → utils}/exceptions/exception_serializer.rb +1 -1
- data/lib/javonet-ruby-sdk/{core → utils}/exceptions/exception_thrower.rb +1 -1
- metadata +270 -199
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/CommandHandler/GetTypeHandler.py +0 -28
- data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/ReferencesCache.py +0 -35
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/CommandHandler/GetTypeHandler.py +0 -28
- data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/ReferencesCache.py +0 -35
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/CommandHandler/GetTypeHandler.py +0 -28
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/CommandHandler/__pycache__/CastingHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/CommandHandler/__pycache__/CreateClassInstanceHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/CommandHandler/__pycache__/DestructReferenceHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/CommandHandler/__pycache__/GetTypeHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/CommandHandler/__pycache__/InvokeInstanceMethodHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/CommandHandler/__pycache__/ResolveInstanceHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/CommandHandler/__pycache__/ValueHandler.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/CommandHandler/__pycache__/__init__.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/ReferencesCache.py +0 -35
- data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/ReferencesCache.cpython-311.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/command_handler/get_type_handler.rb +0 -22
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/references_cache.rb +0 -35
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/command_handler/get_type_handler.rb +0 -22
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/references_cache.rb +0 -35
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/command_handler/get_type_handler.rb +0 -22
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/references_cache.rb +0 -35
- data/lib/javonet-ruby-sdk/core/handler/command_handler/get_type_handler.rb +0 -22
- data/lib/javonet-ruby-sdk/core/handler/references_cache.rb +0 -35
- /data/lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/{handler → referenceCache}/ReferencesCache.js +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/{handler → referenceCache}/ReferencesCache.js +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Nodejs/Windows/X64/core/{handler → referenceCache}/ReferencesCache.js +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/handler/{CommandHandler/AbstractCommandHandler.py → AbstractCommandHandler.py} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/{handler/CommandHandler → namespaceCache}/__init__.py +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Python/{MacOs/X64/javonet/core/handler/CommandHandler → Linux/X64/javonet/core/referenceCache}/__init__.py +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Python/{Windows/X64/javonet/core/handler/CommandHandler → Linux/X64/javonet/core/typeCache}/__init__.py +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/handler/{CommandHandler/AbstractCommandHandler.py → AbstractCommandHandler.py} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/{CommandHandler/AbstractCommandHandler.py → AbstractCommandHandler.py} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/array_get_item_handler.rb → array_get_item_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/array_get_rank_handler.rb → array_get_rank_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/array_get_size_handler.rb → array_get_size_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/array_handler.rb → array_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/array_set_item_handler.rb → array_set_item_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/casting_handler.rb → casting_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/create_class_instance_handler.rb → create_class_instance_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/invoke_instance_method_handler.rb → invoke_instance_method_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/invoke_static_method_handler.rb → invoke_static_method_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/load_library_handler.rb → load_library_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/set_instance_field_handler.rb → set_instance_field_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/set_static_field_handler.rb → set_static_field_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/{command_handler/value_handler.rb → value_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/{core → utils}/exceptions/exception_type.rb +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/array_get_item_handler.rb → array_get_item_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/array_get_rank_handler.rb → array_get_rank_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/array_get_size_handler.rb → array_get_size_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/array_handler.rb → array_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/array_set_item_handler.rb → array_set_item_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/casting_handler.rb → casting_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/create_class_instance_handler.rb → create_class_instance_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/invoke_instance_method_handler.rb → invoke_instance_method_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/invoke_static_method_handler.rb → invoke_static_method_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/load_library_handler.rb → load_library_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/set_instance_field_handler.rb → set_instance_field_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/set_static_field_handler.rb → set_static_field_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/{command_handler/value_handler.rb → value_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/{core → utils}/exceptions/exception_type.rb +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/array_get_item_handler.rb → array_get_item_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/array_get_rank_handler.rb → array_get_rank_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/array_get_size_handler.rb → array_get_size_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/array_handler.rb → array_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/array_set_item_handler.rb → array_set_item_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/casting_handler.rb → casting_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/create_class_instance_handler.rb → create_class_instance_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/invoke_instance_method_handler.rb → invoke_instance_method_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/invoke_static_method_handler.rb → invoke_static_method_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/load_library_handler.rb → load_library_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/set_instance_field_handler.rb → set_instance_field_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/set_static_field_handler.rb → set_static_field_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/{command_handler/value_handler.rb → value_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/{core → utils}/exceptions/exception_type.rb +0 -0
- /data/lib/javonet-ruby-sdk/core/handler/{command_handler/array_get_item_handler.rb → array_get_item_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/core/handler/{command_handler/array_get_rank_handler.rb → array_get_rank_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/core/handler/{command_handler/array_get_size_handler.rb → array_get_size_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/core/handler/{command_handler/array_handler.rb → array_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/core/handler/{command_handler/array_set_item_handler.rb → array_set_item_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/core/handler/{command_handler/casting_handler.rb → casting_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/core/handler/{command_handler/create_class_instance_handler.rb → create_class_instance_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/core/handler/{command_handler/invoke_instance_method_handler.rb → invoke_instance_method_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/core/handler/{command_handler/invoke_static_method_handler.rb → invoke_static_method_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/core/handler/{command_handler/load_library_handler.rb → load_library_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/core/handler/{command_handler/set_instance_field_handler.rb → set_instance_field_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/core/handler/{command_handler/set_static_field_handler.rb → set_static_field_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/core/handler/{command_handler/value_handler.rb → value_handler.rb} +0 -0
- /data/lib/javonet-ruby-sdk/{core → utils}/exceptions/exception_type.rb +0 -0
@@ -1,27 +1,29 @@
|
|
1
1
|
require_relative '../../utils/runtime_name'
|
2
2
|
require_relative '../../utils/command_type'
|
3
|
-
require_relative '../../core/handler/abstract_handler'
|
4
|
-
require_relative '../../core/handler/command_handler/value_handler'
|
5
|
-
require_relative '../../core/handler/command_handler/load_library_handler'
|
6
|
-
require_relative '../../core/handler/command_handler/invoke_static_method_handler'
|
7
|
-
require_relative '../../core/handler/command_handler/get_static_field_handler'
|
8
|
-
require_relative '../../core/handler/command_handler/get_instance_field_handler'
|
9
|
-
require_relative '../../core/handler/command_handler/set_instance_field_handler'
|
10
|
-
require_relative '../../core/handler/command_handler/create_class_instance_handler'
|
11
|
-
require_relative '../../core/handler/command_handler/set_static_field_handler'
|
12
|
-
require_relative '../../core/handler/command_handler/get_type_handler'
|
13
|
-
require_relative '../../core/handler/command_handler/invoke_instance_method_handler'
|
14
|
-
require_relative '../../core/handler/command_handler/resolve_instance_handler'
|
15
|
-
require_relative '../../core/handler/command_handler/casting_handler'
|
16
|
-
require_relative '../../core/handler/command_handler/destruct_reference_handler'
|
17
|
-
require_relative '../../core/handler/command_handler/array_get_item_handler'
|
18
|
-
require_relative '../../core/handler/command_handler/array_get_size_handler'
|
19
|
-
require_relative '../../core/handler/command_handler/array_get_rank_handler'
|
20
|
-
require_relative '../../core/handler/command_handler/array_set_item_handler'
|
21
|
-
require_relative '../../core/handler/command_handler/array_handler'
|
22
|
-
require_relative '../../core/handler/references_cache'
|
23
3
|
require_relative '../../core/handler/handler_dictionary'
|
24
|
-
require_relative '../../core/
|
4
|
+
require_relative '../../core/handler/abstract_handler'
|
5
|
+
require_relative '../../core/handler/value_handler'
|
6
|
+
require_relative '../../core/handler/load_library_handler'
|
7
|
+
require_relative '../../core/handler/invoke_static_method_handler'
|
8
|
+
require_relative '../../core/handler/get_static_field_handler'
|
9
|
+
require_relative '../../core/handler/get_instance_field_handler'
|
10
|
+
require_relative '../../core/handler/set_instance_field_handler'
|
11
|
+
require_relative '../../core/handler/create_class_instance_handler'
|
12
|
+
require_relative '../../core/handler/set_static_field_handler'
|
13
|
+
require_relative '../../core/handler/get_type_handler'
|
14
|
+
require_relative '../../core/handler/invoke_instance_method_handler'
|
15
|
+
require_relative '../../core/handler/resolve_instance_handler'
|
16
|
+
require_relative '../../core/handler/casting_handler'
|
17
|
+
require_relative '../../core/handler/destruct_reference_handler'
|
18
|
+
require_relative '../../core/handler/array_get_item_handler'
|
19
|
+
require_relative '../../core/handler/array_get_size_handler'
|
20
|
+
require_relative '../../core/handler/array_get_rank_handler'
|
21
|
+
require_relative '../../core/handler/array_set_item_handler'
|
22
|
+
require_relative '../../core/handler/array_handler'
|
23
|
+
require_relative '../../core/handler/enable_namespace_handler'
|
24
|
+
require_relative '../../core/handler/enable_type_handler'
|
25
|
+
require_relative '../../core/reference_cache/references_cache'
|
26
|
+
require_relative '../../utils/exceptions/exception_serializer'
|
25
27
|
|
26
28
|
|
27
29
|
class Handler < AbstractHandler
|
@@ -46,6 +48,8 @@ class Handler < AbstractHandler
|
|
46
48
|
array_get_rank_handler = ArrayGetRankHandler.new
|
47
49
|
array_set_item_handler = ArraySetItemHandler.new
|
48
50
|
array_handler = ArrayHandler.new
|
51
|
+
enable_namespace_handler = EnableNamespaceHandler.new
|
52
|
+
enable_type_handler = EnableTypeHandler.new
|
49
53
|
|
50
54
|
|
51
55
|
$handler_dict[CommandType::VALUE] = value_handler
|
@@ -66,6 +70,8 @@ class Handler < AbstractHandler
|
|
66
70
|
$handler_dict[CommandType::ARRAY_GET_RANK] = array_get_rank_handler
|
67
71
|
$handler_dict[CommandType::ARRAY_SET_ITEM] = array_set_item_handler
|
68
72
|
$handler_dict[CommandType::ARRAY] = array_handler
|
73
|
+
$handler_dict[CommandType::ENABLE_NAMESPACE] = enable_namespace_handler
|
74
|
+
$handler_dict[CommandType::ENABLE_TYPE] = enable_type_handler
|
69
75
|
end
|
70
76
|
|
71
77
|
|
@@ -76,22 +82,22 @@ class Handler < AbstractHandler
|
|
76
82
|
end
|
77
83
|
response = $handler_dict[command.command_type].handle_command(command)
|
78
84
|
if is_response_simple_type(response)
|
79
|
-
|
85
|
+
Command.create_response(response, command.runtime_name)
|
80
86
|
elsif response.is_a? Exception
|
81
87
|
return ExceptionSerializer.serialize_exception(response, command)
|
82
88
|
else
|
83
89
|
reference_cache = ReferencesCache.instance
|
84
90
|
guid = reference_cache.cache_reference(response)
|
85
|
-
|
91
|
+
Command.create_reference(guid, command.runtime_name)
|
86
92
|
end
|
87
93
|
end
|
88
94
|
|
89
95
|
def is_response_simple_type(response)
|
90
|
-
|
96
|
+
(response.is_a? String or response.is_a? Float or response.is_a? Integer or response.is_a? TrueClass or response.is_a? FalseClass)
|
91
97
|
end
|
92
98
|
|
93
99
|
def is_response_array(response)
|
94
|
-
|
100
|
+
response.is_a? Array
|
95
101
|
end
|
96
102
|
|
97
103
|
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require_relative './../../external_lib/singleton'
|
2
|
+
|
3
|
+
class NamespaceCache
|
4
|
+
include Singleton
|
5
|
+
|
6
|
+
attr_accessor :namespace_cache
|
7
|
+
|
8
|
+
def initialize
|
9
|
+
@namespace_cache = []
|
10
|
+
end
|
11
|
+
|
12
|
+
def cache_namespace(namespace_regex)
|
13
|
+
@namespace_cache << namespace_regex
|
14
|
+
end
|
15
|
+
|
16
|
+
def is_namespace_cache_empty?
|
17
|
+
@namespace_cache.empty?
|
18
|
+
end
|
19
|
+
|
20
|
+
def is_type_allowed(type_to_check)
|
21
|
+
if type_to_check.is_a?(Module)
|
22
|
+
name_to_check = type_to_check.name
|
23
|
+
else
|
24
|
+
name_to_check = "#{type_to_check.class.name}"
|
25
|
+
end
|
26
|
+
|
27
|
+
@namespace_cache.any? do |pattern|
|
28
|
+
/#{pattern}/.match?(name_to_check)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_cached_namespaces
|
33
|
+
@namespace_cache
|
34
|
+
end
|
35
|
+
|
36
|
+
def clear_cache
|
37
|
+
@namespace_cache.clear
|
38
|
+
0
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require_relative './../../external_lib/singleton'
|
2
|
+
require_relative './../../external_lib/securerandom'
|
3
|
+
|
4
|
+
class ReferencesCache
|
5
|
+
include Singleton
|
6
|
+
|
7
|
+
def initialize
|
8
|
+
@references_cache = Hash.new
|
9
|
+
end
|
10
|
+
|
11
|
+
def cache_reference(object_reference)
|
12
|
+
uuid_ = SecureRandom.uuid
|
13
|
+
@references_cache[uuid_] = object_reference
|
14
|
+
uuid_
|
15
|
+
end
|
16
|
+
|
17
|
+
def resolve_reference(guid)
|
18
|
+
if @references_cache[guid].nil?
|
19
|
+
raise 'Unable to resolve reference with id: ' + guid.to_s
|
20
|
+
else
|
21
|
+
@references_cache[guid]
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def delete_reference(guid)
|
26
|
+
if @references_cache[guid].nil?
|
27
|
+
raise 'Object not found in reference cache'
|
28
|
+
else
|
29
|
+
@references_cache.delete(guid)
|
30
|
+
0
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require_relative './../../external_lib/singleton'
|
2
|
+
|
3
|
+
class TypeCache
|
4
|
+
include Singleton
|
5
|
+
|
6
|
+
attr_accessor :type_cache
|
7
|
+
|
8
|
+
def initialize
|
9
|
+
@type_cache = []
|
10
|
+
end
|
11
|
+
|
12
|
+
def cache_type(type_regex)
|
13
|
+
@type_cache << type_regex
|
14
|
+
end
|
15
|
+
|
16
|
+
def is_type_cache_empty?
|
17
|
+
@type_cache.empty?
|
18
|
+
end
|
19
|
+
|
20
|
+
def is_type_allowed(type_to_check)
|
21
|
+
if type_to_check.is_a?(Module)
|
22
|
+
name_to_check = type_to_check.name
|
23
|
+
else
|
24
|
+
name_to_check = "#{type_to_check.class.name}::#{type_to_check.name}"
|
25
|
+
end
|
26
|
+
|
27
|
+
@type_cache.any? do
|
28
|
+
|pattern| /#{pattern}/.match?(name_to_check)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_cached_types
|
33
|
+
@type_cache
|
34
|
+
end
|
35
|
+
|
36
|
+
def clear_cache
|
37
|
+
@type_cache.clear
|
38
|
+
0
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,373 @@
|
|
1
|
+
# -*- coding: us-ascii -*-
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
# == \Random number formatter.
|
5
|
+
#
|
6
|
+
# Formats generated random numbers in many manners. When <tt>'random/formatter'</tt>
|
7
|
+
# is required, several methods are added to empty core module <tt>Random::Formatter</tt>,
|
8
|
+
# making them available as Random's instance and module methods.
|
9
|
+
#
|
10
|
+
# Standard library SecureRandom is also extended with the module, and the methods
|
11
|
+
# described below are available as a module methods in it.
|
12
|
+
#
|
13
|
+
# === Examples
|
14
|
+
#
|
15
|
+
# Generate random hexadecimal strings:
|
16
|
+
#
|
17
|
+
# require 'random/formatter'
|
18
|
+
#
|
19
|
+
# prng = Random.new
|
20
|
+
# prng.hex(10) #=> "52750b30ffbc7de3b362"
|
21
|
+
# prng.hex(10) #=> "92b15d6c8dc4beb5f559"
|
22
|
+
# prng.hex(13) #=> "39b290146bea6ce975c37cfc23"
|
23
|
+
# # or just
|
24
|
+
# Random.hex #=> "1aed0c631e41be7f77365415541052ee"
|
25
|
+
#
|
26
|
+
# Generate random base64 strings:
|
27
|
+
#
|
28
|
+
# prng.base64(10) #=> "EcmTPZwWRAozdA=="
|
29
|
+
# prng.base64(10) #=> "KO1nIU+p9DKxGg=="
|
30
|
+
# prng.base64(12) #=> "7kJSM/MzBJI+75j8"
|
31
|
+
# Random.base64(4) #=> "bsQ3fQ=="
|
32
|
+
#
|
33
|
+
# Generate random binary strings:
|
34
|
+
#
|
35
|
+
# prng.random_bytes(10) #=> "\016\t{\370g\310pbr\301"
|
36
|
+
# prng.random_bytes(10) #=> "\323U\030TO\234\357\020\a\337"
|
37
|
+
# Random.random_bytes(6) #=> "\xA1\xE6Lr\xC43"
|
38
|
+
#
|
39
|
+
# Generate alphanumeric strings:
|
40
|
+
#
|
41
|
+
# prng.alphanumeric(10) #=> "S8baxMJnPl"
|
42
|
+
# prng.alphanumeric(10) #=> "aOxAg8BAJe"
|
43
|
+
# Random.alphanumeric #=> "TmP9OsJHJLtaZYhP"
|
44
|
+
#
|
45
|
+
# Generate UUIDs:
|
46
|
+
#
|
47
|
+
# prng.uuid #=> "2d931510-d99f-494a-8c67-87feb05e1594"
|
48
|
+
# prng.uuid #=> "bad85eb9-0713-4da7-8d36-07a8e4b00eab"
|
49
|
+
# Random.uuid #=> "f14e0271-de96-45cc-8911-8910292a42cd"
|
50
|
+
#
|
51
|
+
# All methods are available in the standard library SecureRandom, too:
|
52
|
+
#
|
53
|
+
# SecureRandom.hex #=> "05b45376a30c67238eb93b16499e50cf"
|
54
|
+
|
55
|
+
module Random::Formatter
|
56
|
+
|
57
|
+
# Generate a random binary string.
|
58
|
+
#
|
59
|
+
# The argument _n_ specifies the length of the result string.
|
60
|
+
#
|
61
|
+
# If _n_ is not specified or is nil, 16 is assumed.
|
62
|
+
# It may be larger in future.
|
63
|
+
#
|
64
|
+
# The result may contain any byte: "\x00" - "\xff".
|
65
|
+
#
|
66
|
+
# require 'random/formatter'
|
67
|
+
#
|
68
|
+
# Random.random_bytes #=> "\xD8\\\xE0\xF4\r\xB2\xFC*WM\xFF\x83\x18\xF45\xB6"
|
69
|
+
# # or
|
70
|
+
# prng = Random.new
|
71
|
+
# prng.random_bytes #=> "m\xDC\xFC/\a\x00Uf\xB2\xB2P\xBD\xFF6S\x97"
|
72
|
+
def random_bytes(n=nil)
|
73
|
+
n = n ? n.to_int : 16
|
74
|
+
gen_random(n)
|
75
|
+
end
|
76
|
+
|
77
|
+
# Generate a random hexadecimal string.
|
78
|
+
#
|
79
|
+
# The argument _n_ specifies the length, in bytes, of the random number to be generated.
|
80
|
+
# The length of the resulting hexadecimal string is twice of _n_.
|
81
|
+
#
|
82
|
+
# If _n_ is not specified or is nil, 16 is assumed.
|
83
|
+
# It may be larger in the future.
|
84
|
+
#
|
85
|
+
# The result may contain 0-9 and a-f.
|
86
|
+
#
|
87
|
+
# require 'random/formatter'
|
88
|
+
#
|
89
|
+
# Random.hex #=> "eb693ec8252cd630102fd0d0fb7c3485"
|
90
|
+
# # or
|
91
|
+
# prng = Random.new
|
92
|
+
# prng.hex #=> "91dc3bfb4de5b11d029d376634589b61"
|
93
|
+
def hex(n=nil)
|
94
|
+
random_bytes(n).unpack1("H*")
|
95
|
+
end
|
96
|
+
|
97
|
+
# Generate a random base64 string.
|
98
|
+
#
|
99
|
+
# The argument _n_ specifies the length, in bytes, of the random number
|
100
|
+
# to be generated. The length of the result string is about 4/3 of _n_.
|
101
|
+
#
|
102
|
+
# If _n_ is not specified or is nil, 16 is assumed.
|
103
|
+
# It may be larger in the future.
|
104
|
+
#
|
105
|
+
# The result may contain A-Z, a-z, 0-9, "+", "/" and "=".
|
106
|
+
#
|
107
|
+
# require 'random/formatter'
|
108
|
+
#
|
109
|
+
# Random.base64 #=> "/2BuBuLf3+WfSKyQbRcc/A=="
|
110
|
+
# # or
|
111
|
+
# prng = Random.new
|
112
|
+
# prng.base64 #=> "6BbW0pxO0YENxn38HMUbcQ=="
|
113
|
+
#
|
114
|
+
# See RFC 3548 for the definition of base64.
|
115
|
+
def base64(n=nil)
|
116
|
+
[random_bytes(n)].pack("m0")
|
117
|
+
end
|
118
|
+
|
119
|
+
# Generate a random URL-safe base64 string.
|
120
|
+
#
|
121
|
+
# The argument _n_ specifies the length, in bytes, of the random number
|
122
|
+
# to be generated. The length of the result string is about 4/3 of _n_.
|
123
|
+
#
|
124
|
+
# If _n_ is not specified or is nil, 16 is assumed.
|
125
|
+
# It may be larger in the future.
|
126
|
+
#
|
127
|
+
# The boolean argument _padding_ specifies the padding.
|
128
|
+
# If it is false or nil, padding is not generated.
|
129
|
+
# Otherwise padding is generated.
|
130
|
+
# By default, padding is not generated because "=" may be used as a URL delimiter.
|
131
|
+
#
|
132
|
+
# The result may contain A-Z, a-z, 0-9, "-" and "_".
|
133
|
+
# "=" is also used if _padding_ is true.
|
134
|
+
#
|
135
|
+
# require 'random/formatter'
|
136
|
+
#
|
137
|
+
# Random.urlsafe_base64 #=> "b4GOKm4pOYU_-BOXcrUGDg"
|
138
|
+
# # or
|
139
|
+
# prng = Random.new
|
140
|
+
# prng.urlsafe_base64 #=> "UZLdOkzop70Ddx-IJR0ABg"
|
141
|
+
#
|
142
|
+
# prng.urlsafe_base64(nil, true) #=> "i0XQ-7gglIsHGV2_BNPrdQ=="
|
143
|
+
# prng.urlsafe_base64(nil, true) #=> "-M8rLhr7JEpJlqFGUMmOxg=="
|
144
|
+
#
|
145
|
+
# See RFC 3548 for the definition of URL-safe base64.
|
146
|
+
def urlsafe_base64(n=nil, padding=false)
|
147
|
+
s = [random_bytes(n)].pack("m0")
|
148
|
+
s.tr!("+/", "-_")
|
149
|
+
s.delete!("=") unless padding
|
150
|
+
s
|
151
|
+
end
|
152
|
+
|
153
|
+
# Generate a random v4 UUID (Universally Unique IDentifier).
|
154
|
+
#
|
155
|
+
# require 'random/formatter'
|
156
|
+
#
|
157
|
+
# Random.uuid #=> "2d931510-d99f-494a-8c67-87feb05e1594"
|
158
|
+
# Random.uuid #=> "bad85eb9-0713-4da7-8d36-07a8e4b00eab"
|
159
|
+
# # or
|
160
|
+
# prng = Random.new
|
161
|
+
# prng.uuid #=> "62936e70-1815-439b-bf89-8492855a7e6b"
|
162
|
+
#
|
163
|
+
# The version 4 UUID is purely random (except the version).
|
164
|
+
# It doesn't contain meaningful information such as MAC addresses, timestamps, etc.
|
165
|
+
#
|
166
|
+
# The result contains 122 random bits (15.25 random bytes).
|
167
|
+
#
|
168
|
+
# See RFC4122[https://datatracker.ietf.org/doc/html/rfc4122] for details of UUID.
|
169
|
+
#
|
170
|
+
def uuid
|
171
|
+
ary = random_bytes(16).unpack("NnnnnN")
|
172
|
+
ary[2] = (ary[2] & 0x0fff) | 0x4000
|
173
|
+
ary[3] = (ary[3] & 0x3fff) | 0x8000
|
174
|
+
"%08x-%04x-%04x-%04x-%04x%08x" % ary
|
175
|
+
end
|
176
|
+
|
177
|
+
alias uuid_v4 uuid
|
178
|
+
|
179
|
+
# Generate a random v7 UUID (Universally Unique IDentifier).
|
180
|
+
#
|
181
|
+
# require 'random/formatter'
|
182
|
+
#
|
183
|
+
# Random.uuid_v7 # => "0188d4c3-1311-7f96-85c7-242a7aa58f1e"
|
184
|
+
# Random.uuid_v7 # => "0188d4c3-16fe-744f-86af-38fa04c62bb5"
|
185
|
+
# Random.uuid_v7 # => "0188d4c3-1af8-764f-b049-c204ce0afa23"
|
186
|
+
# Random.uuid_v7 # => "0188d4c3-1e74-7085-b14f-ef6415dc6f31"
|
187
|
+
# # |<--sorted-->| |<----- random ---->|
|
188
|
+
#
|
189
|
+
# # or
|
190
|
+
# prng = Random.new
|
191
|
+
# prng.uuid_v7 # => "0188ca51-5e72-7950-a11d-def7ff977c98"
|
192
|
+
#
|
193
|
+
# The version 7 UUID starts with the least significant 48 bits of a 64 bit
|
194
|
+
# Unix timestamp (milliseconds since the epoch) and fills the remaining bits
|
195
|
+
# with random data, excluding the version and variant bits.
|
196
|
+
#
|
197
|
+
# This allows version 7 UUIDs to be sorted by creation time. Time ordered
|
198
|
+
# UUIDs can be used for better database index locality of newly inserted
|
199
|
+
# records, which may have a significant performance benefit compared to random
|
200
|
+
# data inserts.
|
201
|
+
#
|
202
|
+
# The result contains 74 random bits (9.25 random bytes).
|
203
|
+
#
|
204
|
+
# Note that this method cannot be made reproducable because its output
|
205
|
+
# includes not only random bits but also timestamp.
|
206
|
+
#
|
207
|
+
# See draft-ietf-uuidrev-rfc4122bis[https://datatracker.ietf.org/doc/draft-ietf-uuidrev-rfc4122bis/]
|
208
|
+
# for details of UUIDv7.
|
209
|
+
#
|
210
|
+
# ==== Monotonicity
|
211
|
+
#
|
212
|
+
# UUIDv7 has millisecond precision by default, so multiple UUIDs created
|
213
|
+
# within the same millisecond are not issued in monotonically increasing
|
214
|
+
# order. To create UUIDs that are time-ordered with sub-millisecond
|
215
|
+
# precision, up to 12 bits of additional timestamp may added with
|
216
|
+
# +extra_timestamp_bits+. The extra timestamp precision comes at the expense
|
217
|
+
# of random bits. Setting <tt>extra_timestamp_bits: 12</tt> provides ~244ns
|
218
|
+
# of precision, but only 62 random bits (7.75 random bytes).
|
219
|
+
#
|
220
|
+
# prng = Random.new
|
221
|
+
# Array.new(4) { prng.uuid_v7(extra_timestamp_bits: 12) }
|
222
|
+
# # =>
|
223
|
+
# ["0188d4c7-13da-74f9-8b53-22a786ffdd5a",
|
224
|
+
# "0188d4c7-13da-753b-83a5-7fb9b2afaeea",
|
225
|
+
# "0188d4c7-13da-754a-88ea-ac0baeedd8db",
|
226
|
+
# "0188d4c7-13da-7557-83e1-7cad9cda0d8d"]
|
227
|
+
# # |<--- sorted --->| |<-- random --->|
|
228
|
+
#
|
229
|
+
# Array.new(4) { prng.uuid_v7(extra_timestamp_bits: 8) }
|
230
|
+
# # =>
|
231
|
+
# ["0188d4c7-3333-7a95-850a-de6edb858f7e",
|
232
|
+
# "0188d4c7-3333-7ae8-842e-bc3a8b7d0cf9", # <- out of order
|
233
|
+
# "0188d4c7-3333-7ae2-995a-9f135dc44ead", # <- out of order
|
234
|
+
# "0188d4c7-3333-7af9-87c3-8f612edac82e"]
|
235
|
+
# # |<--- sorted -->||<---- random --->|
|
236
|
+
#
|
237
|
+
# Any rollbacks of the system clock will break monotonicity. UUIDv7 is based
|
238
|
+
# on UTC, which excludes leap seconds and can rollback the clock. To avoid
|
239
|
+
# this, the system clock can synchronize with an NTP server configured to use
|
240
|
+
# a "leap smear" approach. NTP or PTP will also be needed to synchronize
|
241
|
+
# across distributed nodes.
|
242
|
+
#
|
243
|
+
# Counters and other mechanisms for stronger guarantees of monotonicity are
|
244
|
+
# not implemented. Applications with stricter requirements should follow
|
245
|
+
# {Section 6.2}[https://www.ietf.org/archive/id/draft-ietf-uuidrev-rfc4122bis-07.html#monotonicity_counters]
|
246
|
+
# of the specification.
|
247
|
+
#
|
248
|
+
def uuid_v7(extra_timestamp_bits: 0)
|
249
|
+
case (extra_timestamp_bits = Integer(extra_timestamp_bits))
|
250
|
+
when 0 # min timestamp precision
|
251
|
+
ms = Process.clock_gettime(Process::CLOCK_REALTIME, :millisecond)
|
252
|
+
rand = random_bytes(10)
|
253
|
+
rand.setbyte(0, rand.getbyte(0) & 0x0f | 0x70) # version
|
254
|
+
rand.setbyte(2, rand.getbyte(2) & 0x3f | 0x80) # variant
|
255
|
+
"%08x-%04x-%s" % [
|
256
|
+
(ms & 0x0000_ffff_ffff_0000) >> 16,
|
257
|
+
(ms & 0x0000_0000_0000_ffff),
|
258
|
+
rand.unpack("H4H4H12").join("-")
|
259
|
+
]
|
260
|
+
|
261
|
+
when 12 # max timestamp precision
|
262
|
+
ms, ns = Process.clock_gettime(Process::CLOCK_REALTIME, :nanosecond)
|
263
|
+
.divmod(1_000_000)
|
264
|
+
extra_bits = ns * 4096 / 1_000_000
|
265
|
+
rand = random_bytes(8)
|
266
|
+
rand.setbyte(0, rand.getbyte(0) & 0x3f | 0x80) # variant
|
267
|
+
"%08x-%04x-7%03x-%s" % [
|
268
|
+
(ms & 0x0000_ffff_ffff_0000) >> 16,
|
269
|
+
(ms & 0x0000_0000_0000_ffff),
|
270
|
+
extra_bits,
|
271
|
+
rand.unpack("H4H12").join("-")
|
272
|
+
]
|
273
|
+
|
274
|
+
when (0..12) # the generic version is slower than the special cases above
|
275
|
+
rand_a, rand_b1, rand_b2, rand_b3 = random_bytes(10).unpack("nnnN")
|
276
|
+
rand_mask_bits = 12 - extra_timestamp_bits
|
277
|
+
ms, ns = Process.clock_gettime(Process::CLOCK_REALTIME, :nanosecond)
|
278
|
+
.divmod(1_000_000)
|
279
|
+
"%08x-%04x-%04x-%04x-%04x%08x" % [
|
280
|
+
(ms & 0x0000_ffff_ffff_0000) >> 16,
|
281
|
+
(ms & 0x0000_0000_0000_ffff),
|
282
|
+
0x7000 |
|
283
|
+
((ns * (1 << extra_timestamp_bits) / 1_000_000) << rand_mask_bits) |
|
284
|
+
rand_a & ((1 << rand_mask_bits) - 1),
|
285
|
+
0x8000 | (rand_b1 & 0x3fff),
|
286
|
+
rand_b2,
|
287
|
+
rand_b3
|
288
|
+
]
|
289
|
+
|
290
|
+
else
|
291
|
+
raise ArgumentError, "extra_timestamp_bits must be in 0..12"
|
292
|
+
end
|
293
|
+
end
|
294
|
+
|
295
|
+
# Internal interface to Random; Generate random data _n_ bytes.
|
296
|
+
private def gen_random(n)
|
297
|
+
self.bytes(n)
|
298
|
+
end
|
299
|
+
|
300
|
+
# Generate a string that randomly draws from a
|
301
|
+
# source array of characters.
|
302
|
+
#
|
303
|
+
# The argument _source_ specifies the array of characters from which
|
304
|
+
# to generate the string.
|
305
|
+
# The argument _n_ specifies the length, in characters, of the string to be
|
306
|
+
# generated.
|
307
|
+
#
|
308
|
+
# The result may contain whatever characters are in the source array.
|
309
|
+
#
|
310
|
+
# require 'random/formatter'
|
311
|
+
#
|
312
|
+
# prng.choose([*'l'..'r'], 16) #=> "lmrqpoonmmlqlron"
|
313
|
+
# prng.choose([*'0'..'9'], 5) #=> "27309"
|
314
|
+
private def choose(source, n)
|
315
|
+
size = source.size
|
316
|
+
m = 1
|
317
|
+
limit = size
|
318
|
+
while limit * size <= 0x100000000
|
319
|
+
limit *= size
|
320
|
+
m += 1
|
321
|
+
end
|
322
|
+
result = ''.dup
|
323
|
+
while m <= n
|
324
|
+
rs = random_number(limit)
|
325
|
+
is = rs.digits(size)
|
326
|
+
(m-is.length).times { is << 0 }
|
327
|
+
result << source.values_at(*is).join('')
|
328
|
+
n -= m
|
329
|
+
end
|
330
|
+
if 0 < n
|
331
|
+
rs = random_number(limit)
|
332
|
+
is = rs.digits(size)
|
333
|
+
if is.length < n
|
334
|
+
(n-is.length).times { is << 0 }
|
335
|
+
else
|
336
|
+
is.pop while n < is.length
|
337
|
+
end
|
338
|
+
result.concat source.values_at(*is).join('')
|
339
|
+
end
|
340
|
+
result
|
341
|
+
end
|
342
|
+
|
343
|
+
# The default character list for #alphanumeric.
|
344
|
+
ALPHANUMERIC = [*'A'..'Z', *'a'..'z', *'0'..'9']
|
345
|
+
|
346
|
+
# Generate a random alphanumeric string.
|
347
|
+
#
|
348
|
+
# The argument _n_ specifies the length, in characters, of the alphanumeric
|
349
|
+
# string to be generated.
|
350
|
+
# The argument _chars_ specifies the character list which the result is
|
351
|
+
# consist of.
|
352
|
+
#
|
353
|
+
# If _n_ is not specified or is nil, 16 is assumed.
|
354
|
+
# It may be larger in the future.
|
355
|
+
#
|
356
|
+
# The result may contain A-Z, a-z and 0-9, unless _chars_ is specified.
|
357
|
+
#
|
358
|
+
# require 'random/formatter'
|
359
|
+
#
|
360
|
+
# Random.alphanumeric #=> "2BuBuLf3WfSKyQbR"
|
361
|
+
# # or
|
362
|
+
# prng = Random.new
|
363
|
+
# prng.alphanumeric(10) #=> "i6K93NdqiH"
|
364
|
+
#
|
365
|
+
# Random.alphanumeric(4, chars: [*"0".."9"]) #=> "2952"
|
366
|
+
# # or
|
367
|
+
# prng = Random.new
|
368
|
+
# prng.alphanumeric(10, chars: [*"!".."/"]) #=> ",.,++%/''."
|
369
|
+
def alphanumeric(n = nil, chars: ALPHANUMERIC)
|
370
|
+
n = 16 if n.nil?
|
371
|
+
choose(chars, n)
|
372
|
+
end
|
373
|
+
end
|