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.
Files changed (219) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/javonet-ruby-sdk/Binaries/Clr/Javonet.Clr.Utils.dll +0 -0
  4. data/lib/javonet-ruby-sdk/Binaries/Clr/JavonetClrRuntime.dll +0 -0
  5. data/lib/javonet-ruby-sdk/Binaries/Jvm/JavonetJvmRuntime.jar +0 -0
  6. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetActivationService.so +0 -0
  7. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetCppRuntimeNative.so +0 -0
  8. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetGoRuntimeNative.so +0 -0
  9. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetJvmRuntimeNative.so +0 -0
  10. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetNetcoreRuntimeNative.so +0 -0
  11. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetPythonRuntimeNative.so +0 -0
  12. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetRuby278RuntimeNative.so +0 -0
  13. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetRubyRuntimeNative.so +0 -0
  14. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetTcpClient.so +0 -0
  15. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetTcpTlsClient.so +0 -0
  16. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libUtils.so +0 -0
  17. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/version.txt +1 -1
  18. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/NativeUtilsUnitTests.xml +29 -18
  19. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetActivationService.so +0 -0
  20. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetCppRuntimeNative.so +0 -0
  21. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetGoRuntimeNative.so +0 -0
  22. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetJvmRuntimeNative.so +0 -0
  23. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNetcoreRuntimeNative.so +0 -0
  24. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNodejs1816RuntimeNative.so +0 -0
  25. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNodejsRuntimeNative.so +0 -0
  26. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetPerlRuntimeNative.so +0 -0
  27. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetPythonRuntimeNative.so +0 -0
  28. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetRuby278RuntimeNative.so +0 -0
  29. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetRubyRuntimeNative.so +0 -0
  30. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetTcpClient.so +0 -0
  31. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetTcpTlsClient.so +0 -0
  32. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libUtils.so +0 -0
  33. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/openssl3/libJavonetActivationService.so +0 -0
  34. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/openssl3/libJavonetTcpTlsClient.so +0 -0
  35. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/openssl3/libUtils.so +0 -0
  36. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/version.txt +1 -1
  37. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetActivationService.dylib +0 -0
  38. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetCppRuntimeNative.dylib +0 -0
  39. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetGoRuntimeNative.dylib +0 -0
  40. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetJvmRuntimeNative.dylib +0 -0
  41. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNetcoreRuntimeNative.dylib +0 -0
  42. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNodejs1816RuntimeNative.dylib +0 -0
  43. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNodejsRuntimeNative.dylib +0 -0
  44. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetPerlRuntimeNative.dylib +0 -0
  45. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetPythonRuntimeNative.dylib +0 -0
  46. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetRuby278RuntimeNative.dylib +0 -0
  47. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetRubyRuntimeNative.dylib +0 -0
  48. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetTcpClient.dylib +0 -0
  49. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetTcpTlsClient.dylib +0 -0
  50. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libUtils.dylib +0 -0
  51. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/version.txt +1 -1
  52. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetActivationService.dll +0 -0
  53. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetCppRuntimeNative.dll +0 -0
  54. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetGoRuntimeNative.dll +0 -0
  55. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetJvmRuntimeNative.dll +0 -0
  56. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetNetcoreRuntimeNative.dll +0 -0
  57. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetPythonRuntimeNative.dll +0 -0
  58. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetRuby278RuntimeNative.dll +0 -0
  59. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetRubyRuntimeNative.dll +0 -0
  60. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetTcpClient.dll +0 -0
  61. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetTcpTlsClient.dll +0 -0
  62. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/Utils.dll +0 -0
  63. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/version.txt +0 -0
  64. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetActivationService.dll +0 -0
  65. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetClrRuntimeNative.dll +0 -0
  66. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetCppRuntimeNative.dll +0 -0
  67. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetGoRuntimeNative.dll +0 -0
  68. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetJvmRuntimeNative.dll +0 -0
  69. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNetcoreRuntimeNative.dll +0 -0
  70. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNodejs1816RuntimeNative.dll +0 -0
  71. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNodejsRuntimeNative.dll +0 -0
  72. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPerlRuntimeNative.dll +0 -0
  73. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPerlRuntimeNativeAuxiliary.dll +0 -0
  74. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPythonRuntimeNative.dll +0 -0
  75. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetRuby278RuntimeNative.dll +0 -0
  76. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetRubyRuntimeNative.dll +0 -0
  77. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetTcpClient.dll +0 -0
  78. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetTcpTlsClient.dll +0 -0
  79. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/Utils.dll +0 -0
  80. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/version.txt +1 -1
  81. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetActivationService.dll +0 -0
  82. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetClrRuntimeNative.dll +0 -0
  83. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetCppRuntimeNative.dll +0 -0
  84. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetGoRuntimeNative.dll +0 -0
  85. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetJvmRuntimeNative.dll +0 -0
  86. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetNetcoreRuntimeNative.dll +0 -0
  87. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetPythonRuntimeNative.dll +0 -0
  88. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetTcpClient.dll +0 -0
  89. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetTcpTlsClient.dll +0 -0
  90. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/Utils.dll +0 -0
  91. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/version.txt +1 -1
  92. data/lib/javonet-ruby-sdk/Binaries/Netcore/Javonet.Netcore.Core.dll +0 -0
  93. data/lib/javonet-ruby-sdk/Binaries/Netcore/Javonet.Netcore.Utils.dll +0 -0
  94. data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/GetTypeHandler.js +17 -2
  95. data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/LoadLibraryHandler.js +6 -0
  96. data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/interpreter/Interpreter.js +4 -0
  97. data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/webSocketClient/WebSocketClient.js +8 -7
  98. 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
  99. 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
  100. 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
  101. 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
  102. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Moose/Moose.so +0 -0
  103. 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
  104. 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
  105. 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
  106. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Want/Want.so +0 -0
  107. 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
  108. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/perllocal.pod +89 -89
  109. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Receiver/Receiver.pm +5 -6
  110. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Javonet.pm +10 -0
  111. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Sdk/Core/RuntimeLogger.pm +2 -2
  112. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Data/UUID/UUID.xs.dll +0 -0
  113. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/PPI/XS/XS.xs.dll +0 -0
  114. 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
  115. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Want/Want.xs.dll +0 -0
  116. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/autobox/autobox.xs.dll +0 -0
  117. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/perllocal.pod +20 -20
  118. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Receiver/Receiver.pm +5 -6
  119. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Javonet.pm +10 -0
  120. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Sdk/Core/RuntimeLogger.pm +2 -2
  121. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/__pycache__/__init__.cpython-312.pyc +0 -0
  122. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/delegateCache/__pycache__/DelegatesCache.cpython-312.pyc +0 -0
  123. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/delegateCache/__pycache__/__init__.cpython-312.pyc +0 -0
  124. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/__pycache__/__init__.cpython-312.pyc +0 -0
  125. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/internal/__pycache__/PythonStringBuilder.cpython-312.pyc +0 -0
  126. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/internal/__pycache__/__init__.cpython-312.pyc +0 -0
  127. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/GetInstanceFieldHandler.py +1 -1
  128. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/GetTypeHandler.py +7 -4
  129. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/AbstractCommandHandler.cpython-312.pyc +0 -0
  130. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/AbstractHandler.cpython-312.pyc +0 -0
  131. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetItemHandler.cpython-312.pyc +0 -0
  132. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetRankHandler.cpython-312.pyc +0 -0
  133. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetSizeHandler.cpython-312.pyc +0 -0
  134. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayHandler.cpython-312.pyc +0 -0
  135. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArraySetItemHandler.cpython-312.pyc +0 -0
  136. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/CastingHandler.cpython-312.pyc +0 -0
  137. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/CreateClassInstanceHandler.cpython-312.pyc +0 -0
  138. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/DestructReferenceHandler.cpython-312.pyc +0 -0
  139. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/EnableNamespaceHandler.cpython-312.pyc +0 -0
  140. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/EnableTypeHandler.cpython-312.pyc +0 -0
  141. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumItemHandler.cpython-312.pyc +0 -0
  142. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumNameHandler.cpython-312.pyc +0 -0
  143. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumValueHandler.cpython-312.pyc +0 -0
  144. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceFieldHandler.cpython-312.pyc +0 -0
  145. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceMethodAsDelegateHandler.cpython-312.pyc +0 -0
  146. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetStaticFieldHandler.cpython-312.pyc +0 -0
  147. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetStaticMethodAsDelegateHandler.cpython-312.pyc +0 -0
  148. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetTypeHandler.cpython-312.pyc +0 -0
  149. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/Handler.cpython-312.pyc +0 -0
  150. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/HandlerDictionary.cpython-312.pyc +0 -0
  151. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeDelegateHandler.cpython-312.pyc +0 -0
  152. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeInstanceMethodHandler.cpython-312.pyc +0 -0
  153. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeStaticMethodHandler.cpython-312.pyc +0 -0
  154. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/LoadLibraryHandler.cpython-312.pyc +0 -0
  155. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/PassDelegateHandler.cpython-312.pyc +0 -0
  156. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ResolveInstanceHandler.cpython-312.pyc +0 -0
  157. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/SetInstanceFieldHandler.cpython-312.pyc +0 -0
  158. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/SetStaticFieldHandler.cpython-312.pyc +0 -0
  159. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ValueHandler.cpython-312.pyc +0 -0
  160. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/__init__.cpython-312.pyc +0 -0
  161. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/interpreter/__pycache__/Interpreter.cpython-312.pyc +0 -0
  162. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/interpreter/__pycache__/__init__.cpython-312.pyc +0 -0
  163. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/namespaceCache/__pycache__/NamespaceCache.cpython-312.pyc +0 -0
  164. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/namespaceCache/__pycache__/__init__.cpython-312.pyc +0 -0
  165. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/CommandDeserializer.cpython-312.pyc +0 -0
  166. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/CommandSerializer.cpython-312.pyc +0 -0
  167. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/TypeDeserializer.cpython-312.pyc +0 -0
  168. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/TypeSerializer.cpython-312.pyc +0 -0
  169. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/__init__.cpython-312.pyc +0 -0
  170. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/Receiver.py +3 -4
  171. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/__pycache__/Receiver.cpython-312.pyc +0 -0
  172. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/__pycache__/__init__.cpython-312.pyc +0 -0
  173. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/referenceCache/__pycache__/ReferencesCache.cpython-312.pyc +0 -0
  174. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/referenceCache/__pycache__/__init__.cpython-312.pyc +0 -0
  175. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/typeCache/__pycache__/TypeCache.cpython-312.pyc +0 -0
  176. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/typeCache/__pycache__/__init__.cpython-312.pyc +0 -0
  177. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/webSocketClient/WebSocketClient.py +15 -14
  178. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/RuntimeLogger.py +1 -1
  179. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/Command.cpython-312.pyc +0 -0
  180. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/CommandType.cpython-312.pyc +0 -0
  181. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/ConnectionType.cpython-312.pyc +0 -0
  182. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/ExceptionType.cpython-312.pyc +0 -0
  183. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/RuntimeLogger.cpython-312.pyc +0 -0
  184. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/RuntimeName.cpython-312.pyc +0 -0
  185. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/StringEncodingMode.cpython-312.pyc +0 -0
  186. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/Type.cpython-312.pyc +0 -0
  187. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/__init__.cpython-312.pyc +0 -0
  188. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/IConnectionData.cpython-312.pyc +0 -0
  189. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/InMemoryConnectionData.cpython-312.pyc +0 -0
  190. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/__init__.cpython-312.pyc +0 -0
  191. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/ExceptionSerializer.cpython-312.pyc +0 -0
  192. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/__init__.cpython-312.pyc +0 -0
  193. data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/get_instance_field_handler.rb +3 -3
  194. data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/get_static_field_handler.rb +2 -2
  195. data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/get_type_handler.rb +29 -18
  196. data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/load_library_handler.rb +8 -0
  197. data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/set_instance_field_handler.rb +7 -3
  198. data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/set_static_field_handler.rb +2 -2
  199. data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/get_instance_field_handler.rb +3 -3
  200. data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/get_static_field_handler.rb +2 -2
  201. data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/get_type_handler.rb +29 -18
  202. data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/load_library_handler.rb +8 -0
  203. data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/set_instance_field_handler.rb +7 -3
  204. data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/set_static_field_handler.rb +2 -2
  205. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/get_instance_field_handler.rb +3 -3
  206. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/get_static_field_handler.rb +2 -2
  207. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/get_type_handler.rb +29 -18
  208. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/load_library_handler.rb +8 -0
  209. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/set_instance_field_handler.rb +7 -3
  210. data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/set_static_field_handler.rb +2 -2
  211. data/lib/javonet-ruby-sdk/Binaries/version.txt +1 -1
  212. data/lib/javonet-ruby-sdk/core/handler/get_instance_field_handler.rb +3 -3
  213. data/lib/javonet-ruby-sdk/core/handler/get_static_field_handler.rb +2 -2
  214. data/lib/javonet-ruby-sdk/core/handler/get_type_handler.rb +29 -18
  215. data/lib/javonet-ruby-sdk/core/handler/load_library_handler.rb +8 -0
  216. data/lib/javonet-ruby-sdk/core/handler/set_instance_field_handler.rb +7 -3
  217. data/lib/javonet-ruby-sdk/core/handler/set_static_field_handler.rb +2 -2
  218. data/lib/javonet-ruby-sdk/sdk/javonet.rb +11 -1
  219. 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
- return e
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
- private
51
+ private
41
52
 
42
- def _get_type_from_payload(command)
43
- if command.payload.length == 1
44
- type_name = command.payload[0].split("::")
45
- if type_name.length == 1
46
- return Object::const_get(type_name[0])
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(command.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
- def _get_type_from_nested_payload(payload)
56
- loaded_module = Object::const_get(payload[0..-2].join("::"))
57
- loaded_module.const_get(payload[-1])
58
- end
59
- end
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].instance_variable_set(merged_value, command.payload[2])
21
- rescue NameError
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 Exception, message
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 NameError
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 Exception, message
25
+ raise ArgumentError, message
26
26
  end
27
27
  rescue Exception => e
28
28
  return e
@@ -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 "Instance field not defined"
22
+ raise Exception
23
23
  end
24
24
  return response
25
- rescue NameError
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 Exception, message
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 NameError
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 Exception, message
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
- return e
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
- private
51
+ private
41
52
 
42
- def _get_type_from_payload(command)
43
- if command.payload.length == 1
44
- type_name = command.payload[0].split("::")
45
- if type_name.length == 1
46
- return Object::const_get(type_name[0])
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(command.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
- def _get_type_from_nested_payload(payload)
56
- loaded_module = Object::const_get(payload[0..-2].join("::"))
57
- loaded_module.const_get(payload[-1])
58
- end
59
- end
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].instance_variable_set(merged_value, command.payload[2])
21
- rescue NameError
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 Exception, message
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 NameError
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 Exception, message
25
+ raise ArgumentError, message
26
26
  end
27
27
  rescue Exception => e
28
28
  return e
@@ -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 "Instance field not defined"
22
+ raise Exception
23
23
  end
24
24
  return response
25
- rescue NameError
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 Exception, message
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 NameError
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 Exception, message
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
- return e
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
- private
51
+ private
41
52
 
42
- def _get_type_from_payload(command)
43
- if command.payload.length == 1
44
- type_name = command.payload[0].split("::")
45
- if type_name.length == 1
46
- return Object::const_get(type_name[0])
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(command.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
- def _get_type_from_nested_payload(payload)
56
- loaded_module = Object::const_get(payload[0..-2].join("::"))
57
- loaded_module.const_get(payload[-1])
58
- end
59
- end
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].instance_variable_set(merged_value, command.payload[2])
21
- rescue NameError
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 Exception, message
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 NameError
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 Exception, message
25
+ raise ArgumentError, message
26
26
  end
27
27
  rescue Exception => e
28
28
  return e
@@ -1 +1 @@
1
- 2.5.6
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 "Instance field not defined"
22
+ raise Exception
23
23
  end
24
24
  return response
25
- rescue NameError
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 Exception, message
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 NameError
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 Exception, message
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
- return e
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
- private
51
+ private
41
52
 
42
- def _get_type_from_payload(command)
43
- if command.payload.length == 1
44
- type_name = command.payload[0].split("::")
45
- if type_name.length == 1
46
- return Object::const_get(type_name[0])
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(command.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
- def _get_type_from_nested_payload(payload)
56
- loaded_module = Object::const_get(payload[0..-2].join("::"))
57
- loaded_module.const_get(payload[-1])
58
- end
59
- end
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].instance_variable_set(merged_value, command.payload[2])
21
- rescue NameError
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 Exception, message
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 NameError
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 Exception, message
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
- def get_runtime_info(get_loaded_modules)
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.6
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-12 00:00:00.000000000 Z
11
+ date: 2024-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi