cloudsmith-api 2.0.10 → 2.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (182) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -5
  3. data/README.md +13 -4
  4. data/build.json +1 -1
  5. data/docs/ReposApi.md +377 -0
  6. data/docs/StatusBasic.md +1 -1
  7. data/docs/SwiftPackageUpload.md +7 -2
  8. data/docs/SwiftPackageUploadRequest.md +7 -0
  9. data/docs/SwiftUpstream.md +23 -0
  10. data/docs/SwiftUpstreamRequest.md +20 -0
  11. data/docs/SwiftUpstreamRequestPatch.md +20 -0
  12. data/lib/cloudsmith-api/api/repos_api.rb +395 -0
  13. data/lib/cloudsmith-api/models/status_basic.rb +1 -1
  14. data/lib/cloudsmith-api/models/swift_package_upload.rb +62 -1
  15. data/lib/cloudsmith-api/models/swift_package_upload_request.rb +81 -1
  16. data/lib/cloudsmith-api/models/swift_upstream.rb +393 -0
  17. data/lib/cloudsmith-api/models/swift_upstream_request.rb +365 -0
  18. data/lib/cloudsmith-api/models/swift_upstream_request_patch.rb +355 -0
  19. data/lib/cloudsmith-api/version.rb +1 -1
  20. data/lib/cloudsmith-api.rb +3 -0
  21. data/spec/api/repos_api_spec.rb +87 -0
  22. data/spec/models/swift_package_upload_request_spec.rb +42 -0
  23. data/spec/models/swift_package_upload_spec.rb +30 -0
  24. data/spec/models/swift_upstream_request_patch_spec.rb +121 -0
  25. data/spec/models/swift_upstream_request_spec.rb +121 -0
  26. data/spec/models/swift_upstream_spec.rb +139 -0
  27. data/vendor/bundle/ruby/2.6.0/cache/bigdecimal-3.1.7.gem +0 -0
  28. data/vendor/bundle/ruby/2.6.0/cache/json-2.7.2.gem +0 -0
  29. data/vendor/bundle/ruby/2.6.0/cache/public_suffix-5.0.5.gem +0 -0
  30. data/vendor/bundle/ruby/2.6.0/cache/rspec-support-3.13.1.gem +0 -0
  31. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.21/gem_make.out +1 -1
  32. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/bigdecimal.so +0 -0
  33. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/gem_make.out +6 -6
  34. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/mkmf.log +10 -10
  35. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.16.3/gem_make.out +2 -2
  36. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.16.3/mkmf.log +1 -1
  37. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{json-2.7.1 → json-2.7.2}/gem_make.out +5 -5
  38. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.2/json/ext/generator.so +0 -0
  39. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.2/json/ext/parser.so +0 -0
  40. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{json-2.7.1 → json-2.7.2}/mkmf.log +2 -2
  41. data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/Makefile +2 -2
  42. data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/bigdecimal.c +1 -1
  43. data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/bigdecimal.o +0 -0
  44. data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/bigdecimal.so +0 -0
  45. data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/missing.o +0 -0
  46. data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal.so +0 -0
  47. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.16.3/ext/ffi_c/Makefile +2 -2
  48. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/README.md +0 -9
  49. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/Makefile +2 -2
  50. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/generator/Makefile +2 -2
  51. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/generator/generator.c +36 -6
  52. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.2/ext/json/ext/generator/generator.o +0 -0
  53. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.2/ext/json/ext/generator/generator.so +0 -0
  54. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/Makefile +2 -2
  55. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/parser.o +0 -0
  56. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.2/ext/json/ext/parser/parser.so +0 -0
  57. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/ostruct.rb +5 -2
  58. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/common.rb +2 -1
  59. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.2/lib/json/ext/generator.so +0 -0
  60. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.2/lib/json/ext/parser.so +0 -0
  61. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/generic_object.rb +6 -2
  62. data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/version.rb +1 -1
  63. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/CHANGELOG.md +7 -1
  64. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/LICENSE.txt +1 -1
  65. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/README.md +1 -1
  66. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/data/list.txt +239 -80
  67. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/lib/public_suffix/domain.rb +1 -1
  68. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/lib/public_suffix/errors.rb +1 -1
  69. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/lib/public_suffix/list.rb +1 -1
  70. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/lib/public_suffix/rule.rb +1 -1
  71. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/lib/public_suffix/version.rb +2 -2
  72. data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/lib/public_suffix.rb +1 -1
  73. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/Changelog.md +9 -1
  74. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/caller_filter.rb +1 -1
  75. data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/version.rb +1 -1
  76. data/vendor/bundle/ruby/2.6.0/specifications/{bigdecimal-3.1.6.gemspec → bigdecimal-3.1.7.gemspec} +3 -3
  77. data/vendor/bundle/ruby/2.6.0/specifications/{json-2.7.1.gemspec → json-2.7.2.gemspec} +0 -0
  78. data/vendor/bundle/ruby/2.6.0/specifications/{public_suffix-5.0.4.gemspec → public_suffix-5.0.5.gemspec} +4 -4
  79. data/vendor/bundle/ruby/2.6.0/specifications/{rspec-support-3.13.0.gemspec → rspec-support-3.13.1.gemspec} +5 -5
  80. metadata +154 -142
  81. data/vendor/bundle/ruby/2.6.0/cache/bigdecimal-3.1.6.gem +0 -0
  82. data/vendor/bundle/ruby/2.6.0/cache/json-2.7.1.gem +0 -0
  83. data/vendor/bundle/ruby/2.6.0/cache/public_suffix-5.0.4.gem +0 -0
  84. data/vendor/bundle/ruby/2.6.0/cache/rspec-support-3.13.0.gem +0 -0
  85. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.1/json/ext/generator.so +0 -0
  86. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.1/json/ext/parser.so +0 -0
  87. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.1/ext/json/ext/generator/generator.o +0 -0
  88. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.1/ext/json/ext/generator/generator.so +0 -0
  89. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.1/ext/json/ext/parser/parser.so +0 -0
  90. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.1/lib/json/ext/generator.so +0 -0
  91. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.1/lib/json/ext/parser.so +0 -0
  92. /data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/gem.build_complete +0 -0
  93. /data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/{json-2.7.1 → json-2.7.2}/gem.build_complete +0 -0
  94. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/LICENSE +0 -0
  95. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/bigdecimal.gemspec +0 -0
  96. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/.sitearchdir.time +0 -0
  97. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/bigdecimal.h +0 -0
  98. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/bits.h +0 -0
  99. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/extconf.rb +0 -0
  100. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/feature.h +0 -0
  101. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/missing/dtoa.c +0 -0
  102. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/missing.c +0 -0
  103. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/missing.h +0 -0
  104. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/ext/bigdecimal/static_assert.h +0 -0
  105. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal/jacobian.rb +0 -0
  106. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal/ludcmp.rb +0 -0
  107. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal/math.rb +0 -0
  108. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal/newton.rb +0 -0
  109. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal/util.rb +0 -0
  110. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/lib/bigdecimal.rb +0 -0
  111. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/sample/linear.rb +0 -0
  112. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/sample/nlsolve.rb +0 -0
  113. /data/vendor/bundle/ruby/2.6.0/gems/{bigdecimal-3.1.6 → bigdecimal-3.1.7}/sample/pi.rb +0 -0
  114. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/CHANGES.md +0 -0
  115. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/LICENSE +0 -0
  116. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/fbuffer/fbuffer.h +0 -0
  117. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/generator/.sitearchdir.-.json.-.ext.time +0 -0
  118. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/generator/depend +0 -0
  119. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/generator/extconf.rb +0 -0
  120. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/generator/generator.h +0 -0
  121. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/.sitearchdir.-.json.-.ext.time +0 -0
  122. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/depend +0 -0
  123. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/extconf.rb +0 -0
  124. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/parser.c +0 -0
  125. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/parser.h +0 -0
  126. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/ext/parser/parser.rl +0 -0
  127. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/ext/json/extconf.rb +0 -0
  128. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/json.gemspec +0 -0
  129. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/bigdecimal.rb +0 -0
  130. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/complex.rb +0 -0
  131. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/core.rb +0 -0
  132. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/date.rb +0 -0
  133. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/date_time.rb +0 -0
  134. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/exception.rb +0 -0
  135. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/range.rb +0 -0
  136. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/rational.rb +0 -0
  137. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/regexp.rb +0 -0
  138. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/set.rb +0 -0
  139. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/struct.rb +0 -0
  140. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/symbol.rb +0 -0
  141. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/add/time.rb +0 -0
  142. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/ext.rb +0 -0
  143. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/pure/generator.rb +0 -0
  144. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/pure/parser.rb +0 -0
  145. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json/pure.rb +0 -0
  146. /data/vendor/bundle/ruby/2.6.0/gems/{json-2.7.1 → json-2.7.2}/lib/json.rb +0 -0
  147. /data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/.yardopts +0 -0
  148. /data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/2.0-Upgrade.md +0 -0
  149. /data/vendor/bundle/ruby/2.6.0/gems/{public_suffix-5.0.4 → public_suffix-5.0.5}/SECURITY.md +0 -0
  150. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/LICENSE.md +0 -0
  151. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/README.md +0 -0
  152. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/comparable_version.rb +0 -0
  153. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/differ.rb +0 -0
  154. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/directory_maker.rb +0 -0
  155. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/encoded_string.rb +0 -0
  156. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/fuzzy_matcher.rb +0 -0
  157. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/hunk_generator.rb +0 -0
  158. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/matcher_definition.rb +0 -0
  159. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/method_signature_verifier.rb +0 -0
  160. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/mutex.rb +0 -0
  161. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/object_formatter.rb +0 -0
  162. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/recursive_const_methods.rb +0 -0
  163. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/reentrant_mutex.rb +0 -0
  164. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/ruby_features.rb +0 -0
  165. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/source/location.rb +0 -0
  166. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/source/node.rb +0 -0
  167. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/source/token.rb +0 -0
  168. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/source.rb +0 -0
  169. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/spec/deprecation_helpers.rb +0 -0
  170. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/spec/diff_helpers.rb +0 -0
  171. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/spec/formatting_support.rb +0 -0
  172. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/spec/in_sub_process.rb +0 -0
  173. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/spec/library_wide_checks.rb +0 -0
  174. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/spec/shell_out.rb +0 -0
  175. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/spec/stderr_splitter.rb +0 -0
  176. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/spec/string_matcher.rb +0 -0
  177. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/spec/with_isolated_directory.rb +0 -0
  178. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/spec/with_isolated_stderr.rb +0 -0
  179. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/spec.rb +0 -0
  180. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/warnings.rb +0 -0
  181. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support/with_keywords_when_needed.rb +0 -0
  182. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.0 → rspec-support-3.13.1}/lib/rspec/support.rb +0 -0
@@ -867,7 +867,7 @@ json_object_i(VALUE key, VALUE val, VALUE _arg)
867
867
  if (klass == rb_cString) {
868
868
  key_to_s = key;
869
869
  } else if (klass == rb_cSymbol) {
870
- key_to_s = rb_id2str(SYM2ID(key));
870
+ key_to_s = rb_sym2str(key);
871
871
  } else {
872
872
  key_to_s = rb_funcall(key, i_to_s, 0);
873
873
  }
@@ -892,7 +892,6 @@ static void generate_json_object(FBuffer *buffer, VALUE Vstate, JSON_Generator_S
892
892
  struct hash_foreach_arg arg;
893
893
 
894
894
  if (max_nesting != 0 && depth > max_nesting) {
895
- fbuffer_free(buffer);
896
895
  rb_raise(eNestingError, "nesting of %ld is too deep", --state->depth);
897
896
  }
898
897
  fbuffer_append_char(buffer, '{');
@@ -927,7 +926,6 @@ static void generate_json_array(FBuffer *buffer, VALUE Vstate, JSON_Generator_St
927
926
  long depth = ++state->depth;
928
927
  int i, j;
929
928
  if (max_nesting != 0 && depth > max_nesting) {
930
- fbuffer_free(buffer);
931
929
  rb_raise(eNestingError, "nesting of %ld is too deep", --state->depth);
932
930
  }
933
931
  fbuffer_append_char(buffer, '[');
@@ -1020,10 +1018,8 @@ static void generate_json_float(FBuffer *buffer, VALUE Vstate, JSON_Generator_St
1020
1018
  VALUE tmp = rb_funcall(obj, i_to_s, 0);
1021
1019
  if (!allow_nan) {
1022
1020
  if (isinf(value)) {
1023
- fbuffer_free(buffer);
1024
1021
  rb_raise(eGeneratorError, "%"PRIsVALUE" not allowed in JSON", RB_OBJ_STRING(tmp));
1025
1022
  } else if (isnan(value)) {
1026
- fbuffer_free(buffer);
1027
1023
  rb_raise(eGeneratorError, "%"PRIsVALUE" not allowed in JSON", RB_OBJ_STRING(tmp));
1028
1024
  }
1029
1025
  }
@@ -1096,11 +1092,45 @@ static FBuffer *cState_prepare_buffer(VALUE self)
1096
1092
  return buffer;
1097
1093
  }
1098
1094
 
1095
+ struct generate_json_data {
1096
+ FBuffer *buffer;
1097
+ VALUE vstate;
1098
+ JSON_Generator_State *state;
1099
+ VALUE obj;
1100
+ };
1101
+
1102
+ static VALUE generate_json_try(VALUE d)
1103
+ {
1104
+ struct generate_json_data *data = (struct generate_json_data *)d;
1105
+
1106
+ generate_json(data->buffer, data->vstate, data->state, data->obj);
1107
+
1108
+ return Qnil;
1109
+ }
1110
+
1111
+ static VALUE generate_json_rescue(VALUE d, VALUE exc)
1112
+ {
1113
+ struct generate_json_data *data = (struct generate_json_data *)d;
1114
+ fbuffer_free(data->buffer);
1115
+
1116
+ rb_exc_raise(exc);
1117
+
1118
+ return Qundef;
1119
+ }
1120
+
1099
1121
  static VALUE cState_partial_generate(VALUE self, VALUE obj)
1100
1122
  {
1101
1123
  FBuffer *buffer = cState_prepare_buffer(self);
1102
1124
  GET_STATE(self);
1103
- generate_json(buffer, self, state, obj);
1125
+
1126
+ struct generate_json_data data = {
1127
+ .buffer = buffer,
1128
+ .vstate = self,
1129
+ .state = state,
1130
+ .obj = obj
1131
+ };
1132
+ rb_rescue(generate_json_try, (VALUE)&data, generate_json_rescue, (VALUE)&data);
1133
+
1104
1134
  return fbuffer_to_s(buffer);
1105
1135
  }
1106
1136
 
@@ -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.20240223-891-15jkeh4
35
- sitelibdir = $(DESTDIR)./.gem.20240223-891-15jkeh4
34
+ sitearchdir = $(DESTDIR)./.gem.20240404-883-pzunvc
35
+ sitelibdir = $(DESTDIR)./.gem.20240404-883-pzunvc
36
36
  sitedir = $(rubylibprefix)/site_ruby
37
37
  rubyarchdir = $(rubylibdir)/$(arch)
38
38
  rubylibdir = $(rubylibprefix)/$(ruby_version)
@@ -2,7 +2,10 @@
2
2
  unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
3
3
  require 'json'
4
4
  end
5
- require 'ostruct'
5
+ begin
6
+ require 'ostruct'
7
+ rescue LoadError
8
+ end
6
9
 
7
10
  class OpenStruct
8
11
 
@@ -48,4 +51,4 @@ class OpenStruct
48
51
  def to_json(*args)
49
52
  as_json.to_json(*args)
50
53
  end
51
- end
54
+ end if defined?(::OpenStruct)
@@ -1,8 +1,9 @@
1
1
  #frozen_string_literal: false
2
2
  require 'json/version'
3
- require 'json/generic_object'
4
3
 
5
4
  module JSON
5
+ autoload :GenericObject, 'json/generic_object'
6
+
6
7
  NOT_SET = Object.new.freeze
7
8
  private_constant :NOT_SET
8
9
 
@@ -1,5 +1,9 @@
1
1
  #frozen_string_literal: false
2
- require 'ostruct'
2
+ begin
3
+ require 'ostruct'
4
+ rescue LoadError
5
+ warn "JSON::GenericObject requires 'ostruct'. Please install it with `gem install ostruct`."
6
+ end
3
7
 
4
8
  module JSON
5
9
  class GenericObject < OpenStruct
@@ -67,5 +71,5 @@ module JSON
67
71
  def to_json(*a)
68
72
  as_json.to_json(*a)
69
73
  end
70
- end
74
+ end if defined?(::OpenStruct)
71
75
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: false
2
2
  module JSON
3
3
  # JSON version
4
- VERSION = '2.7.1'
4
+ VERSION = '2.7.2'
5
5
  VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
6
6
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
7
7
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
@@ -2,11 +2,17 @@
2
2
 
3
3
  This project uses [Semantic Versioning 2.0.0](https://semver.org/).
4
4
 
5
+ ## 5.0.5
6
+
7
+ ### Changed
8
+
9
+ - Updated definitions.
10
+
5
11
  ## 5.0.4
6
12
 
7
13
  ### Changed
8
14
 
9
- - Reduced .gem file size (GH-259). [Thanks @ybiquitous]
15
+ - Reduced .gem file size (GH-258). [Thanks @ybiquitous]
10
16
  - Updated definitions.
11
17
 
12
18
  ## 5.0.3
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009-2023 Simone Carletti <weppos@weppos.net>
1
+ Copyright (c) 2009-2024 Simone Carletti <weppos@weppos.net>
2
2
 
3
3
  MIT License
4
4
 
@@ -209,7 +209,7 @@ See the [CHANGELOG.md](CHANGELOG.md) file for details.
209
209
 
210
210
  ## License
211
211
 
212
- Copyright (c) 2009-2023 Simone Carletti. This is Free Software distributed under the MIT license.
212
+ Copyright (c) 2009-2024 Simone Carletti. This is Free Software distributed under the MIT license.
213
213
 
214
214
  The [Public Suffix List source](https://publicsuffix.org/list/) is subject to the terms of the Mozilla Public License, v. 2.0.
215
215