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,42 +0,0 @@
1
- HERE = File.dirname(__FILE__) unless defined?(HERE)
2
- ROOT = File.join(HERE, "..") unless defined?(ROOT)
3
-
4
- $LOAD_PATH << File.join(ROOT, "lib")
5
- $LOAD_PATH << File.join(HERE, "support")
6
-
7
- require "yaml"
8
- if ENV["YAMLER"] && defined?(YAML::ENGINE)
9
- YAML::ENGINE.yamler = ENV["YAMLER"]
10
- end
11
-
12
- ruby_version = defined?(JRUBY_VERSION) ? "JRuby #{JRUBY_VERSION} in #{RUBY_VERSION} mode" : "Ruby #{RUBY_VERSION}"
13
- yaml_engine = defined?(YAML::ENGINE) ? YAML::ENGINE.yamler : "syck"
14
- libyaml_version = yaml_engine == "psych" && Psych.const_defined?("LIBYAML_VERSION", false) ? Psych::LIBYAML_VERSION : "N/A"
15
-
16
- env_info = [
17
- ruby_version,
18
- "YAML: #{yaml_engine} (#{YAML::VERSION}) (libyaml: #{libyaml_version})",
19
- "Monkeypatch: #{ENV['MONKEYPATCH_YAML']}"
20
- ]
21
-
22
- puts env_info.join(", ")
23
-
24
- # Caching references to these methods before loading safe_yaml in order to test
25
- # that they aren't touched unless you actually require safe_yaml (see yaml_spec.rb).
26
- ORIGINAL_YAML_LOAD = YAML.method(:load)
27
- ORIGINAL_YAML_LOAD_FILE = YAML.method(:load_file)
28
-
29
- require "safe_yaml/load"
30
- require "ostruct"
31
- require "hashie"
32
- require "heredoc_unindent"
33
-
34
- # Stolen from Rails:
35
- # https://github.com/rails/rails/blob/3-2-stable/activesupport/lib/active_support/core_ext/kernel/reporting.rb#L10-25
36
- def silence_warnings
37
- $VERBOSE = nil; yield
38
- ensure
39
- $VERBOSE = true
40
- end
41
-
42
- require File.join(HERE, "resolver_specs")
@@ -1,57 +0,0 @@
1
- require 'spec_helper'
2
-
3
- require 'safe_yaml/store'
4
-
5
- describe SafeYAML::Store do
6
-
7
- let(:file) { 'spec/store.yaml' }
8
- let(:content) { "--- \nfoo: 42\n:bar: \"party\"\n" }
9
-
10
- before do
11
- # Rewrite file on every test, as its contents are potentially modified by
12
- # SafeYAML::Store#transaction
13
- File.open(file, 'w') { |f| f.write(content) }
14
- end
15
-
16
- def expect_safe_load(options = {})
17
- load_args = [content, options]
18
- load_args.insert(1, nil) if SafeYAML::YAML_ENGINE == 'psych'
19
-
20
- expect(SafeYAML).to receive(:load).with(*load_args).and_call_original
21
- expect(YAML).not_to receive(:load)
22
- end
23
-
24
- let(:init_args) { [file] }
25
- subject { described_class.new(*init_args) }
26
-
27
- it 'should be a YAML::Store' do
28
- expect(subject).to be_a(YAML::Store)
29
- end
30
-
31
- it 'should be a SafeYAML::Store' do
32
- expect(subject).to be_a(SafeYAML::Store)
33
- end
34
-
35
- it 'should use SafeYAML.load instead of YAML.load' do
36
- expect_safe_load
37
- expect(subject.transaction { subject['foo'] }).to eq(42)
38
- end
39
-
40
- it 'preserves default SafeYAML behavior' do
41
- expect(subject.transaction { subject[:bar] }).to eq(nil)
42
- expect(subject.transaction { subject[':bar'] }).to eq('party')
43
- end
44
-
45
-
46
- describe 'with options' do
47
-
48
- let(:init_args) { super().insert(2, :deserialize_symbols => true) }
49
-
50
- it 'should accept options for SafeYAML.load' do
51
- expect_safe_load(:deserialize_symbols => true)
52
- expect(subject.transaction { subject[:bar] }).to eq('party')
53
- end
54
-
55
- end
56
-
57
- end
@@ -1,29 +0,0 @@
1
- class ExploitableBackDoor
2
- def exploited?
3
- @exploited_through_setter || @exploited_through_init_with || @exploited_through_ivars
4
- end
5
-
6
- def exploited_through_setter?
7
- @exploited_through_setter
8
- end
9
-
10
- def exploited_through_init_with?
11
- @exploited_through_init_with
12
- end
13
-
14
- def exploited_through_ivars?
15
- self.instance_variables.any?
16
- end
17
-
18
- def init_with(command)
19
- # Note: this is how bad this COULD be.
20
- # system("#{command}")
21
- @exploited_through_init_with = true
22
- end
23
-
24
- def []=(command, arguments)
25
- # Note: this is how bad this COULD be.
26
- # system("#{command} #{arguments}")
27
- @exploited_through_setter = true
28
- end
29
- end
@@ -1,10 +0,0 @@
1
- require "spec_helper"
2
-
3
- if SafeYAML::YAML_ENGINE == "syck"
4
- require "safe_yaml/syck_resolver"
5
-
6
- describe SafeYAML::SyckResolver do
7
- include ResolverSpecs
8
- let(:resolver) { SafeYAML::SyckResolver.new }
9
- end
10
- end
@@ -1,11 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe SafeYAML::Transform do
4
- it "should return the same encoding when decoding Base64" do
5
- value = "c3VyZS4="
6
- decoded = SafeYAML::Transform.to_proper_type(value, false, "!binary")
7
-
8
- expect(decoded).to eq("sure.")
9
- expect(decoded.encoding).to eq(value.encoding) if decoded.respond_to?(:encoding)
10
- end
11
- end
@@ -1,60 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe SafeYAML::Transform::ToDate do
4
- it "returns true when the value matches a valid Date" do
5
- expect(subject.transform?("2013-01-01")).to eq([true, Date.parse("2013-01-01")])
6
- end
7
-
8
- it "returns false when the value does not match a valid Date" do
9
- expect(subject.transform?("foobar")).to be_falsey
10
- end
11
-
12
- it "returns false when the value does not end with a Date" do
13
- expect(subject.transform?("2013-01-01\nNOT A DATE")).to be_falsey
14
- end
15
-
16
- it "returns false when the value does not begin with a Date" do
17
- expect(subject.transform?("NOT A DATE\n2013-01-01")).to be_falsey
18
- end
19
-
20
- it "correctly parses the remaining formats of the YAML spec" do
21
- equivalent_values = [
22
- "2001-12-15T02:59:43.1Z", # canonical
23
- "2001-12-14t21:59:43.10-05:00", # iso8601
24
- "2001-12-14 21:59:43.10 -5", # space separated
25
- "2001-12-15 2:59:43.10" # no time zone (Z)
26
- ]
27
-
28
- equivalent_values.each do |value|
29
- success, result = subject.transform?(value)
30
- expect(success).to be_truthy
31
- expect(result).to eq(Time.utc(2001, 12, 15, 2, 59, 43, 100000))
32
- end
33
- end
34
-
35
- it "converts times to the local timezone" do
36
- success, result = subject.transform?("2012-12-01 10:33:45 +11:00")
37
- expect(success).to be_truthy
38
- expect(result).to eq(Time.utc(2012, 11, 30, 23, 33, 45))
39
- expect(result.gmt_offset).to eq(Time.local(2012, 11, 30).gmt_offset)
40
- end
41
-
42
- it "returns strings for invalid dates" do
43
- expect(subject.transform?("0000-00-00")).to eq([true, "0000-00-00"])
44
- expect(subject.transform?("2013-13-01")).to eq([true, "2013-13-01"])
45
- expect(subject.transform?("2014-01-32")).to eq([true, "2014-01-32"])
46
- end
47
-
48
- it "returns strings for invalid date/times" do
49
- expect(subject.transform?("0000-00-00 00:00:00 -0000")).to eq([true, "0000-00-00 00:00:00 -0000"])
50
- expect(subject.transform?("2013-13-01 21:59:43 -05:00")).to eq([true, "2013-13-01 21:59:43 -05:00"])
51
- expect(subject.transform?("2013-01-32 21:59:43 -05:00")).to eq([true, "2013-01-32 21:59:43 -05:00"])
52
- expect(subject.transform?("2013-01-30 25:59:43 -05:00")).to eq([true, "2013-01-30 25:59:43 -05:00"])
53
- expect(subject.transform?("2013-01-30 21:69:43 -05:00")).to eq([true, "2013-01-30 21:69:43 -05:00"])
54
-
55
- # Interesting. It seems that in some older Ruby versions, the below actually parses successfully
56
- # w/ DateTime.parse; but it fails w/ YAML.load. Whom to follow???
57
-
58
- # subject.transform?("2013-01-30 21:59:63 -05:00").should == [true, "2013-01-30 21:59:63 -05:00"]
59
- end
60
- end
@@ -1,42 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe SafeYAML::Transform::ToFloat do
4
- it "returns true when the value matches a valid Float" do
5
- expect(subject.transform?("20.00")).to eq([true, 20.0])
6
- end
7
-
8
- it "returns false when the value does not match a valid Float" do
9
- expect(subject.transform?("foobar")).to be_falsey
10
- end
11
-
12
- it "returns false when the value spans multiple lines" do
13
- expect(subject.transform?("20.00\nNOT A FLOAT")).to be_falsey
14
- end
15
-
16
- it "correctly parses all formats in the YAML spec" do
17
- # canonical
18
- expect(subject.transform?("6.8523015e+5")).to eq([true, 685230.15])
19
-
20
- # exponentioal
21
- expect(subject.transform?("685.230_15e+03")).to eq([true, 685230.15])
22
-
23
- # fixed
24
- expect(subject.transform?("685_230.15")).to eq([true, 685230.15])
25
-
26
- # sexagesimal
27
- expect(subject.transform?("190:20:30.15")).to eq([true, 685230.15])
28
-
29
- # infinity
30
- expect(subject.transform?("-.inf")).to eq([true, (-1.0 / 0.0)])
31
-
32
- # not a number
33
- # NOTE: can't use == here since NaN != NaN
34
- success, result = subject.transform?(".NaN")
35
- expect(success).to be_truthy; expect(result).to be_nan
36
- end
37
-
38
- # issue 29
39
- it "returns false for the string '.'" do
40
- expect(subject.transform?(".")).to be_falsey
41
- end
42
- end
@@ -1,64 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe SafeYAML::Transform::ToInteger do
4
- it "returns true when the value matches a valid Integer" do
5
- expect(subject.transform?("10")).to eq([true, 10])
6
- end
7
-
8
- it "returns false when the value does not match a valid Integer" do
9
- expect(subject.transform?("foobar")).to be_falsey
10
- end
11
-
12
- it "returns false when the value spans multiple lines" do
13
- expect(subject.transform?("10\nNOT AN INTEGER")).to be_falsey
14
- end
15
-
16
- it "allows commas in the number" do
17
- expect(subject.transform?("1,000")).to eq([true, 1000])
18
- end
19
-
20
- it "correctly parses numbers in octal format" do
21
- expect(subject.transform?("010")).to eq([true, 8])
22
- end
23
-
24
- it "correctly parses numbers in hexadecimal format" do
25
- expect(subject.transform?("0x1FF")).to eq([true, 511])
26
- end
27
-
28
- it "defaults to a string for a number that resembles octal format but is not" do
29
- expect(subject.transform?("09")).to be_falsey
30
- end
31
-
32
- it "correctly parses 0 in decimal" do
33
- expect(subject.transform?("0")).to eq([true, 0])
34
- end
35
-
36
- it "defaults to a string for a number that resembles hexadecimal format but is not" do
37
- expect(subject.transform?("0x1G")).to be_falsey
38
- end
39
-
40
- it "correctly parses all formats in the YAML spec" do
41
- # canonical
42
- expect(subject.transform?("685230")).to eq([true, 685230])
43
-
44
- # decimal
45
- expect(subject.transform?("+685_230")).to eq([true, 685230])
46
-
47
- # octal
48
- expect(subject.transform?("02472256")).to eq([true, 685230])
49
-
50
- # hexadecimal:
51
- expect(subject.transform?("0x_0A_74_AE")).to eq([true, 685230])
52
-
53
- # binary
54
- expect(subject.transform?("0b1010_0111_0100_1010_1110")).to eq([true, 685230])
55
-
56
- # sexagesimal
57
- expect(subject.transform?("190:20:30")).to eq([true, 685230])
58
- end
59
-
60
- # see https://github.com/dtao/safe_yaml/pull/51
61
- it "strips out underscores before parsing decimal values" do
62
- expect(subject.transform?("_850_")).to eq([true, 850])
63
- end
64
- end
@@ -1,51 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe SafeYAML::Transform::ToSymbol do
4
- def with_symbol_deserialization_value(value)
5
- symbol_deserialization_flag = SafeYAML::OPTIONS[:deserialize_symbols]
6
- SafeYAML::OPTIONS[:deserialize_symbols] = value
7
-
8
- yield
9
-
10
- ensure
11
- SafeYAML::OPTIONS[:deserialize_symbols] = symbol_deserialization_flag
12
- end
13
-
14
- def with_symbol_deserialization(&block)
15
- with_symbol_deserialization_value(true, &block)
16
- end
17
-
18
- def without_symbol_deserialization(&block)
19
- with_symbol_deserialization_value(false, &block)
20
- end
21
-
22
- it "returns true when the value matches a valid Symbol" do
23
- with_symbol_deserialization { expect(subject.transform?(":foo")[0]).to be_truthy }
24
- end
25
-
26
- it "returns true when the value matches a valid String+Symbol" do
27
- with_symbol_deserialization { expect(subject.transform?(':"foo"')[0]).to be_truthy }
28
- end
29
-
30
- it "returns true when the value matches a valid String+Symbol with 's" do
31
- with_symbol_deserialization { expect(subject.transform?(":'foo'")[0]).to be_truthy }
32
- end
33
-
34
- it "returns true when the value has special characters and is wrapped in a String" do
35
- with_symbol_deserialization { expect(subject.transform?(':"foo.bar"')[0]).to be_truthy }
36
- end
37
-
38
- it "returns false when symbol deserialization is disabled" do
39
- without_symbol_deserialization { expect(subject.transform?(":foo")).to be_falsey }
40
- end
41
-
42
- it "returns false when the value does not match a valid Symbol" do
43
- with_symbol_deserialization { expect(subject.transform?("foo")).to be_falsey }
44
- end
45
-
46
- it "returns false when the symbol does not begin the line" do
47
- with_symbol_deserialization do
48
- expect(subject.transform?("NOT A SYMBOL\n:foo")).to be_falsey
49
- end
50
- end
51
- end
@@ -1,15 +0,0 @@
1
- # See https://github.com/dtao/safe_yaml/issues/47
2
-
3
- require "spec_helper"
4
-
5
- describe YAML do
6
- context "when you've only required safe_yaml/load", :libraries => true do
7
- it "YAML.load doesn't get monkey patched" do
8
- expect(YAML.method(:load)).to eq(ORIGINAL_YAML_LOAD)
9
- end
10
-
11
- it "YAML.load_file doesn't get monkey patched" do
12
- expect(YAML.method(:load_file)).to eq(ORIGINAL_YAML_LOAD_FILE)
13
- end
14
- end
15
- end
@@ -1,23 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- # stub: safe_yaml 1.0.5 ruby lib
3
-
4
- Gem::Specification.new do |s|
5
- s.name = "safe_yaml".freeze
6
- s.version = "1.0.5"
7
-
8
- s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
- s.require_paths = ["lib".freeze]
10
- s.authors = ["Dan Tao".freeze]
11
- s.date = "2019-02-22"
12
- s.description = "Parse YAML safely".freeze
13
- s.email = "daniel.tao@gmail.com".freeze
14
- s.executables = ["safe_yaml".freeze]
15
- s.files = ["bin/safe_yaml".freeze]
16
- s.homepage = "https://github.com/dtao/safe_yaml".freeze
17
- s.licenses = ["MIT".freeze]
18
- s.required_ruby_version = Gem::Requirement.new(">= 1.8.7".freeze)
19
- s.rubygems_version = "3.0.3".freeze
20
- s.summary = "SameYAML provides an alternative implementation of YAML.load suitable for accepting user input in Ruby applications.".freeze
21
-
22
- s.installed_by_version = "3.0.3" if s.respond_to? :installed_by_version
23
- end