cybrid_api_organization_ruby 0.62.69 → 0.63.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/README.md +15 -16
  4. data/cybrid_api_organization_ruby.gemspec +2 -2
  5. data/docs/OrganizationsOrganizationApi.md +1 -1
  6. data/lib/cybrid_api_organization_ruby/api/organizations_organization_api.rb +2 -2
  7. data/lib/cybrid_api_organization_ruby/api_client.rb +2 -2
  8. data/lib/cybrid_api_organization_ruby/api_error.rb +2 -2
  9. data/lib/cybrid_api_organization_ruby/configuration.rb +5 -5
  10. data/lib/cybrid_api_organization_ruby/models/error_response_organization_model.rb +2 -2
  11. data/lib/cybrid_api_organization_ruby/models/organization_organization_model.rb +2 -2
  12. data/lib/cybrid_api_organization_ruby/models/patch_organization_organization_model.rb +2 -2
  13. data/lib/cybrid_api_organization_ruby/version.rb +3 -3
  14. data/lib/cybrid_api_organization_ruby.rb +2 -2
  15. data/spec/api/organizations_organization_api_spec.rb +2 -2
  16. data/spec/api_client_spec.rb +2 -2
  17. data/spec/configuration_spec.rb +5 -5
  18. data/spec/models/error_response_organization_model_spec.rb +2 -2
  19. data/spec/models/organization_organization_model_spec.rb +2 -2
  20. data/spec/models/patch_organization_organization_model_spec.rb +2 -2
  21. data/spec/spec_helper.rb +2 -2
  22. data/vendor/bundle/ruby/3.2.0/cache/parser-3.2.1.1.gem +0 -0
  23. data/vendor/bundle/ruby/3.2.0/cache/ruby-progressbar-1.13.0.gem +0 -0
  24. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +5 -5
  25. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.15.5/gem_make.out +5 -5
  26. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.4/gem_make.out +5 -5
  27. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.1.0/gem_make.out +5 -5
  28. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.5/gem_make.out +5 -5
  29. data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ast/node.rb +2 -2
  30. data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/builders/default.rb +7 -2
  31. data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/macruby.rb +1 -1
  32. data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby18.rb +1 -1
  33. data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby19.rb +1 -1
  34. data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby20.rb +1 -1
  35. data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby21.rb +1 -1
  36. data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby22.rb +1 -1
  37. data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby23.rb +1 -1
  38. data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby24.rb +1 -1
  39. data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby25.rb +1 -1
  40. data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby26.rb +1 -1
  41. data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby27.rb +1 -1
  42. data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby30.rb +1 -1
  43. data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby31.rb +1 -1
  44. data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby32.rb +1 -1
  45. data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby33.rb +1 -1
  46. data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/rubymotion.rb +1 -1
  47. data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/version.rb +1 -1
  48. data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/parser.gemspec +1 -1
  49. data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.12.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/base.rb +41 -2
  50. data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.12.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/components/time.rb +7 -5
  51. data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.12.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/progress.rb +9 -31
  52. data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/projector.rb +14 -0
  53. data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/projectors/smoothed_average.rb +71 -0
  54. data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/refinements/progress_enumerator.rb +28 -0
  55. data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/refinements.rb +1 -0
  56. data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.13.0/lib/ruby-progressbar/version.rb +3 -0
  57. data/vendor/bundle/ruby/3.2.0/specifications/{parser-3.2.1.0.gemspec → parser-3.2.1.1.gemspec} +5 -5
  58. data/vendor/bundle/ruby/3.2.0/specifications/{ruby-progressbar-1.12.0.gemspec → ruby-progressbar-1.13.0.gemspec} +4 -4
  59. metadata +113 -112
  60. data/vendor/bundle/ruby/3.2.0/cache/parser-3.2.1.0.gem +0 -0
  61. data/vendor/bundle/ruby/3.2.0/cache/ruby-progressbar-1.12.0.gem +0 -0
  62. data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/calculators/smoothed_average.rb +0 -9
  63. data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/refinements/enumerator.rb +0 -23
  64. data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/refinements.rb +0 -1
  65. data/vendor/bundle/ruby/3.2.0/gems/ruby-progressbar-1.12.0/lib/ruby-progressbar/version.rb +0 -3
  66. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/LICENSE.txt +0 -0
  67. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/bin/ruby-parse +0 -0
  68. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/bin/ruby-rewrite +0 -0
  69. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/gauntlet_parser.rb +0 -0
  70. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/all.rb +0 -0
  71. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ast/processor.rb +0 -0
  72. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/base.rb +0 -0
  73. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/clobbering_error.rb +0 -0
  74. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/color.rb +0 -0
  75. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/context.rb +0 -0
  76. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/current.rb +0 -0
  77. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/current_arg_stack.rb +0 -0
  78. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/deprecation.rb +0 -0
  79. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/diagnostic/engine.rb +0 -0
  80. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/diagnostic.rb +0 -0
  81. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/lexer/dedenter.rb +0 -0
  82. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/lexer/explanation.rb +0 -0
  83. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/lexer/literal.rb +0 -0
  84. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/lexer/stack_state.rb +0 -0
  85. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/lexer-F0.rb +0 -0
  86. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/lexer-F1.rb +0 -0
  87. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/lexer-strings.rb +0 -0
  88. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/max_numparam_stack.rb +0 -0
  89. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/messages.rb +0 -0
  90. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/meta.rb +0 -0
  91. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/rewriter.rb +0 -0
  92. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/ruby28.rb +0 -0
  93. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/runner/ruby_parse.rb +0 -0
  94. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/runner/ruby_rewrite.rb +0 -0
  95. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/runner.rb +0 -0
  96. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/buffer.rb +0 -0
  97. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/comment/associator.rb +0 -0
  98. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/comment.rb +0 -0
  99. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/collection.rb +0 -0
  100. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/condition.rb +0 -0
  101. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/constant.rb +0 -0
  102. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/definition.rb +0 -0
  103. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/for.rb +0 -0
  104. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/heredoc.rb +0 -0
  105. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/index.rb +0 -0
  106. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/keyword.rb +0 -0
  107. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/method_definition.rb +0 -0
  108. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/objc_kwarg.rb +0 -0
  109. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/operator.rb +0 -0
  110. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/rescue_body.rb +0 -0
  111. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/send.rb +0 -0
  112. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/ternary.rb +0 -0
  113. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map/variable.rb +0 -0
  114. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/map.rb +0 -0
  115. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/range.rb +0 -0
  116. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/rewriter/action.rb +0 -0
  117. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/rewriter.rb +0 -0
  118. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/tree_rewriter/action.rb +0 -0
  119. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/source/tree_rewriter.rb +0 -0
  120. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/static_environment.rb +0 -0
  121. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/syntax_error.rb +0 -0
  122. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/tree_rewriter.rb +0 -0
  123. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser/variables_stack.rb +0 -0
  124. /data/vendor/bundle/ruby/3.2.0/gems/{parser-3.2.1.0 → parser-3.2.1.1}/lib/parser.rb +0 -0
  125. /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.12.0 → ruby-progressbar-1.13.0}/LICENSE.txt +0 -0
  126. /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.12.0 → ruby-progressbar-1.13.0}/README.md +0 -0
  127. /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.12.0 → ruby-progressbar-1.13.0}/Rakefile +0 -0
  128. /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.12.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/calculators/length.rb +0 -0
  129. /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.12.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/components/bar.rb +0 -0
  130. /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.12.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/components/percentage.rb +0 -0
  131. /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.12.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/components/rate.rb +0 -0
  132. /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.12.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/components/title.rb +0 -0
  133. /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.12.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/errors/invalid_progress_error.rb +0 -0
  134. /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.12.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/format/formatter.rb +0 -0
  135. /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.12.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/format/molecule.rb +0 -0
  136. /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.12.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/format/string.rb +0 -0
  137. /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.12.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/output.rb +0 -0
  138. /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.12.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/outputs/non_tty.rb +0 -0
  139. /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.12.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/outputs/null.rb +0 -0
  140. /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.12.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/outputs/tty.rb +0 -0
  141. /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.12.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/throttle.rb +0 -0
  142. /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.12.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/time.rb +0 -0
  143. /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.12.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar/timer.rb +0 -0
  144. /data/vendor/bundle/ruby/3.2.0/gems/{ruby-progressbar-1.12.0 → ruby-progressbar-1.13.0}/lib/ruby-progressbar.rb +0 -0
data/spec/spec_helper.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Cybrid Organization API
3
3
 
4
- ## Cybrid API documentation Welcome to Cybrid, an all-in-one crypto platform that enables you to easily **build** and **launch** white-label crypto products or services. In these documents, you'll find details on how our REST API operates and generally how our platform functions. If you're looking for our UI SDK Widgets for Web or Mobile (iOS/Android), generated API clients, or demo applications, head over to our [Github repo](https://github.com/Cybrid-app). 💡 We recommend bookmarking the [Cybrid LinkTree](https://linktr.ee/cybridtechnologies) which contains many helpful links to platform resources. ## Getting Started This is Cybrid's public interactive API documentation, which allows you to fully test our APIs. If you'd like to use a different tool to exercise our APIs, you can download the [Open API 3.0 yaml](https://bank.demo.cybrid.app/api/schema/v1/swagger.yaml) for import. If you're new to our APIs and the Cybrid Platform, follow the below guides to get set up and familiar with the platform: 1. [Getting Started in the Cybrid Sandbox](https://www.cybrid.xyz/guides/getting-started) 2. [Getting Ready for Trading](https://www.cybrid.xyz/guides/getting-ready-for-trading) 3. [Running the Web Demo App](https://www.cybrid.xyz/guides/running-the-cybrid-web-demo-crypto-app) (or, alternatively, [Testing with Hosted Web Demo App](https://www.cybrid.xyz/guides/testing-with-the-web-demo-crypo-app)) In [Getting Started in the Cybrid Sandbox](https://www.cybrid.xyz/guides/getting-started), we walk you through how to use the [Cybrid Sandbox](https://id.demo.cybrid.app/) to create a test bank, generate API keys, and set banks fees. In [Getting Ready for Trading](https://www.cybrid.xyz/guides/getting-ready-for-trading), we walk through creating customers, customer identities, accounts, as well as executing quotes and trades. If you've already run through the first two guides, you can follow the [Running the Web Demo App](https://www.cybrid.xyz/guides/running-the-cybrid-web-demo-crypto-app) guide to test our web SDK with your sandbox `bank` and `customer`. ## Working with the Cybrid Platform There are three primary ways you can interact with the Cybrid platform: 1. Directly via our RESTful API (this documentation) 2. Using our API clients available in a variety of languages ([Angular](https://github.com/Cybrid-app/cybrid-api-bank-angular), [Java](https://github.com/Cybrid-app/cybrid-api-bank-java), [Kotlin](https://github.com/Cybrid-app/cybrid-api-bank-kotlin), [Python](https://github.com/Cybrid-app/cybrid-api-bank-python), [Ruby](https://github.com/Cybrid-app/cybrid-api-bank-ruby), [Swift](https://github.com/Cybrid-app/cybrid-api-bank-swift) or [Typescript](https://github.com/Cybrid-app/cybrid-api-bank-typescript)) 3. Integrating a platform specific SDK ([Web](https://github.com/Cybrid-app/cybrid-sdk-web), [Android](https://github.com/Cybrid-app/cybrid-sdk-android), [iOS](https://github.com/Cybrid-app/cybrid-sdk-ios)) Our complete set of APIs allows you to manage resources across three distinct areas: your `Organization`, your `Banks` and your `Identities`. For most of your testing and interaction you'll be using the `Bank` API, which is where the majority of APIs reside. *The complete set of APIs can be found on the following pages:* | API | Description | |------------------------------------------------------------------|-------------------------------------------------------------| | [Organization API](https://organization.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage organizations | | [Bank API](https://bank.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage banks (and all downstream customer activity) | | [Identities API](https://id.demo.cybrid.app/api/schema/swagger-ui) | APIs to manage organization and bank identities | For questions please contact [Support](mailto:support@cybrid.xyz) at any time for assistance, or contact the [Product Team](mailto:product@cybrid.xyz) for product suggestions. ## Authenticating with the API The Cybrid Platform uses OAuth 2.0 Bearer Tokens to authenticate requests to the platform. Credentials to create `Organization` and `Bank` tokens can be generated via the [Cybrid Sandbox](https://id.demo.cybrid.app). Access tokens can be generated for a `Customer` as well via the [Cybrid IdP](https://id.demo.cybrid.app) as well. An `Organization` access token applies broadly to the whole Organization and all of its `Banks`, whereas, a `Bank` access token is specific to an individual Bank. `Customer` tokens, similarly, are scoped to a specific customer in a bank. Both `Organization` and `Bank` tokens can be created using the OAuth Client Credential Grant flow. Each Organization and Bank has its own unique `Client ID` and `Secret` that allows for machine-to-machine authentication. A `Bank` can then generate `Customer` access tokens via API using our [Identities API](https://id.demo.cybrid.app/api/schema/swagger-ui). <font color=\"orange\">**⚠️ Never share your Client ID or Secret publicly or in your source code repository.**</font> Your `Client ID` and `Secret` can be exchanged for a time-limited `Bearer Token` by interacting with the Cybrid Identity Provider or through interacting with the **Authorize** button in this document. The following curl command can be used to quickly generate a `Bearer Token` for use in testing the API or demo applications. ``` # Example request when using Bank credentials curl -X POST https://id.demo.cybrid.app/oauth/token -d '{ \"grant_type\": \"client_credentials\", \"client_id\": \"<Your Client ID>\", \"client_secret\": \"<Your Secret>\", \"scope\": \"banks:read banks:write accounts:read accounts:execute customers:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read rewards:execute rewards:read external_bank_accounts:read external_bank_accounts:write external_bank_accounts:execute workflows:read workflows:execute deposit_addresses:read deposit_addresses:execute\" }' -H \"Content-Type: application/json\" # When using Organization credentials set `scope` to 'organizations:read organizations:write banks:read banks:write banks:execute customers:read accounts:read quotes:read trades:read transfers:read external_bank_accounts:read workflows:read deposit_addresses:read' ``` <font color=\"orange\">**⚠️ Note: The above curl will create a bearer token with full scope access. Delete scopes if you'd like to restrict access.**</font> ## Authentication Scopes The Cybrid platform supports the use of scopes to control the level of access a token is limited to. Scopes do not grant access to resources; instead, they provide limits, in support of the least privilege principal. The following scopes are available on the platform and can be requested when generating either an Organization, Bank or Customer token. Generally speaking, the _Read_ scope is required to read and list resources, the _Write_ scope is required to update a resource and the _Execute_ scope is required to create a resource. | Resource | Read scope (Token Type) | Write scope (Token Type) | Execute scope (Token Type) | |-----------------------|------------------------------------------------------------|-----------------------------------------------|-------------------------------------------------| | Account | accounts:read (Organization, Bank, Customer) | | accounts:execute (Bank, Customer) | | Bank | banks:read (Organization, Bank) | banks:write (Organization, Bank) | banks:execute (Organization) | | Customer | customers:read (Organization, Bank, Customer) | customers:write (Bank, Customer) | customers:execute (Bank) | | Deposit Address | deposit_addresses:read (Organization, Bank, Customer) | deposit_addresses:write (Bank, Customer) | deposit_addresses:execute (Bank, Customer) | | External Bank Account | external_bank_accounts:read (Organization, Bank, Customer) | external_bank_accounts:write (Bank, Customer) | external_bank_accounts:execute (Bank, Customer) | | Organization | organizations:read (Organization) | organizations:write (Organization) | | | Price | prices:read (Bank, Customer) | | | | Quote | quotes:read (Organization, Bank, Customer) | | quotes:execute (Bank, Customer) | | Reward | rewards:read (Bank, Customer) | | rewards:execute (Bank) | | Trade | trades:read (Organization, Bank, Customer) | | trades:execute (Bank, Customer) | | Transfer | transfers:read (Organization, Bank, Customer) | | transfers:execute (Bank, Customer) | | Workflow | workflows:read (Organization, Bank, Customer) | | workflows:execute (Bank, Customer) | ## Available Endpoints The available APIs for the [Identity](https://id.demo.cybrid.app/api/schema/swagger-ui), [Organization](https://organization.demo.cybrid.app/api/schema/swagger-ui) and [Bank](https://bank.demo.cybrid.app/api/schema/swagger-ui) API services are listed below: | API Service | Model | API Endpoint Path | Description | |--------------|----------------------|--------------------------------|---------------------------------------------------------------------------------------------------| | Identity | Bank | /api/bank_applications | Create and list banks | | Identity | CustomerToken | /api/customer_tokens | Create customer JWT access tokens | | Identity | Organization | /api/organization_applications | Create and list organizations | | Organization | Organization | /api/organizations | APIs to retrieve and update organization name | | Bank | Account | /api/accounts | Create and list accounts, which hold a specific asset for a customers | | Bank | Asset | /api/assets | Get a list of assets supported by the platform (ex: BTC, ETH) | | Bank | Bank | /api/banks | Create, update and list banks, the parent to customers, accounts, etc | | Bank | BankVerificationKey | /api/bank_verification_keys | Create, list and retrive verification keys, used for signing identities | | Bank | Customer | /api/customers | Create and list customers | | Bank | DepositAddress | /api/deposit_addresses | Create, get and list deposit addresses | | Bank | ExternalBankAccount | /api/external_bank_accounts | Create, get and list external bank accounts, which connect customer bank accounts to the platform | | Bank | FeeConfiguration | /api/fee_configurations | Create and list bank fees (spread or fixed) | | Bank | IdentityRecord | /api/identity_records | Create and list identity records, which are attached to customers for KYC | | Bank | IdentityVerification | /api/identity_verifications | Create and list identity verifications, which are performed on customers for KYC | | Bank | Price | /api/prices | Get the current prices for assets on the platform | | Bank | Quote | /api/quotes | Create and list quotes, which are required to execute trades | | Bank | Reward | /api/rewards | Create a new reward (automates quote/trade for simplicity) | | Bank | Symbol | /api/symbols | Get a list of symbols supported for trade (ex: BTC-USD) | | Bank | Trade | /api/trades | Create and list trades, which buy or sell cryptocurrency | | Bank | Transfer | /api/transfers | Create, get and list transfers (e.g., funding, book) | | Bank | Workflow | /api/workflows | Create, get and list workflows | ## Understanding Object Models & Endpoints **Organizations** An `Organization` is meant to represent the organization partnering with Cybrid to use our platform. An `Organization` does not directly interact with `customers`. Instead, an Organization has one or more `banks`, which encompass the financial service offerings of the platform. **Banks** A `Bank` is owned by an `Organization` and can be thought of as an environment or container for `customers` and product offerings. Banks are created in either `Sandbox` or `Production` mode, where `Sandbox` is the environment that you would test, prototype and build in prior to moving to `Production`. An `Organization` can have multiple `banks`, in either `Sandbox` or `Production` environments. A `Sandbox Bank` will be backed by stubbed data and process flows. For instance, funding source transfer processes as well as trades will be simulated rather than performed, however asset prices are representative of real-world values. You have an unlimited amount of simulated fiat currency for testing purposes. **Customers** `Customers` represent your banking users on the platform. At present, we offer support for `Individuals` as Customers. `Customers` must be verified (i.e., KYC'd) in our system before they can play any part on the platform, which means they must have an associated and valid `Identity Record`. See the Identity Records section for more details on how a customer can be verified. `Customers` must also have an `Account` to be able to transact, in the desired asset class. See the Accounts APIs for more details on setting up accounts for the customer.
4
+ ## Cybrid API documentation Welcome to Cybrid, an all-in-one crypto platform that enables you to easily **build** and **launch** white-label crypto products or services. In these documents, you'll find details on how our REST API operates and generally how our platform functions. If you're looking for our UI SDK Widgets for Web or Mobile (iOS/Android), generated API clients, or demo applications, head over to our [Github repo](https://github.com/Cybrid-app). 💡 We recommend bookmarking the [Cybrid LinkTree](https://linktr.ee/cybridtechnologies) which contains many helpful links to platform resources. ## Getting Started This is Cybrid's public interactive API documentation, which allows you to fully test our APIs. If you'd like to use a different tool to exercise our APIs, you can download the [Open API 3.0 yaml](https://bank.sandbox.cybrid.app/api/schema/v1/swagger.yaml) for import. If you're new to our APIs and the Cybrid Platform, follow the below guides to get set up and familiar with the platform: 1. [Getting Started in the Cybrid Sandbox](https://www.cybrid.xyz/guides/getting-started) 2. [Getting Ready for Trading](https://www.cybrid.xyz/guides/getting-ready-for-trading) 3. [Running the Web Demo App](https://www.cybrid.xyz/guides/running-the-cybrid-web-demo-crypto-app) (or, alternatively, [Testing with Hosted Web Demo App](https://www.cybrid.xyz/guides/testing-with-the-web-demo-crypo-app)) In [Getting Started in the Cybrid Sandbox](https://www.cybrid.xyz/guides/getting-started), we walk you through how to use the [Cybrid Sandbox](https://id.demo.cybrid.app/) to create a test bank and generate API keys. In [Getting Ready for Trading](https://www.cybrid.xyz/guides/getting-ready-for-trading), we walk through creating customers, customer identities, accounts, as well as executing quotes and trades. If you've already run through the first two guides, you can follow the [Running the Web Demo App](https://www.cybrid.xyz/guides/running-the-cybrid-web-demo-crypto-app) guide to test our web SDK with your sandbox `bank` and `customer`. ## Working with the Cybrid Platform There are three primary ways you can interact with the Cybrid platform: 1. Directly via our RESTful API (this documentation) 2. Using our API clients available in a variety of languages ([Angular](https://github.com/Cybrid-app/cybrid-api-bank-angular), [Java](https://github.com/Cybrid-app/cybrid-api-bank-java), [Kotlin](https://github.com/Cybrid-app/cybrid-api-bank-kotlin), [Python](https://github.com/Cybrid-app/cybrid-api-bank-python), [Ruby](https://github.com/Cybrid-app/cybrid-api-bank-ruby), [Swift](https://github.com/Cybrid-app/cybrid-api-bank-swift) or [Typescript](https://github.com/Cybrid-app/cybrid-api-bank-typescript)) 3. Integrating a platform specific SDK ([Web](https://github.com/Cybrid-app/cybrid-sdk-web), [Android](https://github.com/Cybrid-app/cybrid-sdk-android), [iOS](https://github.com/Cybrid-app/cybrid-sdk-ios)) Our complete set of APIs allows you to manage resources across three distinct areas: your `Organization`, your `Banks` and your `Identities`. For most of your testing and interaction you'll be using the `Bank` API, which is where the majority of APIs reside. *The complete set of APIs can be found on the following pages:* | API | Description | |------------------------------------------------------------------|-------------------------------------------------------------| | [Organization API](https://organization.sandbox.cybrid.app/api/schema/swagger-ui) | APIs to manage organizations | | [Bank API](https://bank.sandbox.cybrid.app/api/schema/swagger-ui) | APIs to manage banks (and all downstream customer activity) | | [Identities API](https://id.sandbox.cybrid.app/api/schema/swagger-ui) | APIs to manage organization and bank identities | For questions please contact [Support](mailto:support@cybrid.xyz) at any time for assistance, or contact the [Product Team](mailto:product@cybrid.xyz) for product suggestions. ## Authenticating with the API The Cybrid Platform uses OAuth 2.0 Bearer Tokens to authenticate requests to the platform. Credentials to create `Organization` and `Bank` tokens can be generated via the [Cybrid Sandbox](https://id.sandbox.cybrid.app). Access tokens can be generated for a `Customer` as well via the [Cybrid IdP](https://id.sandbox.cybrid.app) as well. An `Organization` access token applies broadly to the whole Organization and all of its `Banks`, whereas, a `Bank` access token is specific to an individual Bank. `Customer` tokens, similarly, are scoped to a specific customer in a bank. Both `Organization` and `Bank` tokens can be created using the OAuth Client Credential Grant flow. Each Organization and Bank has its own unique `Client ID` and `Secret` that allows for machine-to-machine authentication. A `Bank` can then generate `Customer` access tokens via API using our [Identities API](https://id.sandbox.cybrid.app/api/schema/swagger-ui). <font color=\"orange\">**⚠️ Never share your Client ID or Secret publicly or in your source code repository.**</font> Your `Client ID` and `Secret` can be exchanged for a time-limited `Bearer Token` by interacting with the Cybrid Identity Provider or through interacting with the **Authorize** button in this document. The following curl command can be used to quickly generate a `Bearer Token` for use in testing the API or demo applications. ``` # Example request when using Bank credentials curl -X POST https://id.sandbox.cybrid.app/oauth/token -d '{ \"grant_type\": \"client_credentials\", \"client_id\": \"<Your Client ID>\", \"client_secret\": \"<Your Secret>\", \"scope\": \"banks:read banks:write accounts:read accounts:execute customers:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read rewards:execute rewards:read external_bank_accounts:read external_bank_accounts:write external_bank_accounts:execute workflows:read workflows:execute deposit_addresses:read deposit_addresses:execute\" }' -H \"Content-Type: application/json\" # When using Organization credentials set `scope` to 'organizations:read organizations:write banks:read banks:write banks:execute customers:read accounts:read quotes:read trades:read transfers:read external_bank_accounts:read workflows:read deposit_addresses:read' ``` <font color=\"orange\">**⚠️ Note: The above curl will create a bearer token with full scope access. Delete scopes if you'd like to restrict access.**</font> ## Authentication Scopes The Cybrid platform supports the use of scopes to control the level of access a token is limited to. Scopes do not grant access to resources; instead, they provide limits, in support of the least privilege principal. The following scopes are available on the platform and can be requested when generating either an Organization, Bank or Customer token. Generally speaking, the _Read_ scope is required to read and list resources, the _Write_ scope is required to update a resource and the _Execute_ scope is required to create a resource. | Resource | Read scope (Token Type) | Write scope (Token Type) | Execute scope (Token Type) | |-----------------------|------------------------------------------------------------|-----------------------------------------------|-------------------------------------------------| | Account | accounts:read (Organization, Bank, Customer) | | accounts:execute (Bank, Customer) | | Bank | banks:read (Organization, Bank) | banks:write (Organization, Bank) | banks:execute (Organization) | | Customer | customers:read (Organization, Bank, Customer) | customers:write (Bank, Customer) | customers:execute (Bank) | | Deposit Address | deposit_addresses:read (Organization, Bank, Customer) | deposit_addresses:write (Bank, Customer) | deposit_addresses:execute (Bank, Customer) | | External Bank Account | external_bank_accounts:read (Organization, Bank, Customer) | external_bank_accounts:write (Bank, Customer) | external_bank_accounts:execute (Bank, Customer) | | Organization | organizations:read (Organization) | organizations:write (Organization) | | | Price | prices:read (Bank, Customer) | | | | Quote | quotes:read (Organization, Bank, Customer) | | quotes:execute (Bank, Customer) | | Reward | rewards:read (Bank, Customer) | | rewards:execute (Bank) | | Trade | trades:read (Organization, Bank, Customer) | | trades:execute (Bank, Customer) | | Transfer | transfers:read (Organization, Bank, Customer) | | transfers:execute (Bank, Customer) | | Workflow | workflows:read (Organization, Bank, Customer) | | workflows:execute (Bank, Customer) | ## Available Endpoints The available APIs for the [Identity](https://id.sandbox.cybrid.app/api/schema/swagger-ui), [Organization](https://organization.sandbox.cybrid.app/api/schema/swagger-ui) and [Bank](https://bank.sandbox.cybrid.app/api/schema/swagger-ui) API services are listed below: | API Service | Model | API Endpoint Path | Description | |--------------|----------------------|--------------------------------|---------------------------------------------------------------------------------------------------| | Identity | Bank | /api/bank_applications | Create and list banks | | Identity | CustomerToken | /api/customer_tokens | Create customer JWT access tokens | | Identity | Organization | /api/organization_applications | Create and list organizations | | Organization | Organization | /api/organizations | APIs to retrieve and update organization name | | Bank | Account | /api/accounts | Create and list accounts, which hold a specific asset for a customers | | Bank | Asset | /api/assets | Get a list of assets supported by the platform (ex: BTC, ETH) | | Bank | Bank | /api/banks | Create, update and list banks, the parent to customers, accounts, etc | | Bank | BankVerificationKey | /api/bank_verification_keys | Create, list and retrive verification keys, used for signing identities | | Bank | Customer | /api/customers | Create and list customers | | Bank | DepositAddress | /api/deposit_addresses | Create, get and list deposit addresses | | Bank | ExternalBankAccount | /api/external_bank_accounts | Create, get and list external bank accounts, which connect customer bank accounts to the platform | | Bank | IdentityRecord | /api/identity_records | Create and list identity records, which are attached to customers for KYC | | Bank | IdentityVerification | /api/identity_verifications | Create and list identity verifications, which are performed on customers for KYC | | Bank | Price | /api/prices | Get the current prices for assets on the platform | | Bank | Quote | /api/quotes | Create and list quotes, which are required to execute trades | | Bank | Reward | /api/rewards | Create a new reward (automates quote/trade for simplicity) | | Bank | Symbol | /api/symbols | Get a list of symbols supported for trade (ex: BTC-USD) | | Bank | Trade | /api/trades | Create and list trades, which buy or sell cryptocurrency | | Bank | Transfer | /api/transfers | Create, get and list transfers (e.g., funding, book) | | Bank | Workflow | /api/workflows | Create, get and list workflows | ## Understanding Object Models & Endpoints **Organizations** An `Organization` is meant to represent the organization partnering with Cybrid to use our platform. An `Organization` does not directly interact with `customers`. Instead, an Organization has one or more `banks`, which encompass the financial service offerings of the platform. **Banks** A `Bank` is owned by an `Organization` and can be thought of as an environment or container for `customers` and product offerings. Banks are created in either `Sandbox` or `Production` mode, where `Sandbox` is the environment that you would test, prototype and build in prior to moving to `Production`. An `Organization` can have multiple `banks`, in either `Sandbox` or `Production` environments. A `Sandbox Bank` will be backed by stubbed data and process flows. For instance, funding source transfer processes as well as trades will be simulated rather than performed, however asset prices are representative of real-world values. You have an unlimited amount of simulated fiat currency for testing purposes. **Customers** `Customers` represent your banking users on the platform. At present, we offer support for `Individuals` as Customers. `Customers` must be verified (i.e., KYC'd) in our system before they can play any part on the platform, which means they must have an associated and valid `Identity Record`. See the Identity Records section for more details on how a customer can be verified. `Customers` must also have an `Account` to be able to transact, in the desired asset class. See the Accounts APIs for more details on setting up accounts for the customer.
5
5
 
6
- The version of the OpenAPI document: v0.62.69
6
+ The version of the OpenAPI document: v0.63.5
7
7
  Contact: support@cybrid.app
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 6.0.0
@@ -3,12 +3,12 @@ current directory: /home/circleci/project/api-service-clients/api-platform-organ
3
3
  creating Makefile
4
4
 
5
5
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
6
- make DESTDIR\= sitearchdir\=./.gem.20230303-3787-8dpava sitelibdir\=./.gem.20230303-3787-8dpava clean
6
+ make DESTDIR\= sitearchdir\=./.gem.20230308-3798-uvp0zw sitelibdir\=./.gem.20230308-3798-uvp0zw clean
7
7
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug'
8
8
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug'
9
9
 
10
10
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
11
- make DESTDIR\= sitearchdir\=./.gem.20230303-3787-8dpava sitelibdir\=./.gem.20230303-3787-8dpava
11
+ make DESTDIR\= sitearchdir\=./.gem.20230308-3798-uvp0zw sitelibdir\=./.gem.20230308-3798-uvp0zw
12
12
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug'
13
13
  compiling breakpoint.c
14
14
  compiling byebug.c
@@ -39,12 +39,12 @@ linking shared-object byebug/byebug.so
39
39
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug'
40
40
 
41
41
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
42
- make DESTDIR\= sitearchdir\=./.gem.20230303-3787-8dpava sitelibdir\=./.gem.20230303-3787-8dpava install
42
+ make DESTDIR\= sitearchdir\=./.gem.20230308-3798-uvp0zw sitelibdir\=./.gem.20230308-3798-uvp0zw install
43
43
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug'
44
- /usr/bin/install -c -m 0755 byebug.so ./.gem.20230303-3787-8dpava/byebug
44
+ /usr/bin/install -c -m 0755 byebug.so ./.gem.20230308-3798-uvp0zw/byebug
45
45
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug'
46
46
 
47
47
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
48
- make DESTDIR\= sitearchdir\=./.gem.20230303-3787-8dpava sitelibdir\=./.gem.20230303-3787-8dpava clean
48
+ make DESTDIR\= sitearchdir\=./.gem.20230308-3798-uvp0zw sitelibdir\=./.gem.20230308-3798-uvp0zw clean
49
49
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug'
50
50
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug'
@@ -9,12 +9,12 @@ creating extconf.h
9
9
  creating Makefile
10
10
 
11
11
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/ext/ffi_c
12
- make DESTDIR\= sitearchdir\=./.gem.20230303-3787-572nox sitelibdir\=./.gem.20230303-3787-572nox clean
12
+ make DESTDIR\= sitearchdir\=./.gem.20230308-3798-y6140s sitelibdir\=./.gem.20230308-3798-y6140s clean
13
13
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/ext/ffi_c'
14
14
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/ext/ffi_c'
15
15
 
16
16
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/ext/ffi_c
17
- make DESTDIR\= sitearchdir\=./.gem.20230303-3787-572nox sitelibdir\=./.gem.20230303-3787-572nox
17
+ make DESTDIR\= sitearchdir\=./.gem.20230308-3798-y6140s sitelibdir\=./.gem.20230308-3798-y6140s
18
18
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/ext/ffi_c'
19
19
  compiling AbstractMemory.c
20
20
  compiling ArrayType.c
@@ -43,12 +43,12 @@ linking shared-object ffi_c.so
43
43
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/ext/ffi_c'
44
44
 
45
45
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/ext/ffi_c
46
- make DESTDIR\= sitearchdir\=./.gem.20230303-3787-572nox sitelibdir\=./.gem.20230303-3787-572nox install
46
+ make DESTDIR\= sitearchdir\=./.gem.20230308-3798-y6140s sitelibdir\=./.gem.20230308-3798-y6140s install
47
47
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/ext/ffi_c'
48
- /usr/bin/install -c -m 0755 ffi_c.so ./.gem.20230303-3787-572nox
48
+ /usr/bin/install -c -m 0755 ffi_c.so ./.gem.20230308-3798-y6140s
49
49
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/ext/ffi_c'
50
50
 
51
51
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/ext/ffi_c
52
- make DESTDIR\= sitearchdir\=./.gem.20230303-3787-572nox sitelibdir\=./.gem.20230303-3787-572nox clean
52
+ make DESTDIR\= sitearchdir\=./.gem.20230308-3798-y6140s sitelibdir\=./.gem.20230308-3798-y6140s clean
53
53
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/ext/ffi_c'
54
54
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/ext/ffi_c'
@@ -3,12 +3,12 @@ current directory: /home/circleci/project/api-service-clients/api-platform-organ
3
3
  creating Makefile
4
4
 
5
5
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler
6
- make DESTDIR\= sitearchdir\=./.gem.20230303-3787-9b7t6a sitelibdir\=./.gem.20230303-3787-9b7t6a clean
6
+ make DESTDIR\= sitearchdir\=./.gem.20230308-3798-vdh08x sitelibdir\=./.gem.20230308-3798-vdh08x clean
7
7
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler'
8
8
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler'
9
9
 
10
10
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler
11
- make DESTDIR\= sitearchdir\=./.gem.20230303-3787-9b7t6a sitelibdir\=./.gem.20230303-3787-9b7t6a
11
+ make DESTDIR\= sitearchdir\=./.gem.20230308-3798-vdh08x sitelibdir\=./.gem.20230308-3798-vdh08x
12
12
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler'
13
13
  compiling adj_matrix.c
14
14
  adj_matrix.c: In function ‘adj_matrix_default’:
@@ -63,12 +63,12 @@ linking shared-object jaro_winkler/jaro_winkler_ext.so
63
63
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler'
64
64
 
65
65
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler
66
- make DESTDIR\= sitearchdir\=./.gem.20230303-3787-9b7t6a sitelibdir\=./.gem.20230303-3787-9b7t6a install
66
+ make DESTDIR\= sitearchdir\=./.gem.20230308-3798-vdh08x sitelibdir\=./.gem.20230308-3798-vdh08x install
67
67
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler'
68
- /usr/bin/install -c -m 0755 jaro_winkler_ext.so ./.gem.20230303-3787-9b7t6a/jaro_winkler
68
+ /usr/bin/install -c -m 0755 jaro_winkler_ext.so ./.gem.20230308-3798-vdh08x/jaro_winkler
69
69
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler'
70
70
 
71
71
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler
72
- make DESTDIR\= sitearchdir\=./.gem.20230303-3787-9b7t6a sitelibdir\=./.gem.20230303-3787-9b7t6a clean
72
+ make DESTDIR\= sitearchdir\=./.gem.20230308-3798-vdh08x sitelibdir\=./.gem.20230308-3798-vdh08x clean
73
73
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler'
74
74
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler'
@@ -5,7 +5,7 @@ checking for yaml_get_version() in -lyaml... yes
5
5
  creating Makefile
6
6
 
7
7
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.0/ext/psych
8
- make DESTDIR\= sitearchdir\=./.gem.20230303-3787-dorz5x sitelibdir\=./.gem.20230303-3787-dorz5x clean
8
+ make DESTDIR\= sitearchdir\=./.gem.20230308-3798-n1ikyh sitelibdir\=./.gem.20230308-3798-n1ikyh clean
9
9
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.0/ext/psych'
10
10
  cd libyaml && make clean
11
11
  /bin/sh: 1: cd: can't cd to libyaml
@@ -13,7 +13,7 @@ make[1]: [Makefile:283: clean-so] Error 2 (ignored)
13
13
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.0/ext/psych'
14
14
 
15
15
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.0/ext/psych
16
- make DESTDIR\= sitearchdir\=./.gem.20230303-3787-dorz5x sitelibdir\=./.gem.20230303-3787-dorz5x
16
+ make DESTDIR\= sitearchdir\=./.gem.20230308-3798-n1ikyh sitelibdir\=./.gem.20230308-3798-n1ikyh
17
17
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.0/ext/psych'
18
18
  compiling psych.c
19
19
  compiling psych_emitter.c
@@ -24,13 +24,13 @@ linking shared-object psych.so
24
24
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.0/ext/psych'
25
25
 
26
26
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.0/ext/psych
27
- make DESTDIR\= sitearchdir\=./.gem.20230303-3787-dorz5x sitelibdir\=./.gem.20230303-3787-dorz5x install
27
+ make DESTDIR\= sitearchdir\=./.gem.20230308-3798-n1ikyh sitelibdir\=./.gem.20230308-3798-n1ikyh install
28
28
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.0/ext/psych'
29
- /usr/bin/install -c -m 0755 psych.so ./.gem.20230303-3787-dorz5x
29
+ /usr/bin/install -c -m 0755 psych.so ./.gem.20230308-3798-n1ikyh
30
30
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.0/ext/psych'
31
31
 
32
32
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.0/ext/psych
33
- make DESTDIR\= sitearchdir\=./.gem.20230303-3787-dorz5x sitelibdir\=./.gem.20230303-3787-dorz5x clean
33
+ make DESTDIR\= sitearchdir\=./.gem.20230308-3798-n1ikyh sitelibdir\=./.gem.20230308-3798-n1ikyh clean
34
34
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/psych-5.1.0/ext/psych'
35
35
  cd libyaml && make clean
36
36
  /bin/sh: 1: cd: can't cd to libyaml
@@ -4,24 +4,24 @@ checking for rb_io_extract_modeenc() in ruby/io.h... yes
4
4
  creating Makefile
5
5
 
6
6
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.5/ext/stringio
7
- make DESTDIR\= sitearchdir\=./.gem.20230303-3787-593inh sitelibdir\=./.gem.20230303-3787-593inh clean
7
+ make DESTDIR\= sitearchdir\=./.gem.20230308-3798-dsjjvh sitelibdir\=./.gem.20230308-3798-dsjjvh clean
8
8
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.5/ext/stringio'
9
9
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.5/ext/stringio'
10
10
 
11
11
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.5/ext/stringio
12
- make DESTDIR\= sitearchdir\=./.gem.20230303-3787-593inh sitelibdir\=./.gem.20230303-3787-593inh
12
+ make DESTDIR\= sitearchdir\=./.gem.20230308-3798-dsjjvh sitelibdir\=./.gem.20230308-3798-dsjjvh
13
13
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.5/ext/stringio'
14
14
  compiling stringio.c
15
15
  linking shared-object stringio.so
16
16
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.5/ext/stringio'
17
17
 
18
18
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.5/ext/stringio
19
- make DESTDIR\= sitearchdir\=./.gem.20230303-3787-593inh sitelibdir\=./.gem.20230303-3787-593inh install
19
+ make DESTDIR\= sitearchdir\=./.gem.20230308-3798-dsjjvh sitelibdir\=./.gem.20230308-3798-dsjjvh install
20
20
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.5/ext/stringio'
21
- /usr/bin/install -c -m 0755 stringio.so ./.gem.20230303-3787-593inh
21
+ /usr/bin/install -c -m 0755 stringio.so ./.gem.20230308-3798-dsjjvh
22
22
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.5/ext/stringio'
23
23
 
24
24
  current directory: /home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.5/ext/stringio
25
- make DESTDIR\= sitearchdir\=./.gem.20230303-3787-593inh sitelibdir\=./.gem.20230303-3787-593inh clean
25
+ make DESTDIR\= sitearchdir\=./.gem.20230308-3798-dsjjvh sitelibdir\=./.gem.20230308-3798-dsjjvh clean
26
26
  make[1]: Entering directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.5/ext/stringio'
27
27
  make[1]: Leaving directory '/home/circleci/project/api-service-clients/api-platform-organization/ruby/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.5/ext/stringio'
@@ -5,8 +5,8 @@ module Parser
5
5
 
6
6
  ##
7
7
  # {Parser::AST::Node} contains information about a single AST node and its
8
- # child nodes. It extends the basic [AST::Node](http://rdoc.info/gems/ast/AST/Node)
9
- # class provided by gem [ast](http://rdoc.info/gems/ast).
8
+ # child nodes. It extends the basic [AST::Node](https://www.rubydoc.info/gems/ast/AST/Node)
9
+ # class provided by gem [ast](https://www.rubydoc.info/gems/ast).
10
10
  #
11
11
  # @api public
12
12
  #
@@ -540,8 +540,13 @@ module Parser
540
540
  def associate(begin_t, pairs, end_t)
541
541
  0.upto(pairs.length - 1) do |i|
542
542
  (i + 1).upto(pairs.length - 1) do |j|
543
- key1, = *pairs[i]
544
- key2, = *pairs[j]
543
+ pair_i = pairs[i]
544
+ pair_j = pairs[j]
545
+
546
+ next if pair_i.type != :pair || pair_j.type != :pair
547
+
548
+ key1, = *pair_i
549
+ key2, = *pair_j
545
550
 
546
551
  do_warn = false
547
552
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,7 +1,7 @@
1
1
  # -*- encoding:utf-8; warn-indent:false; frozen_string_literal: true -*-
2
2
  #
3
3
  # DO NOT MODIFY!!!!
4
- # This file is automatically generated by Racc 1.6.0
4
+ # This file is automatically generated by Racc 1.6.2
5
5
  # from Racc grammar file "".
6
6
  #
7
7
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Parser
4
- VERSION = '3.2.1.0'
4
+ VERSION = '3.2.1.1'
5
5
  end
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
 
31
31
  spec.add_development_dependency 'bundler', '>= 1.15', '< 3.0.0'
32
32
  spec.add_development_dependency 'rake', '~> 13.0.1'
33
- spec.add_development_dependency 'racc', '= 1.6.1'
33
+ spec.add_development_dependency 'racc', '= 1.6.2'
34
34
  spec.add_development_dependency 'cliver', '~> 0.3.2'
35
35
 
36
36
  spec.add_development_dependency 'yard'
@@ -10,12 +10,29 @@ require 'ruby-progressbar/format/string'
10
10
  require 'ruby-progressbar/outputs/non_tty'
11
11
  require 'ruby-progressbar/outputs/tty'
12
12
  require 'ruby-progressbar/progress'
13
+ require 'ruby-progressbar/projector'
13
14
  require 'ruby-progressbar/timer'
14
15
 
15
16
  class ProgressBar
16
17
  class Base
17
18
  extend Forwardable
18
19
 
20
+ # rubocop:disable Layout/HeredocIndentation
21
+ SMOOTHING_DEPRECATION_WARNING = <<-HEREDOC.tr("\n", ' ')
22
+ WARNING: Passing the 'smoothing' option is deprecated and will be removed
23
+ in version 2.0. Please pass { projector: { type: 'smoothing', strength: 0.x }}.
24
+ For more information on why this change is happening, visit
25
+ https://github.com/jfelchner/ruby-progressbar/wiki/Upgrading
26
+ HEREDOC
27
+
28
+ RUNNING_AVERAGE_RATE_DEPRECATION_WARNING = <<-HEREDOC.tr("\n", ' ')
29
+ WARNING: Passing the 'running_average_rate' option is deprecated and will be removed
30
+ in version 2.0. Please pass { projector: { type: 'smoothing', strength: 0.x }}.
31
+ For more information on why this change is happening, visit
32
+ https://github.com/jfelchner/ruby-progressbar/wiki/Upgrading
33
+ HEREDOC
34
+ # rubocop:enable Layout/HeredocIndentation
35
+
19
36
  def_delegators :output,
20
37
  :clear,
21
38
  :log,
@@ -26,15 +43,34 @@ class Base
26
43
  :total
27
44
 
28
45
  def initialize(options = {}) # rubocop:disable Metrics/AbcSize
46
+ options[:projector] ||= {}
47
+
29
48
  self.autostart = options.fetch(:autostart, true)
30
49
  self.autofinish = options.fetch(:autofinish, true)
31
50
  self.finished = false
32
51
 
33
52
  self.timer = Timer.new(options)
53
+ projector_opts = if options[:projector].any?
54
+ options[:projector]
55
+ elsif options[:smoothing]
56
+ warn SMOOTHING_DEPRECATION_WARNING
57
+
58
+ { :strength => options[:smoothing] }
59
+ elsif options[:running_average_rate]
60
+ warn RUNNING_AVERAGE_RATE_DEPRECATION_WARNING
61
+
62
+ { :strength => options[:smoothing] }
63
+ else
64
+ {}
65
+ end
66
+ self.projector = Projector.
67
+ from_type(options[:projector][:type]).
68
+ new(projector_opts)
34
69
  self.progressable = Progress.new(options)
35
70
 
36
- options = options.merge(:progress => progressable,
37
- :timer => timer)
71
+ options = options.merge(:progress => progressable,
72
+ :projector => projector,
73
+ :timer => timer)
38
74
 
39
75
  self.title_component = Components::Title.new(options)
40
76
  self.bar_component = Components::Bar.new(options)
@@ -79,6 +115,7 @@ class Base
79
115
  output.with_refresh do
80
116
  self.finished = false
81
117
  progressable.reset
118
+ projector.reset
82
119
  timer.reset
83
120
  end
84
121
  end
@@ -174,6 +211,7 @@ class Base
174
211
  protected
175
212
 
176
213
  attr_accessor :output,
214
+ :projector,
177
215
  :timer,
178
216
  :progressable,
179
217
  :title_component,
@@ -188,6 +226,7 @@ class Base
188
226
  def update_progress(*args)
189
227
  output.with_refresh do
190
228
  progressable.__send__(*args)
229
+ projector.__send__(*args)
191
230
  timer.stop if finished?
192
231
  end
193
232
  end
@@ -19,8 +19,9 @@ class Time
19
19
  }.freeze
20
20
 
21
21
  def initialize(options = {})
22
- self.timer = options[:timer]
23
- self.progress = options[:progress]
22
+ self.timer = options[:timer]
23
+ self.progress = options[:progress]
24
+ self.projector = options[:projector]
24
25
  end
25
26
 
26
27
  def estimated_with_label(out_of_bounds_time_format = nil)
@@ -57,7 +58,8 @@ class Time
57
58
  protected
58
59
 
59
60
  attr_accessor :timer,
60
- :progress
61
+ :progress,
62
+ :projector
61
63
 
62
64
  private
63
65
 
@@ -90,9 +92,9 @@ class Time
90
92
  end
91
93
 
92
94
  def estimated_seconds_remaining
93
- return if progress.unknown? || progress.none? || timer.stopped? || timer.reset?
95
+ return if progress.unknown? || projector.none? || progress.none? || timer.stopped? || timer.reset?
94
96
 
95
- (timer.elapsed_seconds * ((progress.total / progress.running_average) - 1)).round
97
+ (timer.elapsed_seconds * ((progress.total / projector.projection) - 1)).round
96
98
  end
97
99
  end
98
100
  end