cloudsmith-api 0.52.92 → 0.53.79

Sign up to get free protection for your applications and to get access to all the features.
Files changed (279) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -5
  3. data/README.md +18 -16
  4. data/build.json +1 -1
  5. data/docs/AlpinePackageUpload.md +2 -1
  6. data/docs/BadgesApi.md +1 -6
  7. data/docs/ConanPackageUpload.md +2 -1
  8. data/docs/DistrosApi.md +2 -12
  9. data/docs/EntitlementUsageMetric.md +8 -0
  10. data/docs/EntitlementsApi.md +10 -60
  11. data/docs/EntitlementsCreate.md +4 -0
  12. data/docs/EntitlementsPartialUpdate.md +4 -0
  13. data/docs/EntitlementsRefresh.md +4 -0
  14. data/docs/FilesApi.md +5 -30
  15. data/docs/FormatsApi.md +2 -12
  16. data/docs/MavenPackageUpload.md +2 -1
  17. data/docs/MetricsApi.md +4 -14
  18. data/docs/NamespacesApi.md +2 -12
  19. data/docs/OrgsApi.md +2 -12
  20. data/docs/Package.md +2 -1
  21. data/docs/PackageCopy.md +2 -1
  22. data/docs/PackageMove.md +2 -1
  23. data/docs/PackagesApi.md +50 -300
  24. data/docs/Quota.md +8 -0
  25. data/docs/QuotaApi.md +228 -0
  26. data/docs/QuotaHistory.md +8 -0
  27. data/docs/QuotaHistoryHistory.md +13 -0
  28. data/docs/RatesApi.md +1 -6
  29. data/docs/RawPackageUpload.md +2 -1
  30. data/docs/ReposApi.md +6 -36
  31. data/docs/RepositoryToken.md +9 -0
  32. data/docs/RepositoryTokenRefresh.md +9 -0
  33. data/docs/RepositoryTokenSyncTokens.md +9 -0
  34. data/docs/StorageregionsApi.md +2 -12
  35. data/docs/UserApi.md +2 -12
  36. data/docs/UsersApi.md +1 -6
  37. data/docs/VagrantPackageUpload.md +2 -1
  38. data/docs/VulnerabilitiesApi.md +264 -0
  39. data/docs/VulnerabilityScanResults.md +15 -0
  40. data/docs/VulnerabilityScanResultsList.md +14 -0
  41. data/docs/WebhooksApi.md +5 -30
  42. data/lib/cloudsmith-api.rb +8 -1
  43. data/lib/cloudsmith-api/api/badges_api.rb +1 -1
  44. data/lib/cloudsmith-api/api/distros_api.rb +2 -2
  45. data/lib/cloudsmith-api/api/entitlements_api.rb +10 -10
  46. data/lib/cloudsmith-api/api/files_api.rb +5 -5
  47. data/lib/cloudsmith-api/api/formats_api.rb +2 -2
  48. data/lib/cloudsmith-api/api/metrics_api.rb +5 -5
  49. data/lib/cloudsmith-api/api/namespaces_api.rb +2 -2
  50. data/lib/cloudsmith-api/api/orgs_api.rb +2 -2
  51. data/lib/cloudsmith-api/api/packages_api.rb +50 -50
  52. data/lib/cloudsmith-api/api/quota_api.rb +227 -0
  53. data/lib/cloudsmith-api/api/rates_api.rb +1 -1
  54. data/lib/cloudsmith-api/api/repos_api.rb +6 -6
  55. data/lib/cloudsmith-api/api/storageregions_api.rb +2 -2
  56. data/lib/cloudsmith-api/api/user_api.rb +2 -2
  57. data/lib/cloudsmith-api/api/users_api.rb +1 -1
  58. data/lib/cloudsmith-api/api/vulnerabilities_api.rb +281 -0
  59. data/lib/cloudsmith-api/api/webhooks_api.rb +5 -5
  60. data/lib/cloudsmith-api/configuration.rb +0 -7
  61. data/lib/cloudsmith-api/models/alpine_package_upload.rb +15 -5
  62. data/lib/cloudsmith-api/models/conan_package_upload.rb +15 -5
  63. data/lib/cloudsmith-api/models/{entitlement_token_metric.rb → entitlement_usage_metric.rb} +11 -26
  64. data/lib/cloudsmith-api/models/entitlements_create.rb +41 -1
  65. data/lib/cloudsmith-api/models/entitlements_partial_update.rb +41 -1
  66. data/lib/cloudsmith-api/models/entitlements_refresh.rb +41 -1
  67. data/lib/cloudsmith-api/models/maven_package_upload.rb +15 -5
  68. data/lib/cloudsmith-api/models/package.rb +15 -5
  69. data/lib/cloudsmith-api/models/package_copy.rb +15 -5
  70. data/lib/cloudsmith-api/models/package_move.rb +15 -5
  71. data/lib/cloudsmith-api/models/quota.rb +194 -0
  72. data/lib/cloudsmith-api/models/quota_history.rb +196 -0
  73. data/lib/cloudsmith-api/models/quota_history_history.rb +239 -0
  74. data/lib/cloudsmith-api/models/raw_package_upload.rb +15 -5
  75. data/lib/cloudsmith-api/models/repository_token.rb +91 -1
  76. data/lib/cloudsmith-api/models/repository_token_refresh.rb +91 -1
  77. data/lib/cloudsmith-api/models/repository_token_sync_tokens.rb +91 -1
  78. data/lib/cloudsmith-api/models/vagrant_package_upload.rb +15 -5
  79. data/lib/cloudsmith-api/models/vulnerability_scan_results.rb +279 -0
  80. data/lib/cloudsmith-api/models/vulnerability_scan_results_list.rb +264 -0
  81. data/lib/cloudsmith-api/version.rb +1 -1
  82. data/spec/api/metrics_api_spec.rb +1 -1
  83. data/spec/api/quota_api_spec.rb +83 -0
  84. data/spec/api/vulnerabilities_api_spec.rb +95 -0
  85. data/spec/models/alpine_package_upload_spec.rb +6 -0
  86. data/spec/models/conan_package_upload_spec.rb +6 -0
  87. data/spec/models/{entitlement_token_metric_spec.rb → entitlement_usage_metric_spec.rb} +7 -13
  88. data/spec/models/entitlements_create_spec.rb +24 -0
  89. data/spec/models/entitlements_partial_update_spec.rb +24 -0
  90. data/spec/models/entitlements_refresh_spec.rb +24 -0
  91. data/spec/models/maven_package_upload_spec.rb +6 -0
  92. data/spec/models/package_copy_spec.rb +6 -0
  93. data/spec/models/package_move_spec.rb +6 -0
  94. data/spec/models/package_spec.rb +6 -0
  95. data/spec/models/quota_history_history_spec.rb +72 -0
  96. data/spec/models/quota_history_spec.rb +42 -0
  97. data/spec/models/quota_spec.rb +42 -0
  98. data/spec/models/raw_package_upload_spec.rb +6 -0
  99. data/spec/models/repository_token_refresh_spec.rb +54 -0
  100. data/spec/models/repository_token_spec.rb +54 -0
  101. data/spec/models/repository_token_sync_tokens_spec.rb +54 -0
  102. data/spec/models/vagrant_package_upload_spec.rb +6 -0
  103. data/spec/models/vulnerability_scan_results_list_spec.rb +78 -0
  104. data/spec/models/vulnerability_scan_results_spec.rb +84 -0
  105. data/vendor/bundle/ruby/2.6.0/cache/crack-0.4.4.gem +0 -0
  106. data/vendor/bundle/ruby/2.6.0/cache/rspec-core-3.9.3.gem +0 -0
  107. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.17/gem_make.out +1 -1
  108. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.13.1/gem_make.out +2 -2
  109. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.3.1/gem_make.out +1 -1
  110. data/vendor/bundle/ruby/2.6.0/gems/{crack-0.4.3 → crack-0.4.4}/lib/crack.rb +0 -0
  111. data/vendor/bundle/ruby/2.6.0/gems/{crack-0.4.3 → crack-0.4.4}/lib/crack/json.rb +5 -18
  112. data/vendor/bundle/ruby/2.6.0/gems/{crack-0.4.3 → crack-0.4.4}/lib/crack/util.rb +0 -0
  113. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.4/lib/crack/version.rb +3 -0
  114. data/vendor/bundle/ruby/2.6.0/gems/{crack-0.4.3 → crack-0.4.4}/lib/crack/xml.rb +0 -0
  115. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.13.1/ext/ffi_c/Makefile +3 -3
  116. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/.document +0 -0
  117. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/.yardopts +0 -0
  118. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/Changelog.md +17 -0
  119. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/LICENSE.md +0 -0
  120. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/README.md +3 -3
  121. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/exe/rspec +0 -0
  122. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/autorun.rb +0 -0
  123. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core.rb +0 -0
  124. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/backtrace_formatter.rb +0 -0
  125. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/bisect/coordinator.rb +0 -0
  126. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/bisect/example_minimizer.rb +0 -0
  127. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/bisect/fork_runner.rb +6 -3
  128. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/bisect/server.rb +0 -0
  129. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/bisect/shell_command.rb +0 -0
  130. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/bisect/shell_runner.rb +0 -0
  131. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/bisect/utilities.rb +0 -0
  132. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/configuration.rb +10 -7
  133. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/configuration_options.rb +0 -0
  134. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/did_you_mean.rb +0 -0
  135. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/drb.rb +0 -0
  136. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/dsl.rb +0 -0
  137. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/example.rb +10 -3
  138. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/example_group.rb +2 -1
  139. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/example_status_persister.rb +0 -0
  140. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/filter_manager.rb +0 -0
  141. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/flat_map.rb +0 -0
  142. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters.rb +0 -0
  143. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/base_bisect_formatter.rb +0 -0
  144. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/base_formatter.rb +0 -0
  145. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/base_text_formatter.rb +0 -0
  146. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/bisect_drb_formatter.rb +0 -0
  147. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/bisect_progress_formatter.rb +0 -0
  148. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/console_codes.rb +0 -0
  149. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/deprecation_formatter.rb +0 -0
  150. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/documentation_formatter.rb +0 -0
  151. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/exception_presenter.rb +10 -2
  152. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/failure_list_formatter.rb +0 -0
  153. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/fallback_message_formatter.rb +0 -0
  154. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/helpers.rb +0 -0
  155. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/html_formatter.rb +0 -0
  156. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/html_printer.rb +0 -0
  157. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/html_snippet_extractor.rb +0 -0
  158. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/json_formatter.rb +0 -0
  159. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/profile_formatter.rb +0 -0
  160. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/progress_formatter.rb +0 -0
  161. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/protocol.rb +0 -0
  162. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/snippet_extractor.rb +0 -0
  163. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/formatters/syntax_highlighter.rb +0 -0
  164. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/hooks.rb +14 -9
  165. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/invocations.rb +1 -1
  166. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/memoized_helpers.rb +0 -0
  167. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/metadata.rb +0 -0
  168. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/metadata_filter.rb +0 -0
  169. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/minitest_assertions_adapter.rb +0 -0
  170. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/mocking_adapters/flexmock.rb +0 -0
  171. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/mocking_adapters/mocha.rb +0 -0
  172. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/mocking_adapters/null.rb +0 -0
  173. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/mocking_adapters/rr.rb +0 -0
  174. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/mocking_adapters/rspec.rb +0 -0
  175. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/notifications.rb +0 -0
  176. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/option_parser.rb +0 -0
  177. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/ordering.rb +0 -0
  178. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/output_wrapper.rb +0 -0
  179. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/pending.rb +0 -0
  180. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/profiler.rb +0 -0
  181. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/project_initializer.rb +0 -0
  182. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/project_initializer/.rspec +0 -0
  183. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/project_initializer/spec/spec_helper.rb +0 -0
  184. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/rake_task.rb +0 -0
  185. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/reporter.rb +0 -0
  186. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/ruby_project.rb +0 -0
  187. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/runner.rb +0 -0
  188. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/sandbox.rb +0 -0
  189. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/set.rb +0 -0
  190. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/shared_context.rb +0 -0
  191. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/shared_example_group.rb +0 -0
  192. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/shell_escape.rb +0 -0
  193. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/test_unit_assertions_adapter.rb +0 -0
  194. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/version.rb +1 -1
  195. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/warnings.rb +0 -0
  196. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.9.2 → rspec-core-3.9.3}/lib/rspec/core/world.rb +1 -0
  197. data/vendor/bundle/ruby/2.6.0/specifications/{crack-0.4.3.gemspec → crack-0.4.4.gemspec} +3 -15
  198. data/vendor/bundle/ruby/2.6.0/specifications/{rspec-core-3.9.2.gemspec → rspec-core-3.9.3.gemspec} +5 -5
  199. data/vendor/bundle/ruby/2.6.0/specifications/sys-uname-1.2.1.gemspec +1 -1
  200. metadata +213 -260
  201. data/docs/EntitlementTokenMetric.md +0 -9
  202. data/vendor/bundle/ruby/2.6.0/bin/safe_yaml +0 -27
  203. data/vendor/bundle/ruby/2.6.0/cache/crack-0.4.3.gem +0 -0
  204. data/vendor/bundle/ruby/2.6.0/cache/rspec-core-3.9.2.gem +0 -0
  205. data/vendor/bundle/ruby/2.6.0/cache/safe_yaml-1.0.5.gem +0 -0
  206. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/.gitignore +0 -8
  207. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/.travis.yml +0 -14
  208. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/Gemfile +0 -5
  209. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/History +0 -25
  210. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/LICENSE +0 -20
  211. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/README.md +0 -46
  212. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/crack.gemspec +0 -20
  213. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/lib/crack/version.rb +0 -3
  214. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/script/bootstrap +0 -21
  215. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/script/release +0 -42
  216. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/script/test +0 -25
  217. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/data/large_dataset.json +0 -139988
  218. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/data/twittersearch-firefox.json +0 -1
  219. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/data/twittersearch-ie.json +0 -1
  220. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/hash_test.rb +0 -26
  221. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/json_test.rb +0 -91
  222. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/parser_test.rb +0 -27
  223. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/string_test.rb +0 -31
  224. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/test_helper.rb +0 -3
  225. data/vendor/bundle/ruby/2.6.0/gems/crack-0.4.3/test/xml_test.rb +0 -514
  226. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/.gitignore +0 -3
  227. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/.travis.yml +0 -48
  228. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/CHANGES.md +0 -154
  229. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/Gemfile +0 -11
  230. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/LICENSE.txt +0 -22
  231. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/README.md +0 -191
  232. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/Rakefile +0 -26
  233. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/bin/safe_yaml +0 -75
  234. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/bundle_install_all_ruby_versions.sh +0 -11
  235. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml.rb +0 -94
  236. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/deep.rb +0 -34
  237. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/libyaml_checker.rb +0 -36
  238. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/load.rb +0 -181
  239. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/parse/date.rb +0 -37
  240. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/parse/hexadecimal.rb +0 -12
  241. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/parse/sexagesimal.rb +0 -26
  242. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/psych_handler.rb +0 -99
  243. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/psych_resolver.rb +0 -52
  244. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/resolver.rb +0 -94
  245. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/safe_to_ruby_visitor.rb +0 -29
  246. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/store.rb +0 -39
  247. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/syck_hack.rb +0 -36
  248. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/syck_node_monkeypatch.rb +0 -43
  249. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/syck_resolver.rb +0 -38
  250. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform.rb +0 -41
  251. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_boolean.rb +0 -21
  252. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_date.rb +0 -13
  253. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_float.rb +0 -33
  254. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_integer.rb +0 -26
  255. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_nil.rb +0 -18
  256. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/to_symbol.rb +0 -17
  257. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/transform/transformation_map.rb +0 -47
  258. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/lib/safe_yaml/version.rb +0 -3
  259. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/run_specs_all_ruby_versions.sh +0 -38
  260. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/safe_yaml.gemspec +0 -19
  261. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/exploit.1.9.2.yaml +0 -2
  262. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/exploit.1.9.3.yaml +0 -2
  263. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/issue48.txt +0 -20
  264. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/issue49.yml +0 -0
  265. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/libyaml_checker_spec.rb +0 -69
  266. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/psych_resolver_spec.rb +0 -10
  267. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/resolver_specs.rb +0 -278
  268. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/safe_yaml_spec.rb +0 -731
  269. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/spec_helper.rb +0 -42
  270. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/store_spec.rb +0 -57
  271. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/support/exploitable_back_door.rb +0 -29
  272. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/syck_resolver_spec.rb +0 -10
  273. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/base64_spec.rb +0 -11
  274. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/to_date_spec.rb +0 -60
  275. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/to_float_spec.rb +0 -42
  276. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/to_integer_spec.rb +0 -64
  277. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/to_symbol_spec.rb +0 -51
  278. data/vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/yaml_spec.rb +0 -15
  279. data/vendor/bundle/ruby/2.6.0/specifications/safe_yaml-1.0.5.gemspec +0 -23
@@ -1,5 +1,5 @@
1
1
  current directory: /home/circleci/project/bindings/ruby/src/vendor/bundle/ruby/2.6.0/gems/autotest-fsevent-0.2.17/ext/fsevent
2
- /usr/local/bin/ruby -I /usr/local/lib/ruby/2.6.0 -r ./siteconf20200904-893-pppobg.rb extconf.rb
2
+ /usr/local/bin/ruby -I /usr/local/lib/ruby/2.6.0 -r ./siteconf20201020-897-63d4pt.rb extconf.rb
3
3
 
4
4
  current directory: /home/circleci/project/bindings/ruby/src/vendor/bundle/ruby/2.6.0/gems/autotest-fsevent-0.2.17/ext/fsevent
5
5
  make "DESTDIR=" clean
@@ -1,5 +1,5 @@
1
1
  current directory: /home/circleci/project/bindings/ruby/src/vendor/bundle/ruby/2.6.0/gems/ffi-1.13.1/ext/ffi_c
2
- /usr/local/bin/ruby -I /usr/local/lib/ruby/2.6.0 -r ./siteconf20200904-893-1iqqg53.rb extconf.rb
2
+ /usr/local/bin/ruby -I /usr/local/lib/ruby/2.6.0 -r ./siteconf20201020-897-1sf57qw.rb extconf.rb
3
3
  checking for ffi_prep_closure_loc() in -lffi... yes
4
4
  checking for ffi_prep_cif_var()... yes
5
5
  checking for ffi_raw_call()... yes
@@ -39,4 +39,4 @@ linking shared-object ffi_c.so
39
39
 
40
40
  current directory: /home/circleci/project/bindings/ruby/src/vendor/bundle/ruby/2.6.0/gems/ffi-1.13.1/ext/ffi_c
41
41
  make "DESTDIR=" install
42
- /usr/bin/install -c -m 0755 ffi_c.so ./.gem.20200904-893-1y5wou6
42
+ /usr/bin/install -c -m 0755 ffi_c.so ./.gem.20201020-897-14uk2j8
@@ -1,5 +1,5 @@
1
1
  current directory: /home/circleci/project/bindings/ruby/src/vendor/bundle/ruby/2.6.0/gems/json-2.3.1/ext/json
2
- /usr/local/bin/ruby -I /usr/local/lib/ruby/2.6.0 -r ./siteconf20200904-893-1lxegy6.rb extconf.rb
2
+ /usr/local/bin/ruby -I /usr/local/lib/ruby/2.6.0 -r ./siteconf20201020-897-1gytitg.rb extconf.rb
3
3
  creating Makefile
4
4
 
5
5
  current directory: /home/circleci/project/bindings/ruby/src/vendor/bundle/ruby/2.6.0/gems/json-2.3.1/ext/json
@@ -3,34 +3,21 @@
3
3
  # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
4
4
  # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5
5
 
6
- require 'safe_yaml/load'
7
6
  require 'strscan'
8
7
 
9
8
  module Crack
10
9
  class JSON
11
10
  def self.parser_exceptions
12
- @parser_exceptions ||= begin
13
- exceptions = [ArgumentError]
14
-
15
- if const_defined?(:Psych)
16
- if Psych.const_defined?(:SyntaxError)
17
- exceptions << Psych::SyntaxError
18
- end
19
- end
20
-
21
- exceptions
22
- end
11
+ @parser_exceptions ||= [ArgumentError, Psych::SyntaxError]
23
12
  end
24
13
 
25
14
  def self.parse(json)
26
- args = [unescape(convert_json_to_yaml(json))]
27
- args << nil if SafeYAML::MULTI_ARGUMENT_YAML_LOAD
28
- args << { :whitelisted_tags => ['!ruby/regexp'] }
29
-
30
- SafeYAML.load(*args)
31
-
15
+ yaml = unescape(convert_json_to_yaml(json))
16
+ YAML.safe_load(yaml, [Regexp, Date, Time])
32
17
  rescue *parser_exceptions
33
18
  raise ParseError, "Invalid JSON string"
19
+ rescue Psych::DisallowedClass
20
+ yaml
34
21
  end
35
22
 
36
23
  protected
@@ -0,0 +1,3 @@
1
+ module Crack
2
+ VERSION = "0.4.4"
3
+ end
@@ -31,8 +31,8 @@ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
31
31
  vendorarchdir = $(vendorlibdir)/$(sitearch)
32
32
  vendorlibdir = $(vendordir)/$(ruby_version)
33
33
  vendordir = $(rubylibprefix)/vendor_ruby
34
- sitearchdir = $(DESTDIR)./.gem.20200904-893-1y5wou6
35
- sitelibdir = $(DESTDIR)./.gem.20200904-893-1y5wou6
34
+ sitearchdir = $(DESTDIR)./.gem.20201020-897-14uk2j8
35
+ sitelibdir = $(DESTDIR)./.gem.20201020-897-14uk2j8
36
36
  sitedir = $(rubylibprefix)/site_ruby
37
37
  rubyarchdir = $(rubylibdir)/$(arch)
38
38
  rubylibdir = $(rubylibprefix)/$(ruby_version)
@@ -141,7 +141,7 @@ LIBS = $(LIBRUBYARG_SHARED) -lffi -lffi -lm -lc
141
141
  ORIG_SRCS = AbstractMemory.c ArrayType.c Buffer.c Call.c ClosurePool.c DynamicLibrary.c Function.c FunctionInfo.c LastError.c LongDouble.c MappedType.c MemoryPointer.c MethodHandle.c Platform.c Pointer.c Struct.c StructByValue.c StructLayout.c Thread.c Type.c Types.c Variadic.c ffi.c
142
142
  SRCS = $(ORIG_SRCS)
143
143
  OBJS = AbstractMemory.o ArrayType.o Buffer.o Call.o ClosurePool.o DynamicLibrary.o Function.o FunctionInfo.o LastError.o LongDouble.o MappedType.o MemoryPointer.o MethodHandle.o Platform.o Pointer.o Struct.o StructByValue.o StructLayout.o Thread.o Type.o Types.o Variadic.o ffi.o
144
- HDRS = $(srcdir)/rbffi_endian.h $(srcdir)/MethodHandle.h $(srcdir)/MemoryPointer.h $(srcdir)/Type.h $(srcdir)/LongDouble.h $(srcdir)/ArrayType.h $(srcdir)/StructByValue.h $(srcdir)/extconf.h $(srcdir)/Thread.h $(srcdir)/Types.h $(srcdir)/DynamicLibrary.h $(srcdir)/LastError.h $(srcdir)/ClosurePool.h $(srcdir)/AbstractMemory.h $(srcdir)/Pointer.h $(srcdir)/MappedType.h $(srcdir)/Struct.h $(srcdir)/Function.h $(srcdir)/Call.h $(srcdir)/compat.h $(srcdir)/rbffi.h $(srcdir)/Platform.h
144
+ HDRS = $(srcdir)/rbffi.h $(srcdir)/Call.h $(srcdir)/Function.h $(srcdir)/LongDouble.h $(srcdir)/LastError.h $(srcdir)/rbffi_endian.h $(srcdir)/Platform.h $(srcdir)/DynamicLibrary.h $(srcdir)/Pointer.h $(srcdir)/ArrayType.h $(srcdir)/StructByValue.h $(srcdir)/Type.h $(srcdir)/Thread.h $(srcdir)/Struct.h $(srcdir)/AbstractMemory.h $(srcdir)/MappedType.h $(srcdir)/compat.h $(srcdir)/extconf.h $(srcdir)/Types.h $(srcdir)/MemoryPointer.h $(srcdir)/MethodHandle.h $(srcdir)/ClosurePool.h
145
145
  LOCAL_HDRS =
146
146
  TARGET = ffi_c
147
147
  TARGET_NAME = ffi_c
@@ -1,3 +1,20 @@
1
+ # 3.9.3 / 2020-09-30
2
+ [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.9.2...v3.9.3)
3
+
4
+ Bug Fixes:
5
+
6
+ * Declare `ruby2_keywords` on `method_missing` for other gems. (Jon Rowe, #2731)
7
+ * Ensure custom error codes are returned from bisect runs. (Jon Rowe, #2732)
8
+ * Ensure `RSpec::Core::Configuration` predicate config methods return booleans.
9
+ (Marc-André Lafortune, #2736)
10
+ * Prevent `rspec --bisect` from generating zombie processes while executing
11
+ bisect runs. (Benoit Tigeot, Jon Rowe, #2739)
12
+ * Predicates for pending examples, (in `RSpec::Core::Example`, `#pending?`, `#skipped?` and
13
+ `#pending_fixed?`) now return boolean values rather than truthy values.
14
+ (Marc-André Lafortune, #2756, #2758)
15
+ * Exceptions which have a message which cannot be cast to a string will no longer
16
+ cause a crash. (Jon Rowe, #2761)
17
+
1
18
  ### 3.9.2 / 2020-05-02
2
19
  [Full Changelog](http://github.com/rspec/rspec-core/compare/v3.9.1...v3.9.2)
3
20
 
@@ -1,4 +1,4 @@
1
- # rspec-core [![Build Status](https://secure.travis-ci.org/rspec/rspec-core.svg?branch=master)](http://travis-ci.org/rspec/rspec-core) [![Code Climate](https://codeclimate.com/github/rspec/rspec-core.svg)](https://codeclimate.com/github/rspec/rspec-core)
1
+ # rspec-core [![Build Status](https://secure.travis-ci.org/rspec/rspec-core.svg?branch=main)](http://travis-ci.org/rspec/rspec-core) [![Code Climate](https://codeclimate.com/github/rspec/rspec-core.svg)](https://codeclimate.com/github/rspec/rspec-core)
2
2
 
3
3
  rspec-core provides the structure for writing executable examples of how your
4
4
  code should behave, and an `rspec` command with tools to constrain which
@@ -10,12 +10,12 @@ examples get run and tailor the output.
10
10
  gem install rspec-core # for rspec-core only
11
11
  rspec --help
12
12
 
13
- Want to run against the `master` branch? You'll need to include the dependent
13
+ Want to run against the `main` branch? You'll need to include the dependent
14
14
  RSpec repos as well. Add the following to your `Gemfile`:
15
15
 
16
16
  ```ruby
17
17
  %w[rspec rspec-core rspec-expectations rspec-mocks rspec-support].each do |lib|
18
- gem lib, :git => "https://github.com/rspec/#{lib}.git", :branch => 'master'
18
+ gem lib, :git => "https://github.com/rspec/#{lib}.git", :branch => 'main'
19
19
  end
20
20
  ```
21
21
 
@@ -6,7 +6,7 @@ module RSpec
6
6
  module Core
7
7
  module Bisect
8
8
  # A Bisect runner that runs requested subsets of the suite by forking
9
- # sub-processes. The master process bootstraps RSpec and the application
9
+ # sub-processes. The main process bootstraps RSpec and the application
10
10
  # environment (including preloading files specified via `--require`) so
11
11
  # that the individual spec runs do not have to re-pay that cost. Each
12
12
  # spec run happens in a forked process, ensuring that the spec files are
@@ -91,9 +91,12 @@ module RSpec
91
91
  end
92
92
 
93
93
  def dispatch_specs(run_descriptor)
94
- fork { run_specs(run_descriptor) }
94
+ pid = fork { run_specs(run_descriptor) }
95
95
  # We don't use Process.waitpid here as it was causing bisects to
96
- # block due to the file descriptor limit on OSX / Linux.
96
+ # block due to the file descriptor limit on OSX / Linux. We need
97
+ # to detach the process to avoid having zombie processes
98
+ # consuming slots in the kernel process table during bisect runs.
99
+ Process.detach(pid)
97
100
  end
98
101
 
99
102
  private
@@ -67,15 +67,17 @@ module RSpec
67
67
  end
68
68
 
69
69
  # @private
70
- def self.define_aliases(name, alias_name)
70
+ def self.define_alias(name, alias_name)
71
71
  alias_method alias_name, name
72
72
  alias_method "#{alias_name}=", "#{name}="
73
- define_predicate_for alias_name
73
+ define_predicate alias_name
74
74
  end
75
75
 
76
76
  # @private
77
- def self.define_predicate_for(*names)
78
- names.each { |name| alias_method "#{name}?", name }
77
+ def self.define_predicate(name)
78
+ define_method "#{name}?" do
79
+ !!send(name)
80
+ end
79
81
  end
80
82
 
81
83
  # @private
@@ -88,7 +90,7 @@ module RSpec
88
90
  add_read_only_setting name
89
91
 
90
92
  Array(opts[:alias_with]).each do |alias_name|
91
- define_aliases(name, alias_name)
93
+ define_alias(name, alias_name)
92
94
  end
93
95
  end
94
96
 
@@ -98,7 +100,7 @@ module RSpec
98
100
  def self.add_read_only_setting(name, opts={})
99
101
  raise "Use the instance add_setting method if you want to set a default" if opts.key?(:default)
100
102
  define_reader name
101
- define_predicate_for name
103
+ define_predicate name
102
104
  end
103
105
 
104
106
  # @macro [attach] add_setting
@@ -312,7 +314,8 @@ module RSpec
312
314
  # Report the times for the slowest examples (default: `false`).
313
315
  # Use this to specify the number of examples to include in the profile.
314
316
  # @return [Boolean]
315
- add_setting :profile_examples
317
+ attr_writer :profile_examples
318
+ define_predicate :profile_examples
316
319
 
317
320
  # @macro add_setting
318
321
  # Run all examples if none match the configured filters
@@ -231,8 +231,13 @@ module RSpec
231
231
  @example_group_class
232
232
  end
233
233
 
234
- alias_method :pending?, :pending
235
- alias_method :skipped?, :skip
234
+ def pending?
235
+ !!pending
236
+ end
237
+
238
+ def skipped?
239
+ !!skip
240
+ end
236
241
 
237
242
  # @api private
238
243
  # instance_execs the block passed to the constructor in the context of
@@ -577,7 +582,9 @@ module RSpec
577
582
  # this indicates whether or not it now passes.
578
583
  attr_accessor :pending_fixed
579
584
 
580
- alias pending_fixed? pending_fixed
585
+ def pending_fixed?
586
+ !!pending_fixed
587
+ end
581
588
 
582
589
  # @return [Boolean] Indicates if the example was completely skipped
583
590
  # (typically done via `:skip` metadata or the `skip` method). Skipped examples
@@ -761,8 +761,9 @@ module RSpec
761
761
  "on an example group (e.g. a `describe` or `context` block)."
762
762
  end
763
763
 
764
- super
764
+ super(name, *args)
765
765
  end
766
+ ruby2_keywords :method_missing if respond_to?(:ruby2_keywords, true)
766
767
  end
767
768
  # rubocop:enable Metrics/ClassLength
768
769
 
@@ -51,7 +51,7 @@ module RSpec
51
51
  cause << '--- Caused by: ---'
52
52
  cause << "#{exception_class_name(last_cause)}:" unless exception_class_name(last_cause) =~ /RSpec/
53
53
 
54
- encoded_string(last_cause.message.to_s).split("\n").each do |line|
54
+ encoded_string(exception_message_string(last_cause)).split("\n").each do |line|
55
55
  cause << " #{line}"
56
56
  end
57
57
 
@@ -174,10 +174,18 @@ module RSpec
174
174
  lines
175
175
  end
176
176
 
177
+ # rubocop:disable Lint/RescueException
178
+ def exception_message_string(exception)
179
+ exception.message.to_s
180
+ rescue Exception => other
181
+ "A #{exception.class} for which `exception.message.to_s` raises #{other.class}."
182
+ end
183
+ # rubocop:enable Lint/RescueException
184
+
177
185
  def exception_lines
178
186
  lines = []
179
187
  lines << "#{exception_class_name}:" unless exception_class_name =~ /RSpec/
180
- encoded_string(exception.message.to_s).split("\n").each do |line|
188
+ encoded_string(exception_message_string(exception)).split("\n").each do |line|
181
189
  lines << (line.empty? ? line : " #{line}")
182
190
  end
183
191
  lines
@@ -60,9 +60,10 @@ module RSpec
60
60
  # before(:example) # Declared in a parent group.
61
61
  # before(:example) # Declared in the current group.
62
62
  #
63
- # If more than one `before` is declared within any one scope, they are run
64
- # in the order in which they are declared. Any `around` hooks will execute
65
- # later than any `before` hook regardless of scope.
63
+ # If more than one `before` is declared within any one example group, they
64
+ # are run in the order in which they are declared. Any `around` hooks will
65
+ # execute after `before` context hooks but before any `before` example
66
+ # hook regardless of where they are declared.
66
67
  #
67
68
  # ### Conditions
68
69
  #
@@ -263,9 +264,10 @@ module RSpec
263
264
  # after(:suite) # Declared in RSpec.configure.
264
265
  #
265
266
  # This is the reverse of the order in which `before` hooks are run.
266
- # Similarly, if more than one `after` is declared within any one scope,
267
- # they are run in reverse order of that in which they are declared. Also
268
- # `around` hooks will all have run before any after hooks are invoked.
267
+ # Similarly, if more than one `after` is declared within any example
268
+ # group, they are run in reverse order of that in which they are declared.
269
+ # Also `around` hooks will run after any `after` example hooks are
270
+ # invoked but before any `after` context hooks.
269
271
  #
270
272
  # @note The `:example` and `:context` scopes are also available as
271
273
  # `:each` and `:all`, respectively. Use whichever you prefer.
@@ -310,7 +312,7 @@ module RSpec
310
312
  #
311
313
  # @note the syntax of `around` is similar to that of `before` and `after`
312
314
  # but the semantics are quite different. `before` and `after` hooks are
313
- # run in the context of of the examples with which they are associated,
315
+ # run in the context of the examples with which they are associated,
314
316
  # whereas `around` hooks are actually responsible for running the
315
317
  # examples. Consequently, `around` hooks do not have direct access to
316
318
  # resources that are made available within the examples and their
@@ -337,8 +339,11 @@ module RSpec
337
339
  #
338
340
  # ### Order
339
341
  #
340
- # All `around` hooks execute immediately surrounding an example, this means
341
- # that all `before` hooks will have run and no `after` hooks will have run yet.
342
+ # The `around` hooks execute surrounding an example and its hooks.
343
+ #
344
+ # This means after any `before` context hooks, but before any `before`
345
+ # example hooks, and similarly after any `after` example hooks but before
346
+ # any `after` context hooks.
342
347
  #
343
348
  # They are not a synonym for `before`/`after`.
344
349
  def around(*args, &block)
@@ -37,7 +37,7 @@ module RSpec
37
37
  runner, options.args, formatter
38
38
  )
39
39
 
40
- success ? 0 : 1
40
+ success ? 0 : runner.configuration.failure_exit_code
41
41
  end
42
42
 
43
43
  private