javonet-ruby-sdk 2.4.8 → 2.4.9

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/Windows/X64/Javonet.Clr.Utils.dll +0 -0
  4. data/lib/javonet-ruby-sdk/Binaries/Clr/Windows/X64/JavonetClrRuntime.dll +0 -0
  5. data/lib/javonet-ruby-sdk/Binaries/Jvm/Linux/X64/JavonetJvmRuntime.jar +0 -0
  6. data/lib/javonet-ruby-sdk/Binaries/Jvm/MacOs/X64/JavonetJvmRuntime.jar +0 -0
  7. data/lib/javonet-ruby-sdk/Binaries/Jvm/Windows/X64/JavonetJvmRuntime.jar +0 -0
  8. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetActivationService.so +0 -0
  9. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetCppRuntimeNative.so +0 -0
  10. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetGoRuntimeNative.so +0 -0
  11. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetJvmRuntimeNative.so +0 -0
  12. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNetcoreRuntimeNative.so +0 -0
  13. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNodejs1816RuntimeNative.so +0 -0
  14. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNodejsRuntimeNative.so +0 -0
  15. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetPerlRuntimeNative.so +0 -0
  16. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetPythonRuntimeNative.so +0 -0
  17. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetRuby278RuntimeNative.so +0 -0
  18. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetRubyRuntimeNative.so +0 -0
  19. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetTcpClient.so +0 -0
  20. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetTcpTlsClient.so +0 -0
  21. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libUtils.so +0 -0
  22. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/openssl3/libJavonetActivationService.so +0 -0
  23. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/openssl3/libJavonetTcpTlsClient.so +0 -0
  24. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/openssl3/libUtils.so +0 -0
  25. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/version.txt +1 -1
  26. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetActivationService.dylib +0 -0
  27. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetCppRuntimeNative.dylib +0 -0
  28. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetGoRuntimeNative.dylib +0 -0
  29. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetJvmRuntimeNative.dylib +0 -0
  30. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNetcoreRuntimeNative.dylib +0 -0
  31. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNodejs1816RuntimeNative.dylib +0 -0
  32. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNodejsRuntimeNative.dylib +0 -0
  33. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetPerlRuntimeNative.dylib +0 -0
  34. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetPythonRuntimeNative.dylib +0 -0
  35. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetRuby278RuntimeNative.dylib +0 -0
  36. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetRubyRuntimeNative.dylib +0 -0
  37. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetTcpClient.dylib +0 -0
  38. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetTcpTlsClient.dylib +0 -0
  39. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libUtils.dylib +0 -0
  40. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/version.txt +1 -1
  41. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetActivationService.dll +0 -0
  42. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetClrRuntimeNative.dll +0 -0
  43. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetCppRuntimeNative.dll +0 -0
  44. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetGoRuntimeNative.dll +0 -0
  45. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetJvmRuntimeNative.dll +0 -0
  46. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNetcoreRuntimeNative.dll +0 -0
  47. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNodejs1816RuntimeNative.dll +0 -0
  48. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNodejsRuntimeNative.dll +0 -0
  49. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPerlRuntimeNative.dll +0 -0
  50. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPythonRuntimeNative.dll +0 -0
  51. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetRuby278RuntimeNative.dll +0 -0
  52. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetRubyRuntimeNative.dll +0 -0
  53. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetTcpClient.dll +0 -0
  54. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetTcpTlsClient.dll +0 -0
  55. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/Utils.dll +0 -0
  56. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/version.txt +1 -1
  57. data/lib/javonet-ruby-sdk/Binaries/Netcore/Linux/X64/Javonet.Netcore.Core.dll +0 -0
  58. data/lib/javonet-ruby-sdk/Binaries/Netcore/Linux/X64/Javonet.Netcore.Utils.dll +0 -0
  59. data/lib/javonet-ruby-sdk/Binaries/Netcore/MacOs/X64/Javonet.Netcore.Core.dll +0 -0
  60. data/lib/javonet-ruby-sdk/Binaries/Netcore/MacOs/X64/Javonet.Netcore.Utils.dll +0 -0
  61. data/lib/javonet-ruby-sdk/Binaries/Netcore/Windows/X64/Javonet.Netcore.Core.dll +0 -0
  62. data/lib/javonet-ruby-sdk/Binaries/Netcore/Windows/X64/Javonet.Netcore.Utils.dll +0 -0
  63. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/ExtUtils/Helpers/Unix.pm +2 -2
  64. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/ExtUtils/Helpers/VMS.pm +2 -2
  65. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/ExtUtils/Helpers/Windows.pm +2 -2
  66. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/ExtUtils/Helpers.pm +10 -8
  67. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/ExtUtils/InstallPaths.pm +9 -7
  68. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/Module/Build/Tiny.pm +2 -2
  69. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/Nice/Try.pm +146 -23
  70. 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
  71. 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
  72. 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
  73. 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
  74. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Moose/Moose.so +0 -0
  75. 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
  76. 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
  77. 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
  78. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Want/Want.so +0 -0
  79. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/autobox/autobox.so +0 -0
  80. 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
  81. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/autobox.pm +2 -2
  82. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/autobox.pod +27 -26
  83. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/perllocal.pod +88 -154
  84. data/lib/javonet-ruby-sdk/Binaries/Perl/MacOs/X64/deps/lib/perl5/ExtUtils/Helpers/Unix.pm +2 -2
  85. data/lib/javonet-ruby-sdk/Binaries/Perl/MacOs/X64/deps/lib/perl5/ExtUtils/Helpers/VMS.pm +2 -2
  86. data/lib/javonet-ruby-sdk/Binaries/Perl/MacOs/X64/deps/lib/perl5/ExtUtils/Helpers/Windows.pm +2 -2
  87. data/lib/javonet-ruby-sdk/Binaries/Perl/MacOs/X64/deps/lib/perl5/ExtUtils/Helpers.pm +10 -8
  88. data/lib/javonet-ruby-sdk/Binaries/Perl/MacOs/X64/deps/lib/perl5/ExtUtils/InstallPaths.pm +9 -7
  89. data/lib/javonet-ruby-sdk/Binaries/Perl/MacOs/X64/deps/lib/perl5/Module/Build/Tiny.pm +2 -2
  90. data/lib/javonet-ruby-sdk/Binaries/Perl/MacOs/X64/deps/lib/perl5/Nice/Try.pm +146 -23
  91. data/lib/javonet-ruby-sdk/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/auto/Package/Stash/XS/XS.bundle +0 -0
  92. data/lib/javonet-ruby-sdk/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/auto/autobox/autobox.bundle +0 -0
  93. data/lib/javonet-ruby-sdk/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/autobox.pm +2 -2
  94. data/lib/javonet-ruby-sdk/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/autobox.pod +27 -26
  95. data/lib/javonet-ruby-sdk/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/perllocal.pod +82 -148
  96. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Data/UUID/UUID.xs.dll +0 -0
  97. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/PPI/XS/XS.xs.dll +0 -0
  98. 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
  99. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Want/Want.xs.dll +0 -0
  100. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/autobox/autobox.xs.dll +0 -0
  101. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/autobox.pm +2 -2
  102. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/autobox.pod +27 -26
  103. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/perllocal.pod +40 -18
  104. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/Nice/Try.pm +146 -23
  105. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/Test/Fatal.pm +477 -0
  106. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/interpreter/Interpreter.py +11 -9
  107. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/protocol/CommandSerializer.py +3 -16
  108. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/receiver/Receiver.py +3 -1
  109. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/referenceCache/ReferencesCache.py +2 -1
  110. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/transmitter/Transmitter.py +2 -14
  111. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/webSocketClient/WebSocketClient.py +32 -0
  112. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/utils/ConnectionType.py +1 -0
  113. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/utils/connectionData/IConnectionData.py +18 -0
  114. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/utils/connectionData/InMemoryConnectionData.py +23 -0
  115. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/utils/connectionData/TcpConnectionData.py +67 -0
  116. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/utils/connectionData/WsConnectionData.py +30 -0
  117. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/utils/connectionData/__init__.py +0 -0
  118. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/interpreter/Interpreter.py +11 -9
  119. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/protocol/CommandSerializer.py +3 -16
  120. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/receiver/Receiver.py +3 -1
  121. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/referenceCache/ReferencesCache.py +2 -1
  122. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/transmitter/Transmitter.py +2 -14
  123. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/webSocketClient/WebSocketClient.py +32 -0
  124. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/utils/ConnectionType.py +1 -0
  125. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/utils/connectionData/IConnectionData.py +18 -0
  126. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/utils/connectionData/InMemoryConnectionData.py +23 -0
  127. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/utils/connectionData/TcpConnectionData.py +67 -0
  128. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/utils/connectionData/WsConnectionData.py +30 -0
  129. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/utils/connectionData/__init__.py +0 -0
  130. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/__pycache__/__init__.cpython-311.pyc +0 -0
  131. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/__pycache__/__init__.cpython-311.pyc +0 -0
  132. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/internal/__pycache__/PythonStringBuilder.cpython-311.pyc +0 -0
  133. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/internal/__pycache__/__init__.cpython-311.pyc +0 -0
  134. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/AbstractCommandHandler.cpython-311.pyc +0 -0
  135. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/AbstractHandler.cpython-311.pyc +0 -0
  136. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/ArrayGetItemHandler.cpython-311.pyc +0 -0
  137. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/ArrayGetRankHandler.cpython-311.pyc +0 -0
  138. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/ArrayGetSizeHandler.cpython-311.pyc +0 -0
  139. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/ArrayHandler.cpython-311.pyc +0 -0
  140. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/ArraySetItemHandler.cpython-311.pyc +0 -0
  141. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/CastingHandler.cpython-311.pyc +0 -0
  142. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/CreateClassInstanceHandler.cpython-311.pyc +0 -0
  143. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/DestructReferenceHandler.cpython-311.pyc +0 -0
  144. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/EnableNamespaceHandler.cpython-311.pyc +0 -0
  145. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/EnableTypeHandler.cpython-311.pyc +0 -0
  146. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/GetEnumItemHandler.cpython-311.pyc +0 -0
  147. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/GetEnumNameHandler.cpython-311.pyc +0 -0
  148. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/GetEnumValueHandler.cpython-311.pyc +0 -0
  149. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/GetInstanceFieldHandler.cpython-311.pyc +0 -0
  150. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/GetStaticFieldHandler.cpython-311.pyc +0 -0
  151. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/GetTypeHandler.cpython-311.pyc +0 -0
  152. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/Handler.cpython-311.pyc +0 -0
  153. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/HandlerDictionary.cpython-311.pyc +0 -0
  154. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/InvokeInstanceMethodHandler.cpython-311.pyc +0 -0
  155. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/InvokeStaticMethodHandler.cpython-311.pyc +0 -0
  156. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/LoadLibraryHandler.cpython-311.pyc +0 -0
  157. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/ResolveInstanceHandler.cpython-311.pyc +0 -0
  158. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/SetInstanceFieldHandler.cpython-311.pyc +0 -0
  159. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/SetStaticFieldHandler.cpython-311.pyc +0 -0
  160. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/ValueHandler.cpython-311.pyc +0 -0
  161. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/__init__.cpython-311.pyc +0 -0
  162. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/interpreter/Interpreter.py +11 -9
  163. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/interpreter/__pycache__/Interpreter.cpython-311.pyc +0 -0
  164. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/interpreter/__pycache__/__init__.cpython-311.pyc +0 -0
  165. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/namespaceCache/__pycache__/NamespaceCache.cpython-311.pyc +0 -0
  166. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/namespaceCache/__pycache__/__init__.cpython-311.pyc +0 -0
  167. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/protocol/CommandSerializer.py +3 -16
  168. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/protocol/__pycache__/CommandDeserializer.cpython-311.pyc +0 -0
  169. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/protocol/__pycache__/CommandSerializer.cpython-311.pyc +0 -0
  170. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/protocol/__pycache__/TypeDeserializer.cpython-311.pyc +0 -0
  171. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/protocol/__pycache__/TypeSerializer.cpython-311.pyc +0 -0
  172. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/protocol/__pycache__/__init__.cpython-311.pyc +0 -0
  173. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/receiver/Receiver.py +3 -1
  174. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/receiver/__pycache__/Receiver.cpython-311.pyc +0 -0
  175. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/receiver/__pycache__/__init__.cpython-311.pyc +0 -0
  176. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/referenceCache/ReferencesCache.py +2 -1
  177. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/referenceCache/__pycache__/ReferencesCache.cpython-311.pyc +0 -0
  178. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/referenceCache/__pycache__/__init__.cpython-311.pyc +0 -0
  179. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/transmitter/Transmitter.py +2 -14
  180. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/typeCache/__pycache__/TypeCache.cpython-311.pyc +0 -0
  181. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/typeCache/__pycache__/__init__.cpython-311.pyc +0 -0
  182. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/webSocketClient/WebSocketClient.py +32 -0
  183. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/ConnectionType.py +1 -0
  184. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/Command.cpython-311.pyc +0 -0
  185. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/CommandType.cpython-311.pyc +0 -0
  186. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/ConnectionType.cpython-311.pyc +0 -0
  187. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/ExceptionType.cpython-311.pyc +0 -0
  188. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/RuntimeName.cpython-311.pyc +0 -0
  189. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/StringEncodingMode.cpython-311.pyc +0 -0
  190. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/Type.cpython-311.pyc +0 -0
  191. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/__init__.cpython-311.pyc +0 -0
  192. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/connectionData/IConnectionData.py +18 -0
  193. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/connectionData/InMemoryConnectionData.py +23 -0
  194. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/connectionData/TcpConnectionData.py +67 -0
  195. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/connectionData/WsConnectionData.py +30 -0
  196. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/connectionData/__init__.py +0 -0
  197. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/connectionData/__pycache__/IConnectionData.cpython-311.pyc +0 -0
  198. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/connectionData/__pycache__/InMemoryConnectionData.cpython-311.pyc +0 -0
  199. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/connectionData/__pycache__/__init__.cpython-311.pyc +0 -0
  200. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/exception/__pycache__/ExceptionSerializer.cpython-311.pyc +0 -0
  201. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/exception/__pycache__/__init__.cpython-311.pyc +0 -0
  202. data/lib/javonet-ruby-sdk/Binaries/version.txt +1 -1
  203. metadata +24 -18
  204. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libruby.so.3.1.5 +0 -0
  205. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libruby.so.3.3.1 +0 -0
  206. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libruby.3.3.dylib +0 -0
  207. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/x64-vcruntime140-ruby330.dll +0 -0
  208. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/CPAN/Meta/Requirements/Range.pm +0 -776
  209. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/CPAN/Meta/Requirements.pm +0 -834
  210. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/CPAN/Requirements/Dynamic.pm +0 -384
  211. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/ExtUtils/HasCompiler.pm +0 -308
  212. data/lib/javonet-ruby-sdk/Binaries/Perl/MacOs/X64/deps/lib/perl5/CPAN/Meta/Requirements/Range.pm +0 -776
  213. data/lib/javonet-ruby-sdk/Binaries/Perl/MacOs/X64/deps/lib/perl5/CPAN/Meta/Requirements.pm +0 -834
  214. data/lib/javonet-ruby-sdk/Binaries/Perl/MacOs/X64/deps/lib/perl5/CPAN/Requirements/Dynamic.pm +0 -384
  215. data/lib/javonet-ruby-sdk/Binaries/Perl/MacOs/X64/deps/lib/perl5/ExtUtils/HasCompiler.pm +0 -308
  216. data/lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/utils/TcpConnectionData.py +0 -29
  217. data/lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/utils/TcpConnectionData.py +0 -29
  218. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/TcpConnectionData.py +0 -29
  219. data/lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/utils/__pycache__/TcpConnectionData.cpython-311.pyc +0 -0
@@ -1,834 +0,0 @@
1
- use v5.10;
2
- use strict;
3
- use warnings;
4
- package CPAN::Meta::Requirements;
5
- # ABSTRACT: a set of version requirements for a CPAN dist
6
-
7
- our $VERSION = '2.143';
8
-
9
- use CPAN::Meta::Requirements::Range;
10
-
11
- #pod =head1 SYNOPSIS
12
- #pod
13
- #pod use CPAN::Meta::Requirements;
14
- #pod
15
- #pod my $build_requires = CPAN::Meta::Requirements->new;
16
- #pod
17
- #pod $build_requires->add_minimum('Library::Foo' => 1.208);
18
- #pod
19
- #pod $build_requires->add_minimum('Library::Foo' => 2.602);
20
- #pod
21
- #pod $build_requires->add_minimum('Module::Bar' => 'v1.2.3');
22
- #pod
23
- #pod $METAyml->{build_requires} = $build_requires->as_string_hash;
24
- #pod
25
- #pod =head1 DESCRIPTION
26
- #pod
27
- #pod A CPAN::Meta::Requirements object models a set of version constraints like
28
- #pod those specified in the F<META.yml> or F<META.json> files in CPAN distributions,
29
- #pod and as defined by L<CPAN::Meta::Spec>.
30
- #pod It can be built up by adding more and more constraints, and it will reduce them
31
- #pod to the simplest representation.
32
- #pod
33
- #pod Logically impossible constraints will be identified immediately by thrown
34
- #pod exceptions.
35
- #pod
36
- #pod =cut
37
-
38
- use Carp ();
39
-
40
- #pod =method new
41
- #pod
42
- #pod my $req = CPAN::Meta::Requirements->new;
43
- #pod
44
- #pod This returns a new CPAN::Meta::Requirements object. It takes an optional
45
- #pod hash reference argument. Currently, only one key is supported:
46
- #pod
47
- #pod =for :list
48
- #pod * C<bad_version_hook> -- if provided, when a version cannot be parsed into
49
- #pod a version object, this code reference will be called with the invalid
50
- #pod version string as first argument, and the module name as second
51
- #pod argument. It must return a valid version object.
52
- #pod
53
- #pod All other keys are ignored.
54
- #pod
55
- #pod =cut
56
-
57
- my @valid_options = qw( bad_version_hook );
58
-
59
- sub new {
60
- my ($class, $options) = @_;
61
- $options ||= {};
62
- Carp::croak "Argument to $class\->new() must be a hash reference"
63
- unless ref $options eq 'HASH';
64
- my %self = map {; $_ => $options->{$_}} @valid_options;
65
-
66
- return bless \%self => $class;
67
- }
68
-
69
- #pod =method add_minimum
70
- #pod
71
- #pod $req->add_minimum( $module => $version );
72
- #pod
73
- #pod This adds a new minimum version requirement. If the new requirement is
74
- #pod redundant to the existing specification, this has no effect.
75
- #pod
76
- #pod Minimum requirements are inclusive. C<$version> is required, along with any
77
- #pod greater version number.
78
- #pod
79
- #pod This method returns the requirements object.
80
- #pod
81
- #pod =method add_maximum
82
- #pod
83
- #pod $req->add_maximum( $module => $version );
84
- #pod
85
- #pod This adds a new maximum version requirement. If the new requirement is
86
- #pod redundant to the existing specification, this has no effect.
87
- #pod
88
- #pod Maximum requirements are inclusive. No version strictly greater than the given
89
- #pod version is allowed.
90
- #pod
91
- #pod This method returns the requirements object.
92
- #pod
93
- #pod =method add_exclusion
94
- #pod
95
- #pod $req->add_exclusion( $module => $version );
96
- #pod
97
- #pod This adds a new excluded version. For example, you might use these three
98
- #pod method calls:
99
- #pod
100
- #pod $req->add_minimum( $module => '1.00' );
101
- #pod $req->add_maximum( $module => '1.82' );
102
- #pod
103
- #pod $req->add_exclusion( $module => '1.75' );
104
- #pod
105
- #pod Any version between 1.00 and 1.82 inclusive would be acceptable, except for
106
- #pod 1.75.
107
- #pod
108
- #pod This method returns the requirements object.
109
- #pod
110
- #pod =method exact_version
111
- #pod
112
- #pod $req->exact_version( $module => $version );
113
- #pod
114
- #pod This sets the version required for the given module to I<exactly> the given
115
- #pod version. No other version would be considered acceptable.
116
- #pod
117
- #pod This method returns the requirements object.
118
- #pod
119
- #pod =cut
120
-
121
- BEGIN {
122
- for my $type (qw(maximum exclusion exact_version)) {
123
- my $method = "with_$type";
124
- my $to_add = $type eq 'exact_version' ? $type : "add_$type";
125
-
126
- my $code = sub {
127
- my ($self, $name, $version) = @_;
128
-
129
- $self->__modify_entry_for($name, $method, $version);
130
-
131
- return $self;
132
- };
133
-
134
- no strict 'refs';
135
- *$to_add = $code;
136
- }
137
- }
138
-
139
- # add_minimum is optimized compared to generated subs above because
140
- # it is called frequently and with "0" or equivalent input
141
- sub add_minimum {
142
- my ($self, $name, $version) = @_;
143
-
144
- # stringify $version so that version->new("0.00")->stringify ne "0"
145
- # which preserves the user's choice of "0.00" as the requirement
146
- if (not defined $version or "$version" eq '0') {
147
- return $self if $self->__entry_for($name);
148
- Carp::croak("can't add new requirements to finalized requirements")
149
- if $self->is_finalized;
150
-
151
- $self->{requirements}{ $name } =
152
- CPAN::Meta::Requirements::Range->with_minimum('0', $name);
153
- }
154
- else {
155
- $self->__modify_entry_for($name, 'with_minimum', $version);
156
- }
157
- return $self;
158
- }
159
-
160
- #pod =method version_range_for_module
161
- #pod
162
- #pod $req->version_range_for_module( $another_req_object );
163
- #pod
164
- #pod =cut
165
-
166
- sub version_range_for_module {
167
- my ($self, $module) = @_;
168
- return $self->{requirements}{$module};
169
- }
170
-
171
- #pod =method add_requirements
172
- #pod
173
- #pod $req->add_requirements( $another_req_object );
174
- #pod
175
- #pod This method adds all the requirements in the given CPAN::Meta::Requirements
176
- #pod object to the requirements object on which it was called. If there are any
177
- #pod conflicts, an exception is thrown.
178
- #pod
179
- #pod This method returns the requirements object.
180
- #pod
181
- #pod =cut
182
-
183
- sub add_requirements {
184
- my ($self, $req) = @_;
185
-
186
- for my $module ($req->required_modules) {
187
- my $new_range = $req->version_range_for_module($module);
188
- $self->__modify_entry_for($module, 'with_range', $new_range);
189
- }
190
-
191
- return $self;
192
- }
193
-
194
- #pod =method accepts_module
195
- #pod
196
- #pod my $bool = $req->accepts_module($module => $version);
197
- #pod
198
- #pod Given an module and version, this method returns true if the version
199
- #pod specification for the module accepts the provided version. In other words,
200
- #pod given:
201
- #pod
202
- #pod Module => '>= 1.00, < 2.00'
203
- #pod
204
- #pod We will accept 1.00 and 1.75 but not 0.50 or 2.00.
205
- #pod
206
- #pod For modules that do not appear in the requirements, this method will return
207
- #pod true.
208
- #pod
209
- #pod =cut
210
-
211
- sub accepts_module {
212
- my ($self, $module, $version) = @_;
213
-
214
- return 1 unless my $range = $self->__entry_for($module);
215
- return $range->accepts($version);
216
- }
217
-
218
- #pod =method clear_requirement
219
- #pod
220
- #pod $req->clear_requirement( $module );
221
- #pod
222
- #pod This removes the requirement for a given module from the object.
223
- #pod
224
- #pod This method returns the requirements object.
225
- #pod
226
- #pod =cut
227
-
228
- sub clear_requirement {
229
- my ($self, $module) = @_;
230
-
231
- return $self unless $self->__entry_for($module);
232
-
233
- Carp::croak("can't clear requirements on finalized requirements")
234
- if $self->is_finalized;
235
-
236
- delete $self->{requirements}{ $module };
237
-
238
- return $self;
239
- }
240
-
241
- #pod =method requirements_for_module
242
- #pod
243
- #pod $req->requirements_for_module( $module );
244
- #pod
245
- #pod This returns a string containing the version requirements for a given module in
246
- #pod the format described in L<CPAN::Meta::Spec> or undef if the given module has no
247
- #pod requirements. This should only be used for informational purposes such as error
248
- #pod messages and should not be interpreted or used for comparison (see
249
- #pod L</accepts_module> instead).
250
- #pod
251
- #pod =cut
252
-
253
- sub requirements_for_module {
254
- my ($self, $module) = @_;
255
- my $entry = $self->__entry_for($module);
256
- return unless $entry;
257
- return $entry->as_string;
258
- }
259
-
260
- #pod =method structured_requirements_for_module
261
- #pod
262
- #pod $req->structured_requirements_for_module( $module );
263
- #pod
264
- #pod This returns a data structure containing the version requirements for a given
265
- #pod module or undef if the given module has no requirements. This should
266
- #pod not be used for version checks (see L</accepts_module> instead).
267
- #pod
268
- #pod Added in version 2.134.
269
- #pod
270
- #pod =cut
271
-
272
- sub structured_requirements_for_module {
273
- my ($self, $module) = @_;
274
- my $entry = $self->__entry_for($module);
275
- return unless $entry;
276
- return $entry->as_struct;
277
- }
278
-
279
- #pod =method required_modules
280
- #pod
281
- #pod This method returns a list of all the modules for which requirements have been
282
- #pod specified.
283
- #pod
284
- #pod =cut
285
-
286
- sub required_modules { keys %{ $_[0]{requirements} } }
287
-
288
- #pod =method clone
289
- #pod
290
- #pod $req->clone;
291
- #pod
292
- #pod This method returns a clone of the invocant. The clone and the original object
293
- #pod can then be changed independent of one another.
294
- #pod
295
- #pod =cut
296
-
297
- sub clone {
298
- my ($self) = @_;
299
- my $new = (ref $self)->new;
300
-
301
- return $new->add_requirements($self);
302
- }
303
-
304
- sub __entry_for { $_[0]{requirements}{ $_[1] } }
305
-
306
- sub __modify_entry_for {
307
- my ($self, $name, $method, $version) = @_;
308
-
309
- my $fin = $self->is_finalized;
310
- my $old = $self->__entry_for($name);
311
-
312
- Carp::croak("can't add new requirements to finalized requirements")
313
- if $fin and not $old;
314
-
315
- my $new = ($old || 'CPAN::Meta::Requirements::Range')
316
- ->$method($version, $name, $self->{bad_version_hook});
317
-
318
- Carp::croak("can't modify finalized requirements")
319
- if $fin and $old->as_string ne $new->as_string;
320
-
321
- $self->{requirements}{ $name } = $new;
322
- }
323
-
324
- #pod =method is_simple
325
- #pod
326
- #pod This method returns true if and only if all requirements are inclusive minimums
327
- #pod -- that is, if their string expression is just the version number.
328
- #pod
329
- #pod =cut
330
-
331
- sub is_simple {
332
- my ($self) = @_;
333
- for my $module ($self->required_modules) {
334
- # XXX: This is a complete hack, but also entirely correct.
335
- return if not $self->__entry_for($module)->is_simple;
336
- }
337
-
338
- return 1;
339
- }
340
-
341
- #pod =method is_finalized
342
- #pod
343
- #pod This method returns true if the requirements have been finalized by having the
344
- #pod C<finalize> method called on them.
345
- #pod
346
- #pod =cut
347
-
348
- sub is_finalized { $_[0]{finalized} }
349
-
350
- #pod =method finalize
351
- #pod
352
- #pod This method marks the requirements finalized. Subsequent attempts to change
353
- #pod the requirements will be fatal, I<if> they would result in a change. If they
354
- #pod would not alter the requirements, they have no effect.
355
- #pod
356
- #pod If a finalized set of requirements is cloned, the cloned requirements are not
357
- #pod also finalized.
358
- #pod
359
- #pod =cut
360
-
361
- sub finalize { $_[0]{finalized} = 1 }
362
-
363
- #pod =method as_string_hash
364
- #pod
365
- #pod This returns a reference to a hash describing the requirements using the
366
- #pod strings in the L<CPAN::Meta::Spec> specification.
367
- #pod
368
- #pod For example after the following program:
369
- #pod
370
- #pod my $req = CPAN::Meta::Requirements->new;
371
- #pod
372
- #pod $req->add_minimum('CPAN::Meta::Requirements' => 0.102);
373
- #pod
374
- #pod $req->add_minimum('Library::Foo' => 1.208);
375
- #pod
376
- #pod $req->add_maximum('Library::Foo' => 2.602);
377
- #pod
378
- #pod $req->add_minimum('Module::Bar' => 'v1.2.3');
379
- #pod
380
- #pod $req->add_exclusion('Module::Bar' => 'v1.2.8');
381
- #pod
382
- #pod $req->exact_version('Xyzzy' => '6.01');
383
- #pod
384
- #pod my $hashref = $req->as_string_hash;
385
- #pod
386
- #pod C<$hashref> would contain:
387
- #pod
388
- #pod {
389
- #pod 'CPAN::Meta::Requirements' => '0.102',
390
- #pod 'Library::Foo' => '>= 1.208, <= 2.206',
391
- #pod 'Module::Bar' => '>= v1.2.3, != v1.2.8',
392
- #pod 'Xyzzy' => '== 6.01',
393
- #pod }
394
- #pod
395
- #pod =cut
396
-
397
- sub as_string_hash {
398
- my ($self) = @_;
399
-
400
- my %hash = map {; $_ => $self->{requirements}{$_}->as_string }
401
- $self->required_modules;
402
-
403
- return \%hash;
404
- }
405
-
406
- #pod =method add_string_requirement
407
- #pod
408
- #pod $req->add_string_requirement('Library::Foo' => '>= 1.208, <= 2.206');
409
- #pod $req->add_string_requirement('Library::Foo' => v1.208);
410
- #pod
411
- #pod This method parses the passed in string and adds the appropriate requirement
412
- #pod for the given module. A version can be a Perl "v-string". It understands
413
- #pod version ranges as described in the L<CPAN::Meta::Spec/Version Ranges>. For
414
- #pod example:
415
- #pod
416
- #pod =over 4
417
- #pod
418
- #pod =item 1.3
419
- #pod
420
- #pod =item >= 1.3
421
- #pod
422
- #pod =item <= 1.3
423
- #pod
424
- #pod =item == 1.3
425
- #pod
426
- #pod =item != 1.3
427
- #pod
428
- #pod =item > 1.3
429
- #pod
430
- #pod =item < 1.3
431
- #pod
432
- #pod =item >= 1.3, != 1.5, <= 2.0
433
- #pod
434
- #pod A version number without an operator is equivalent to specifying a minimum
435
- #pod (C<E<gt>=>). Extra whitespace is allowed.
436
- #pod
437
- #pod =back
438
- #pod
439
- #pod =cut
440
-
441
- sub add_string_requirement {
442
- my ($self, $module, $req) = @_;
443
-
444
- $self->__modify_entry_for($module, 'with_string_requirement', $req);
445
- }
446
-
447
- #pod =method from_string_hash
448
- #pod
449
- #pod my $req = CPAN::Meta::Requirements->from_string_hash( \%hash );
450
- #pod my $req = CPAN::Meta::Requirements->from_string_hash( \%hash, \%opts );
451
- #pod
452
- #pod This is an alternate constructor for a CPAN::Meta::Requirements
453
- #pod object. It takes a hash of module names and version requirement
454
- #pod strings and returns a new CPAN::Meta::Requirements object. As with
455
- #pod add_string_requirement, a version can be a Perl "v-string". Optionally,
456
- #pod you can supply a hash-reference of options, exactly as with the L</new>
457
- #pod method.
458
- #pod
459
- #pod =cut
460
-
461
- sub from_string_hash {
462
- my ($class, $hash, $options) = @_;
463
-
464
- my $self = $class->new($options);
465
-
466
- for my $module (keys %$hash) {
467
- my $req = $hash->{$module};
468
- $self->add_string_requirement($module, $req);
469
- }
470
-
471
- return $self;
472
- }
473
-
474
- 1;
475
- # vim: ts=2 sts=2 sw=2 et:
476
-
477
- __END__
478
-
479
- =pod
480
-
481
- =encoding UTF-8
482
-
483
- =head1 NAME
484
-
485
- CPAN::Meta::Requirements - a set of version requirements for a CPAN dist
486
-
487
- =head1 VERSION
488
-
489
- version 2.143
490
-
491
- =head1 SYNOPSIS
492
-
493
- use CPAN::Meta::Requirements;
494
-
495
- my $build_requires = CPAN::Meta::Requirements->new;
496
-
497
- $build_requires->add_minimum('Library::Foo' => 1.208);
498
-
499
- $build_requires->add_minimum('Library::Foo' => 2.602);
500
-
501
- $build_requires->add_minimum('Module::Bar' => 'v1.2.3');
502
-
503
- $METAyml->{build_requires} = $build_requires->as_string_hash;
504
-
505
- =head1 DESCRIPTION
506
-
507
- A CPAN::Meta::Requirements object models a set of version constraints like
508
- those specified in the F<META.yml> or F<META.json> files in CPAN distributions,
509
- and as defined by L<CPAN::Meta::Spec>.
510
- It can be built up by adding more and more constraints, and it will reduce them
511
- to the simplest representation.
512
-
513
- Logically impossible constraints will be identified immediately by thrown
514
- exceptions.
515
-
516
- =head1 METHODS
517
-
518
- =head2 new
519
-
520
- my $req = CPAN::Meta::Requirements->new;
521
-
522
- This returns a new CPAN::Meta::Requirements object. It takes an optional
523
- hash reference argument. Currently, only one key is supported:
524
-
525
- =over 4
526
-
527
- =item *
528
-
529
- C<bad_version_hook> -- if provided, when a version cannot be parsed into a version object, this code reference will be called with the invalid version string as first argument, and the module name as second argument. It must return a valid version object.
530
-
531
- =back
532
-
533
- All other keys are ignored.
534
-
535
- =head2 add_minimum
536
-
537
- $req->add_minimum( $module => $version );
538
-
539
- This adds a new minimum version requirement. If the new requirement is
540
- redundant to the existing specification, this has no effect.
541
-
542
- Minimum requirements are inclusive. C<$version> is required, along with any
543
- greater version number.
544
-
545
- This method returns the requirements object.
546
-
547
- =head2 add_maximum
548
-
549
- $req->add_maximum( $module => $version );
550
-
551
- This adds a new maximum version requirement. If the new requirement is
552
- redundant to the existing specification, this has no effect.
553
-
554
- Maximum requirements are inclusive. No version strictly greater than the given
555
- version is allowed.
556
-
557
- This method returns the requirements object.
558
-
559
- =head2 add_exclusion
560
-
561
- $req->add_exclusion( $module => $version );
562
-
563
- This adds a new excluded version. For example, you might use these three
564
- method calls:
565
-
566
- $req->add_minimum( $module => '1.00' );
567
- $req->add_maximum( $module => '1.82' );
568
-
569
- $req->add_exclusion( $module => '1.75' );
570
-
571
- Any version between 1.00 and 1.82 inclusive would be acceptable, except for
572
- 1.75.
573
-
574
- This method returns the requirements object.
575
-
576
- =head2 exact_version
577
-
578
- $req->exact_version( $module => $version );
579
-
580
- This sets the version required for the given module to I<exactly> the given
581
- version. No other version would be considered acceptable.
582
-
583
- This method returns the requirements object.
584
-
585
- =head2 version_range_for_module
586
-
587
- $req->version_range_for_module( $another_req_object );
588
-
589
- =head2 add_requirements
590
-
591
- $req->add_requirements( $another_req_object );
592
-
593
- This method adds all the requirements in the given CPAN::Meta::Requirements
594
- object to the requirements object on which it was called. If there are any
595
- conflicts, an exception is thrown.
596
-
597
- This method returns the requirements object.
598
-
599
- =head2 accepts_module
600
-
601
- my $bool = $req->accepts_module($module => $version);
602
-
603
- Given an module and version, this method returns true if the version
604
- specification for the module accepts the provided version. In other words,
605
- given:
606
-
607
- Module => '>= 1.00, < 2.00'
608
-
609
- We will accept 1.00 and 1.75 but not 0.50 or 2.00.
610
-
611
- For modules that do not appear in the requirements, this method will return
612
- true.
613
-
614
- =head2 clear_requirement
615
-
616
- $req->clear_requirement( $module );
617
-
618
- This removes the requirement for a given module from the object.
619
-
620
- This method returns the requirements object.
621
-
622
- =head2 requirements_for_module
623
-
624
- $req->requirements_for_module( $module );
625
-
626
- This returns a string containing the version requirements for a given module in
627
- the format described in L<CPAN::Meta::Spec> or undef if the given module has no
628
- requirements. This should only be used for informational purposes such as error
629
- messages and should not be interpreted or used for comparison (see
630
- L</accepts_module> instead).
631
-
632
- =head2 structured_requirements_for_module
633
-
634
- $req->structured_requirements_for_module( $module );
635
-
636
- This returns a data structure containing the version requirements for a given
637
- module or undef if the given module has no requirements. This should
638
- not be used for version checks (see L</accepts_module> instead).
639
-
640
- Added in version 2.134.
641
-
642
- =head2 required_modules
643
-
644
- This method returns a list of all the modules for which requirements have been
645
- specified.
646
-
647
- =head2 clone
648
-
649
- $req->clone;
650
-
651
- This method returns a clone of the invocant. The clone and the original object
652
- can then be changed independent of one another.
653
-
654
- =head2 is_simple
655
-
656
- This method returns true if and only if all requirements are inclusive minimums
657
- -- that is, if their string expression is just the version number.
658
-
659
- =head2 is_finalized
660
-
661
- This method returns true if the requirements have been finalized by having the
662
- C<finalize> method called on them.
663
-
664
- =head2 finalize
665
-
666
- This method marks the requirements finalized. Subsequent attempts to change
667
- the requirements will be fatal, I<if> they would result in a change. If they
668
- would not alter the requirements, they have no effect.
669
-
670
- If a finalized set of requirements is cloned, the cloned requirements are not
671
- also finalized.
672
-
673
- =head2 as_string_hash
674
-
675
- This returns a reference to a hash describing the requirements using the
676
- strings in the L<CPAN::Meta::Spec> specification.
677
-
678
- For example after the following program:
679
-
680
- my $req = CPAN::Meta::Requirements->new;
681
-
682
- $req->add_minimum('CPAN::Meta::Requirements' => 0.102);
683
-
684
- $req->add_minimum('Library::Foo' => 1.208);
685
-
686
- $req->add_maximum('Library::Foo' => 2.602);
687
-
688
- $req->add_minimum('Module::Bar' => 'v1.2.3');
689
-
690
- $req->add_exclusion('Module::Bar' => 'v1.2.8');
691
-
692
- $req->exact_version('Xyzzy' => '6.01');
693
-
694
- my $hashref = $req->as_string_hash;
695
-
696
- C<$hashref> would contain:
697
-
698
- {
699
- 'CPAN::Meta::Requirements' => '0.102',
700
- 'Library::Foo' => '>= 1.208, <= 2.206',
701
- 'Module::Bar' => '>= v1.2.3, != v1.2.8',
702
- 'Xyzzy' => '== 6.01',
703
- }
704
-
705
- =head2 add_string_requirement
706
-
707
- $req->add_string_requirement('Library::Foo' => '>= 1.208, <= 2.206');
708
- $req->add_string_requirement('Library::Foo' => v1.208);
709
-
710
- This method parses the passed in string and adds the appropriate requirement
711
- for the given module. A version can be a Perl "v-string". It understands
712
- version ranges as described in the L<CPAN::Meta::Spec/Version Ranges>. For
713
- example:
714
-
715
- =over 4
716
-
717
- =item 1.3
718
-
719
- =item >= 1.3
720
-
721
- =item <= 1.3
722
-
723
- =item == 1.3
724
-
725
- =item != 1.3
726
-
727
- =item > 1.3
728
-
729
- =item < 1.3
730
-
731
- =item >= 1.3, != 1.5, <= 2.0
732
-
733
- A version number without an operator is equivalent to specifying a minimum
734
- (C<E<gt>=>). Extra whitespace is allowed.
735
-
736
- =back
737
-
738
- =head2 from_string_hash
739
-
740
- my $req = CPAN::Meta::Requirements->from_string_hash( \%hash );
741
- my $req = CPAN::Meta::Requirements->from_string_hash( \%hash, \%opts );
742
-
743
- This is an alternate constructor for a CPAN::Meta::Requirements
744
- object. It takes a hash of module names and version requirement
745
- strings and returns a new CPAN::Meta::Requirements object. As with
746
- add_string_requirement, a version can be a Perl "v-string". Optionally,
747
- you can supply a hash-reference of options, exactly as with the L</new>
748
- method.
749
-
750
- =for :stopwords cpan testmatrix url bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan
751
-
752
- =head1 SUPPORT
753
-
754
- =head2 Bugs / Feature Requests
755
-
756
- Please report any bugs or feature requests through the issue tracker
757
- at L<https://github.com/Perl-Toolchain-Gang/CPAN-Meta-Requirements/issues>.
758
- You will be notified automatically of any progress on your issue.
759
-
760
- =head2 Source Code
761
-
762
- This is open source software. The code repository is available for
763
- public review and contribution under the terms of the license.
764
-
765
- L<https://github.com/Perl-Toolchain-Gang/CPAN-Meta-Requirements>
766
-
767
- git clone https://github.com/Perl-Toolchain-Gang/CPAN-Meta-Requirements.git
768
-
769
- =head1 AUTHORS
770
-
771
- =over 4
772
-
773
- =item *
774
-
775
- David Golden <dagolden@cpan.org>
776
-
777
- =item *
778
-
779
- Ricardo Signes <rjbs@cpan.org>
780
-
781
- =back
782
-
783
- =head1 CONTRIBUTORS
784
-
785
- =for stopwords Ed J Graham Knop Karen Etheridge Leon Timmermans Paul Howarth Ricardo Signes robario Tatsuhiko Miyagawa
786
-
787
- =over 4
788
-
789
- =item *
790
-
791
- Ed J <mohawk2@users.noreply.github.com>
792
-
793
- =item *
794
-
795
- Graham Knop <haarg@haarg.org>
796
-
797
- =item *
798
-
799
- Karen Etheridge <ether@cpan.org>
800
-
801
- =item *
802
-
803
- Leon Timmermans <fawaka@gmail.com>
804
-
805
- =item *
806
-
807
- Paul Howarth <paul@city-fan.org>
808
-
809
- =item *
810
-
811
- Ricardo Signes <rjbs@semiotic.systems>
812
-
813
- =item *
814
-
815
- robario <webmaster@robario.com>
816
-
817
- =item *
818
-
819
- Tatsuhiko Miyagawa <miyagawa@bulknews.net>
820
-
821
- =item *
822
-
823
- Tatsuhiko Miyagawa <miyagawa@gmail.com>
824
-
825
- =back
826
-
827
- =head1 COPYRIGHT AND LICENSE
828
-
829
- This software is copyright (c) 2010 by David Golden and Ricardo Signes.
830
-
831
- This is free software; you can redistribute it and/or modify it under
832
- the same terms as the Perl 5 programming language system itself.
833
-
834
- =cut