javonet-ruby-sdk 2.5.6 → 2.5.8
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/Javonet.Clr.Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Clr/JavonetClrRuntime.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Jvm/JavonetJvmRuntime.jar +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetActivationService.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetCppRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetGoRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetJvmRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetNetcoreRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetPythonRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetRuby278RuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetRubyRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetTcpClient.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetTcpTlsClient.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libUtils.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/NativeUtilsUnitTests.xml +29 -18
- 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/libJavonetRuby278RuntimeNative.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/libJavonetRuby278RuntimeNative.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/ARM64/JavonetActivationService.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetCppRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetGoRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetJvmRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetNetcoreRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetPythonRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetRuby278RuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetRubyRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetTcpClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetTcpTlsClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/version.txt +0 -0
- 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/JavonetPerlRuntimeNativeAuxiliary.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/JavonetRuby278RuntimeNative.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/Native/Windows/X86/JavonetActivationService.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetClrRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetCppRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetGoRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetJvmRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetNetcoreRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetPythonRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetTcpClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetTcpTlsClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Netcore/Javonet.Netcore.Core.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Netcore/Javonet.Netcore.Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/GetTypeHandler.js +17 -2
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/LoadLibraryHandler.js +6 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/interpreter/Interpreter.js +4 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/webSocketClient/WebSocketClient.js +8 -7
- 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 +89 -89
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Receiver/Receiver.pm +5 -6
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Javonet.pm +10 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Sdk/Core/RuntimeLogger.pm +2 -2
- 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 +20 -20
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Receiver/Receiver.pm +5 -6
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Javonet.pm +10 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Sdk/Core/RuntimeLogger.pm +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/delegateCache/__pycache__/DelegatesCache.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/delegateCache/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/internal/__pycache__/PythonStringBuilder.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/internal/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/GetInstanceFieldHandler.py +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/GetTypeHandler.py +7 -4
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/AbstractCommandHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/AbstractHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetItemHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetRankHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetSizeHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArraySetItemHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/CastingHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/CreateClassInstanceHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/DestructReferenceHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/EnableNamespaceHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/EnableTypeHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumItemHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumNameHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumValueHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceFieldHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceMethodAsDelegateHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetStaticFieldHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetStaticMethodAsDelegateHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetTypeHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/Handler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/HandlerDictionary.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeDelegateHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeInstanceMethodHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeStaticMethodHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/LoadLibraryHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/PassDelegateHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ResolveInstanceHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/SetInstanceFieldHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/SetStaticFieldHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ValueHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/interpreter/__pycache__/Interpreter.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/interpreter/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/namespaceCache/__pycache__/NamespaceCache.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/namespaceCache/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/CommandDeserializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/CommandSerializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/TypeDeserializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/TypeSerializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/Receiver.py +3 -4
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/__pycache__/Receiver.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/referenceCache/__pycache__/ReferencesCache.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/referenceCache/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/typeCache/__pycache__/TypeCache.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/typeCache/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/webSocketClient/WebSocketClient.py +15 -14
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/RuntimeLogger.py +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/Command.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/CommandType.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/ConnectionType.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/ExceptionType.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/RuntimeLogger.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/RuntimeName.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/StringEncodingMode.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/Type.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/IConnectionData.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/InMemoryConnectionData.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/ExceptionSerializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/get_instance_field_handler.rb +3 -3
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/get_static_field_handler.rb +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/get_type_handler.rb +29 -18
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/load_library_handler.rb +8 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/set_instance_field_handler.rb +7 -3
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/set_static_field_handler.rb +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/get_instance_field_handler.rb +3 -3
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/get_static_field_handler.rb +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/get_type_handler.rb +29 -18
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/load_library_handler.rb +8 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/set_instance_field_handler.rb +7 -3
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/set_static_field_handler.rb +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/get_instance_field_handler.rb +3 -3
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/get_static_field_handler.rb +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/get_type_handler.rb +29 -18
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/load_library_handler.rb +8 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/set_instance_field_handler.rb +7 -3
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/set_static_field_handler.rb +2 -2
- data/lib/javonet-ruby-sdk/Binaries/version.txt +1 -1
- data/lib/javonet-ruby-sdk/core/handler/get_instance_field_handler.rb +3 -3
- data/lib/javonet-ruby-sdk/core/handler/get_static_field_handler.rb +2 -2
- data/lib/javonet-ruby-sdk/core/handler/get_type_handler.rb +29 -18
- data/lib/javonet-ruby-sdk/core/handler/load_library_handler.rb +8 -0
- data/lib/javonet-ruby-sdk/core/handler/set_instance_field_handler.rb +7 -3
- data/lib/javonet-ruby-sdk/core/handler/set_static_field_handler.rb +2 -2
- data/lib/javonet-ruby-sdk/sdk/javonet.rb +11 -1
- metadata +2 -2
@@ -18,7 +18,7 @@ class GetTypeHandler < AbstractCommandHandler
|
|
18
18
|
type_to_return = _get_type_from_payload(command)
|
19
19
|
|
20
20
|
if type_to_return.nil?
|
21
|
-
raise "Type #{command.payload[0]} not found"
|
21
|
+
raise "Type #{command.payload[0]} not found.\n"
|
22
22
|
end
|
23
23
|
|
24
24
|
if (@namespace_cache.is_namespace_cache_empty? && @type_cache.is_type_cache_empty?) || # both caches are empty
|
@@ -33,27 +33,38 @@ class GetTypeHandler < AbstractCommandHandler
|
|
33
33
|
|
34
34
|
type_to_return
|
35
35
|
rescue Exception => e
|
36
|
-
|
36
|
+
begin
|
37
|
+
message = e.message
|
38
|
+
message += "\nLoaded libraries:\n"
|
39
|
+
loaded_libraries = LoadLibraryHandler.get_loaded_libraries
|
40
|
+
# find types in loaded libraries
|
41
|
+
loaded_libraries.each do |library|
|
42
|
+
message += "#{library}\n"
|
43
|
+
end
|
44
|
+
raise ArgumentError, message
|
45
|
+
rescue Exception => e
|
46
|
+
return e
|
47
|
+
end
|
37
48
|
end
|
38
|
-
end
|
49
|
+
end
|
39
50
|
|
40
|
-
|
51
|
+
private
|
41
52
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
else
|
48
|
-
return _get_type_from_nested_payload(type_name)
|
49
|
-
end
|
53
|
+
def _get_type_from_payload(command)
|
54
|
+
if command.payload.length == 1
|
55
|
+
type_name = command.payload[0].split("::")
|
56
|
+
if type_name.length == 1
|
57
|
+
return Object::const_get(type_name[0])
|
50
58
|
else
|
51
|
-
return _get_type_from_nested_payload(
|
59
|
+
return _get_type_from_nested_payload(type_name)
|
52
60
|
end
|
61
|
+
else
|
62
|
+
return _get_type_from_nested_payload(command.payload)
|
53
63
|
end
|
64
|
+
end
|
54
65
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
66
|
+
def _get_type_from_nested_payload(payload)
|
67
|
+
loaded_module = Object::const_get(payload[0..-2].join("::"))
|
68
|
+
loaded_module.const_get(payload[-1])
|
69
|
+
end
|
70
|
+
end
|
@@ -1,6 +1,9 @@
|
|
1
1
|
require_relative 'abstract_command_handler'
|
2
2
|
|
3
3
|
class LoadLibraryHandler < AbstractCommandHandler
|
4
|
+
|
5
|
+
@@loaded_libraries = []
|
6
|
+
|
4
7
|
def initialize
|
5
8
|
@required_parameters_count = 1
|
6
9
|
end
|
@@ -17,9 +20,14 @@ class LoadLibraryHandler < AbstractCommandHandler
|
|
17
20
|
end
|
18
21
|
#noinspection RubyResolve
|
19
22
|
require(assembly_name)
|
23
|
+
@@loaded_libraries.push(assembly_name)
|
20
24
|
return 0
|
21
25
|
rescue Exception => e
|
22
26
|
return e
|
23
27
|
end
|
24
28
|
end
|
29
|
+
|
30
|
+
def self.get_loaded_libraries
|
31
|
+
@@loaded_libraries
|
32
|
+
end
|
25
33
|
end
|
data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/set_instance_field_handler.rb
CHANGED
@@ -17,12 +17,16 @@ class SetInstanceFieldHandler < AbstractCommandHandler
|
|
17
17
|
|
18
18
|
merged_value = '@' + command.payload[1]
|
19
19
|
begin
|
20
|
-
command.payload[0].
|
21
|
-
|
20
|
+
if command.payload[0].instance_variable_defined?(merged_value)
|
21
|
+
command.payload[0].instance_variable_set(merged_value, command.payload[2])
|
22
|
+
else
|
23
|
+
raise Exception
|
24
|
+
end
|
25
|
+
rescue Exception
|
22
26
|
fields = command.payload[0].instance_variables
|
23
27
|
message = "Field #{command.payload[1]} not found in class #{command.payload[0].class.name}. Available fields:\n"
|
24
28
|
fields.each { |field_iter| message += "#{field_iter} \n" }
|
25
|
-
raise
|
29
|
+
raise ArgumentError, message
|
26
30
|
end
|
27
31
|
rescue Exception => e
|
28
32
|
return e
|
@@ -18,11 +18,11 @@ class SetStaticFieldHandler < AbstractCommandHandler
|
|
18
18
|
merged_value = '@@' + command.payload[1]
|
19
19
|
begin
|
20
20
|
command.payload[0].class_variable_set(merged_value, command.payload[2])
|
21
|
-
rescue
|
21
|
+
rescue Exception
|
22
22
|
fields = command.payload[0].class_variables
|
23
23
|
message = "Field #{command.payload[1]} not found in class #{command.payload[0].name}. Available fields:\n"
|
24
24
|
fields.each { |field_iter| message += "#{field_iter}\n" }
|
25
|
-
raise
|
25
|
+
raise ArgumentError, message
|
26
26
|
end
|
27
27
|
rescue Exception => e
|
28
28
|
return e
|
data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/get_instance_field_handler.rb
CHANGED
@@ -19,14 +19,14 @@ class GetInstanceFieldHandler < AbstractCommandHandler
|
|
19
19
|
if command.payload[0].instance_variable_defined?(merged_value)
|
20
20
|
response = command.payload[0].instance_variable_get(merged_value)
|
21
21
|
else
|
22
|
-
raise
|
22
|
+
raise Exception
|
23
23
|
end
|
24
24
|
return response
|
25
|
-
rescue
|
25
|
+
rescue Exception => e
|
26
26
|
fields = command.payload[0].instance_variables
|
27
27
|
message = "Field #{command.payload[1]} not found in object of class #{command.payload[0].class.name}. Available fields:\n"
|
28
28
|
fields.each { |field_iter| message += "#{field_iter}\n" }
|
29
|
-
raise
|
29
|
+
raise ArgumentError, message
|
30
30
|
rescue Exception => e
|
31
31
|
return e
|
32
32
|
end
|
@@ -22,11 +22,11 @@ class GetStaticFieldHandler < AbstractCommandHandler
|
|
22
22
|
response = command.payload[0].const_get(command.payload[1])
|
23
23
|
end
|
24
24
|
return response
|
25
|
-
rescue
|
25
|
+
rescue Exception
|
26
26
|
fields = command.payload[0].class_variables
|
27
27
|
message = "Field #{command.payload[1]} not found in class #{command.payload[0].name}. Available fields:\n"
|
28
28
|
fields.each { |field_iter| message += "#{field_iter}\n" }
|
29
|
-
raise
|
29
|
+
raise ArgumentError, message
|
30
30
|
rescue Exception => e
|
31
31
|
return e
|
32
32
|
end
|
@@ -18,7 +18,7 @@ class GetTypeHandler < AbstractCommandHandler
|
|
18
18
|
type_to_return = _get_type_from_payload(command)
|
19
19
|
|
20
20
|
if type_to_return.nil?
|
21
|
-
raise "Type #{command.payload[0]} not found"
|
21
|
+
raise "Type #{command.payload[0]} not found.\n"
|
22
22
|
end
|
23
23
|
|
24
24
|
if (@namespace_cache.is_namespace_cache_empty? && @type_cache.is_type_cache_empty?) || # both caches are empty
|
@@ -33,27 +33,38 @@ class GetTypeHandler < AbstractCommandHandler
|
|
33
33
|
|
34
34
|
type_to_return
|
35
35
|
rescue Exception => e
|
36
|
-
|
36
|
+
begin
|
37
|
+
message = e.message
|
38
|
+
message += "\nLoaded libraries:\n"
|
39
|
+
loaded_libraries = LoadLibraryHandler.get_loaded_libraries
|
40
|
+
# find types in loaded libraries
|
41
|
+
loaded_libraries.each do |library|
|
42
|
+
message += "#{library}\n"
|
43
|
+
end
|
44
|
+
raise ArgumentError, message
|
45
|
+
rescue Exception => e
|
46
|
+
return e
|
47
|
+
end
|
37
48
|
end
|
38
|
-
end
|
49
|
+
end
|
39
50
|
|
40
|
-
|
51
|
+
private
|
41
52
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
else
|
48
|
-
return _get_type_from_nested_payload(type_name)
|
49
|
-
end
|
53
|
+
def _get_type_from_payload(command)
|
54
|
+
if command.payload.length == 1
|
55
|
+
type_name = command.payload[0].split("::")
|
56
|
+
if type_name.length == 1
|
57
|
+
return Object::const_get(type_name[0])
|
50
58
|
else
|
51
|
-
return _get_type_from_nested_payload(
|
59
|
+
return _get_type_from_nested_payload(type_name)
|
52
60
|
end
|
61
|
+
else
|
62
|
+
return _get_type_from_nested_payload(command.payload)
|
53
63
|
end
|
64
|
+
end
|
54
65
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
66
|
+
def _get_type_from_nested_payload(payload)
|
67
|
+
loaded_module = Object::const_get(payload[0..-2].join("::"))
|
68
|
+
loaded_module.const_get(payload[-1])
|
69
|
+
end
|
70
|
+
end
|
@@ -1,6 +1,9 @@
|
|
1
1
|
require_relative 'abstract_command_handler'
|
2
2
|
|
3
3
|
class LoadLibraryHandler < AbstractCommandHandler
|
4
|
+
|
5
|
+
@@loaded_libraries = []
|
6
|
+
|
4
7
|
def initialize
|
5
8
|
@required_parameters_count = 1
|
6
9
|
end
|
@@ -17,9 +20,14 @@ class LoadLibraryHandler < AbstractCommandHandler
|
|
17
20
|
end
|
18
21
|
#noinspection RubyResolve
|
19
22
|
require(assembly_name)
|
23
|
+
@@loaded_libraries.push(assembly_name)
|
20
24
|
return 0
|
21
25
|
rescue Exception => e
|
22
26
|
return e
|
23
27
|
end
|
24
28
|
end
|
29
|
+
|
30
|
+
def self.get_loaded_libraries
|
31
|
+
@@loaded_libraries
|
32
|
+
end
|
25
33
|
end
|
data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/set_instance_field_handler.rb
CHANGED
@@ -17,12 +17,16 @@ class SetInstanceFieldHandler < AbstractCommandHandler
|
|
17
17
|
|
18
18
|
merged_value = '@' + command.payload[1]
|
19
19
|
begin
|
20
|
-
command.payload[0].
|
21
|
-
|
20
|
+
if command.payload[0].instance_variable_defined?(merged_value)
|
21
|
+
command.payload[0].instance_variable_set(merged_value, command.payload[2])
|
22
|
+
else
|
23
|
+
raise Exception
|
24
|
+
end
|
25
|
+
rescue Exception
|
22
26
|
fields = command.payload[0].instance_variables
|
23
27
|
message = "Field #{command.payload[1]} not found in class #{command.payload[0].class.name}. Available fields:\n"
|
24
28
|
fields.each { |field_iter| message += "#{field_iter} \n" }
|
25
|
-
raise
|
29
|
+
raise ArgumentError, message
|
26
30
|
end
|
27
31
|
rescue Exception => e
|
28
32
|
return e
|
@@ -18,11 +18,11 @@ class SetStaticFieldHandler < AbstractCommandHandler
|
|
18
18
|
merged_value = '@@' + command.payload[1]
|
19
19
|
begin
|
20
20
|
command.payload[0].class_variable_set(merged_value, command.payload[2])
|
21
|
-
rescue
|
21
|
+
rescue Exception
|
22
22
|
fields = command.payload[0].class_variables
|
23
23
|
message = "Field #{command.payload[1]} not found in class #{command.payload[0].name}. Available fields:\n"
|
24
24
|
fields.each { |field_iter| message += "#{field_iter}\n" }
|
25
|
-
raise
|
25
|
+
raise ArgumentError, message
|
26
26
|
end
|
27
27
|
rescue Exception => e
|
28
28
|
return e
|
data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/get_instance_field_handler.rb
CHANGED
@@ -19,14 +19,14 @@ class GetInstanceFieldHandler < AbstractCommandHandler
|
|
19
19
|
if command.payload[0].instance_variable_defined?(merged_value)
|
20
20
|
response = command.payload[0].instance_variable_get(merged_value)
|
21
21
|
else
|
22
|
-
raise
|
22
|
+
raise Exception
|
23
23
|
end
|
24
24
|
return response
|
25
|
-
rescue
|
25
|
+
rescue Exception => e
|
26
26
|
fields = command.payload[0].instance_variables
|
27
27
|
message = "Field #{command.payload[1]} not found in object of class #{command.payload[0].class.name}. Available fields:\n"
|
28
28
|
fields.each { |field_iter| message += "#{field_iter}\n" }
|
29
|
-
raise
|
29
|
+
raise ArgumentError, message
|
30
30
|
rescue Exception => e
|
31
31
|
return e
|
32
32
|
end
|
data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/get_static_field_handler.rb
CHANGED
@@ -22,11 +22,11 @@ class GetStaticFieldHandler < AbstractCommandHandler
|
|
22
22
|
response = command.payload[0].const_get(command.payload[1])
|
23
23
|
end
|
24
24
|
return response
|
25
|
-
rescue
|
25
|
+
rescue Exception
|
26
26
|
fields = command.payload[0].class_variables
|
27
27
|
message = "Field #{command.payload[1]} not found in class #{command.payload[0].name}. Available fields:\n"
|
28
28
|
fields.each { |field_iter| message += "#{field_iter}\n" }
|
29
|
-
raise
|
29
|
+
raise ArgumentError, message
|
30
30
|
rescue Exception => e
|
31
31
|
return e
|
32
32
|
end
|
@@ -18,7 +18,7 @@ class GetTypeHandler < AbstractCommandHandler
|
|
18
18
|
type_to_return = _get_type_from_payload(command)
|
19
19
|
|
20
20
|
if type_to_return.nil?
|
21
|
-
raise "Type #{command.payload[0]} not found"
|
21
|
+
raise "Type #{command.payload[0]} not found.\n"
|
22
22
|
end
|
23
23
|
|
24
24
|
if (@namespace_cache.is_namespace_cache_empty? && @type_cache.is_type_cache_empty?) || # both caches are empty
|
@@ -33,27 +33,38 @@ class GetTypeHandler < AbstractCommandHandler
|
|
33
33
|
|
34
34
|
type_to_return
|
35
35
|
rescue Exception => e
|
36
|
-
|
36
|
+
begin
|
37
|
+
message = e.message
|
38
|
+
message += "\nLoaded libraries:\n"
|
39
|
+
loaded_libraries = LoadLibraryHandler.get_loaded_libraries
|
40
|
+
# find types in loaded libraries
|
41
|
+
loaded_libraries.each do |library|
|
42
|
+
message += "#{library}\n"
|
43
|
+
end
|
44
|
+
raise ArgumentError, message
|
45
|
+
rescue Exception => e
|
46
|
+
return e
|
47
|
+
end
|
37
48
|
end
|
38
|
-
end
|
49
|
+
end
|
39
50
|
|
40
|
-
|
51
|
+
private
|
41
52
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
else
|
48
|
-
return _get_type_from_nested_payload(type_name)
|
49
|
-
end
|
53
|
+
def _get_type_from_payload(command)
|
54
|
+
if command.payload.length == 1
|
55
|
+
type_name = command.payload[0].split("::")
|
56
|
+
if type_name.length == 1
|
57
|
+
return Object::const_get(type_name[0])
|
50
58
|
else
|
51
|
-
return _get_type_from_nested_payload(
|
59
|
+
return _get_type_from_nested_payload(type_name)
|
52
60
|
end
|
61
|
+
else
|
62
|
+
return _get_type_from_nested_payload(command.payload)
|
53
63
|
end
|
64
|
+
end
|
54
65
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
66
|
+
def _get_type_from_nested_payload(payload)
|
67
|
+
loaded_module = Object::const_get(payload[0..-2].join("::"))
|
68
|
+
loaded_module.const_get(payload[-1])
|
69
|
+
end
|
70
|
+
end
|
@@ -1,6 +1,9 @@
|
|
1
1
|
require_relative 'abstract_command_handler'
|
2
2
|
|
3
3
|
class LoadLibraryHandler < AbstractCommandHandler
|
4
|
+
|
5
|
+
@@loaded_libraries = []
|
6
|
+
|
4
7
|
def initialize
|
5
8
|
@required_parameters_count = 1
|
6
9
|
end
|
@@ -17,9 +20,14 @@ class LoadLibraryHandler < AbstractCommandHandler
|
|
17
20
|
end
|
18
21
|
#noinspection RubyResolve
|
19
22
|
require(assembly_name)
|
23
|
+
@@loaded_libraries.push(assembly_name)
|
20
24
|
return 0
|
21
25
|
rescue Exception => e
|
22
26
|
return e
|
23
27
|
end
|
24
28
|
end
|
29
|
+
|
30
|
+
def self.get_loaded_libraries
|
31
|
+
@@loaded_libraries
|
32
|
+
end
|
25
33
|
end
|
data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/set_instance_field_handler.rb
CHANGED
@@ -17,12 +17,16 @@ class SetInstanceFieldHandler < AbstractCommandHandler
|
|
17
17
|
|
18
18
|
merged_value = '@' + command.payload[1]
|
19
19
|
begin
|
20
|
-
command.payload[0].
|
21
|
-
|
20
|
+
if command.payload[0].instance_variable_defined?(merged_value)
|
21
|
+
command.payload[0].instance_variable_set(merged_value, command.payload[2])
|
22
|
+
else
|
23
|
+
raise Exception
|
24
|
+
end
|
25
|
+
rescue Exception
|
22
26
|
fields = command.payload[0].instance_variables
|
23
27
|
message = "Field #{command.payload[1]} not found in class #{command.payload[0].class.name}. Available fields:\n"
|
24
28
|
fields.each { |field_iter| message += "#{field_iter} \n" }
|
25
|
-
raise
|
29
|
+
raise ArgumentError, message
|
26
30
|
end
|
27
31
|
rescue Exception => e
|
28
32
|
return e
|
data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/set_static_field_handler.rb
CHANGED
@@ -18,11 +18,11 @@ class SetStaticFieldHandler < AbstractCommandHandler
|
|
18
18
|
merged_value = '@@' + command.payload[1]
|
19
19
|
begin
|
20
20
|
command.payload[0].class_variable_set(merged_value, command.payload[2])
|
21
|
-
rescue
|
21
|
+
rescue Exception
|
22
22
|
fields = command.payload[0].class_variables
|
23
23
|
message = "Field #{command.payload[1]} not found in class #{command.payload[0].name}. Available fields:\n"
|
24
24
|
fields.each { |field_iter| message += "#{field_iter}\n" }
|
25
|
-
raise
|
25
|
+
raise ArgumentError, message
|
26
26
|
end
|
27
27
|
rescue Exception => e
|
28
28
|
return e
|
@@ -1 +1 @@
|
|
1
|
-
2.5.
|
1
|
+
2.5.8
|
@@ -19,14 +19,14 @@ class GetInstanceFieldHandler < AbstractCommandHandler
|
|
19
19
|
if command.payload[0].instance_variable_defined?(merged_value)
|
20
20
|
response = command.payload[0].instance_variable_get(merged_value)
|
21
21
|
else
|
22
|
-
raise
|
22
|
+
raise Exception
|
23
23
|
end
|
24
24
|
return response
|
25
|
-
rescue
|
25
|
+
rescue Exception => e
|
26
26
|
fields = command.payload[0].instance_variables
|
27
27
|
message = "Field #{command.payload[1]} not found in object of class #{command.payload[0].class.name}. Available fields:\n"
|
28
28
|
fields.each { |field_iter| message += "#{field_iter}\n" }
|
29
|
-
raise
|
29
|
+
raise ArgumentError, message
|
30
30
|
rescue Exception => e
|
31
31
|
return e
|
32
32
|
end
|
@@ -22,11 +22,11 @@ class GetStaticFieldHandler < AbstractCommandHandler
|
|
22
22
|
response = command.payload[0].const_get(command.payload[1])
|
23
23
|
end
|
24
24
|
return response
|
25
|
-
rescue
|
25
|
+
rescue Exception
|
26
26
|
fields = command.payload[0].class_variables
|
27
27
|
message = "Field #{command.payload[1]} not found in class #{command.payload[0].name}. Available fields:\n"
|
28
28
|
fields.each { |field_iter| message += "#{field_iter}\n" }
|
29
|
-
raise
|
29
|
+
raise ArgumentError, message
|
30
30
|
rescue Exception => e
|
31
31
|
return e
|
32
32
|
end
|
@@ -18,7 +18,7 @@ class GetTypeHandler < AbstractCommandHandler
|
|
18
18
|
type_to_return = _get_type_from_payload(command)
|
19
19
|
|
20
20
|
if type_to_return.nil?
|
21
|
-
raise "Type #{command.payload[0]} not found"
|
21
|
+
raise "Type #{command.payload[0]} not found.\n"
|
22
22
|
end
|
23
23
|
|
24
24
|
if (@namespace_cache.is_namespace_cache_empty? && @type_cache.is_type_cache_empty?) || # both caches are empty
|
@@ -33,27 +33,38 @@ class GetTypeHandler < AbstractCommandHandler
|
|
33
33
|
|
34
34
|
type_to_return
|
35
35
|
rescue Exception => e
|
36
|
-
|
36
|
+
begin
|
37
|
+
message = e.message
|
38
|
+
message += "\nLoaded libraries:\n"
|
39
|
+
loaded_libraries = LoadLibraryHandler.get_loaded_libraries
|
40
|
+
# find types in loaded libraries
|
41
|
+
loaded_libraries.each do |library|
|
42
|
+
message += "#{library}\n"
|
43
|
+
end
|
44
|
+
raise ArgumentError, message
|
45
|
+
rescue Exception => e
|
46
|
+
return e
|
47
|
+
end
|
37
48
|
end
|
38
|
-
end
|
49
|
+
end
|
39
50
|
|
40
|
-
|
51
|
+
private
|
41
52
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
else
|
48
|
-
return _get_type_from_nested_payload(type_name)
|
49
|
-
end
|
53
|
+
def _get_type_from_payload(command)
|
54
|
+
if command.payload.length == 1
|
55
|
+
type_name = command.payload[0].split("::")
|
56
|
+
if type_name.length == 1
|
57
|
+
return Object::const_get(type_name[0])
|
50
58
|
else
|
51
|
-
return _get_type_from_nested_payload(
|
59
|
+
return _get_type_from_nested_payload(type_name)
|
52
60
|
end
|
61
|
+
else
|
62
|
+
return _get_type_from_nested_payload(command.payload)
|
53
63
|
end
|
64
|
+
end
|
54
65
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
66
|
+
def _get_type_from_nested_payload(payload)
|
67
|
+
loaded_module = Object::const_get(payload[0..-2].join("::"))
|
68
|
+
loaded_module.const_get(payload[-1])
|
69
|
+
end
|
70
|
+
end
|
@@ -1,6 +1,9 @@
|
|
1
1
|
require_relative 'abstract_command_handler'
|
2
2
|
|
3
3
|
class LoadLibraryHandler < AbstractCommandHandler
|
4
|
+
|
5
|
+
@@loaded_libraries = []
|
6
|
+
|
4
7
|
def initialize
|
5
8
|
@required_parameters_count = 1
|
6
9
|
end
|
@@ -17,9 +20,14 @@ class LoadLibraryHandler < AbstractCommandHandler
|
|
17
20
|
end
|
18
21
|
#noinspection RubyResolve
|
19
22
|
require(assembly_name)
|
23
|
+
@@loaded_libraries.push(assembly_name)
|
20
24
|
return 0
|
21
25
|
rescue Exception => e
|
22
26
|
return e
|
23
27
|
end
|
24
28
|
end
|
29
|
+
|
30
|
+
def self.get_loaded_libraries
|
31
|
+
@@loaded_libraries
|
32
|
+
end
|
25
33
|
end
|
@@ -17,12 +17,16 @@ class SetInstanceFieldHandler < AbstractCommandHandler
|
|
17
17
|
|
18
18
|
merged_value = '@' + command.payload[1]
|
19
19
|
begin
|
20
|
-
command.payload[0].
|
21
|
-
|
20
|
+
if command.payload[0].instance_variable_defined?(merged_value)
|
21
|
+
command.payload[0].instance_variable_set(merged_value, command.payload[2])
|
22
|
+
else
|
23
|
+
raise Exception
|
24
|
+
end
|
25
|
+
rescue Exception
|
22
26
|
fields = command.payload[0].instance_variables
|
23
27
|
message = "Field #{command.payload[1]} not found in class #{command.payload[0].class.name}. Available fields:\n"
|
24
28
|
fields.each { |field_iter| message += "#{field_iter} \n" }
|
25
|
-
raise
|
29
|
+
raise ArgumentError, message
|
26
30
|
end
|
27
31
|
rescue Exception => e
|
28
32
|
return e
|
@@ -18,11 +18,11 @@ class SetStaticFieldHandler < AbstractCommandHandler
|
|
18
18
|
merged_value = '@@' + command.payload[1]
|
19
19
|
begin
|
20
20
|
command.payload[0].class_variable_set(merged_value, command.payload[2])
|
21
|
-
rescue
|
21
|
+
rescue Exception
|
22
22
|
fields = command.payload[0].class_variables
|
23
23
|
message = "Field #{command.payload[1]} not found in class #{command.payload[0].name}. Available fields:\n"
|
24
24
|
fields.each { |field_iter| message += "#{field_iter}\n" }
|
25
|
-
raise
|
25
|
+
raise ArgumentError, message
|
26
26
|
end
|
27
27
|
rescue Exception => e
|
28
28
|
return e
|
@@ -57,8 +57,18 @@ class Javonet
|
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
-
|
60
|
+
|
61
|
+
# Gets information about the current runtime.
|
62
|
+
# @param get_loaded_modules [Boolean] Whether to include loaded modules in the runtime information.
|
63
|
+
# @return [String] Information about the current runtime.
|
64
|
+
def self.get_runtime_info(get_loaded_modules)
|
61
65
|
RuntimeLogger.get_runtime_info(get_loaded_modules)
|
62
66
|
end
|
63
67
|
|
68
|
+
# Sets the configuration source for the Javonet SDK.
|
69
|
+
# @param config_source [String] The configuration source.
|
70
|
+
def self.set_config_source(config_source)
|
71
|
+
Transmitter.set_config_source(config_source)
|
72
|
+
end
|
73
|
+
|
64
74
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: javonet-ruby-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SdNCenter Sp. z o. o.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|