cloudsmith-api 2.0.24 → 2.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -7
- data/README.md +21 -5
- data/build.json +1 -1
- data/docs/AlpinePackageUpload.md +1 -0
- data/docs/AlpineUpstream.md +32 -0
- data/docs/AlpineUpstreamRequest.md +20 -0
- data/docs/AlpineUpstreamRequestPatch.md +20 -0
- data/docs/BulkActionApi.md +70 -0
- data/docs/CargoPackageUpload.md +1 -0
- data/docs/CargoUpstream.md +4 -4
- data/docs/CocoapodsPackageUpload.md +1 -0
- data/docs/ComposerPackageUpload.md +1 -0
- data/docs/ComposerUpstream.md +4 -4
- data/docs/ConanPackageUpload.md +1 -0
- data/docs/CondaPackageUpload.md +1 -0
- data/docs/CondaUpstream.md +4 -4
- data/docs/CranPackageUpload.md +1 -0
- data/docs/CranUpstream.md +4 -4
- data/docs/DartPackageUpload.md +1 -0
- data/docs/DartUpstream.md +4 -4
- data/docs/DebPackageUpload.md +1 -0
- data/docs/DebUpstream.md +4 -4
- data/docs/DockerPackageUpload.md +1 -0
- data/docs/DockerUpstream.md +2 -2
- data/docs/FormatSupportUpstream.md +1 -0
- data/docs/GenericPackageUpload.md +1 -0
- data/docs/GenericUpstream.md +4 -4
- data/docs/GoPackageUpload.md +1 -0
- data/docs/GoUpstream.md +4 -4
- data/docs/HelmPackageUpload.md +1 -0
- data/docs/HelmUpstream.md +4 -4
- data/docs/HexPackageUpload.md +1 -0
- data/docs/HexUpstream.md +4 -4
- data/docs/HuggingfacePackageUpload.md +1 -0
- data/docs/HuggingfaceUpstream.md +4 -4
- data/docs/LuarocksPackageUpload.md +1 -0
- data/docs/MavenPackageUpload.md +1 -0
- data/docs/MavenUpstream.md +4 -4
- data/docs/NpmPackageUpload.md +1 -0
- data/docs/NpmUpstream.md +5 -4
- data/docs/NpmUpstreamRequest.md +1 -0
- data/docs/NpmUpstreamRequestPatch.md +1 -0
- data/docs/NugetPackageUpload.md +1 -0
- data/docs/NugetUpstream.md +4 -4
- data/docs/OrganizationTeamMembers.md +1 -1
- data/docs/{OrganizationTeamMembership.md → OrganizationTeamServiceMember.md} +2 -1
- data/docs/P2PackageUpload.md +1 -0
- data/docs/Package.md +1 -0
- data/docs/PackageBulkAction.md +11 -0
- data/docs/PackageBulkActionResponse.md +10 -0
- data/docs/PackageCopy.md +1 -0
- data/docs/PackageMove.md +1 -0
- data/docs/PackageQuarantine.md +1 -0
- data/docs/PackageResync.md +1 -0
- data/docs/PackageTag.md +1 -0
- data/docs/PackagesApi.md +131 -0
- data/docs/PythonPackageUpload.md +1 -0
- data/docs/PythonUpstream.md +4 -4
- data/docs/RawPackageUpload.md +1 -0
- data/docs/ReposApi.md +406 -1
- data/docs/Repository.md +2 -0
- data/docs/RepositoryCreate.md +2 -0
- data/docs/RepositoryCreateRequest.md +1 -0
- data/docs/RepositoryRequestPatch.md +1 -0
- data/docs/RpmPackageUpload.md +1 -0
- data/docs/RpmUpstream.md +4 -4
- data/docs/RubyPackageUpload.md +1 -0
- data/docs/RubyUpstream.md +4 -4
- data/docs/SwiftPackageUpload.md +1 -0
- data/docs/SwiftUpstream.md +4 -4
- data/docs/TerraformPackageUpload.md +1 -0
- data/docs/VagrantPackageUpload.md +1 -0
- data/docs/VsxPackageUpload.md +91 -0
- data/docs/VsxPackageUploadRequest.md +10 -0
- data/lib/cloudsmith-api/api/bulk_action_api.rb +77 -0
- data/lib/cloudsmith-api/api/packages_api.rb +123 -0
- data/lib/cloudsmith-api/api/repos_api.rb +401 -0
- data/lib/cloudsmith-api/models/alpine_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/alpine_upstream.rb +496 -0
- data/lib/cloudsmith-api/models/alpine_upstream_request.rb +365 -0
- data/lib/cloudsmith-api/models/alpine_upstream_request_patch.rb +355 -0
- data/lib/cloudsmith-api/models/cargo_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/cargo_upstream.rb +7 -4
- data/lib/cloudsmith-api/models/cocoapods_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/composer_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/composer_upstream.rb +7 -4
- data/lib/cloudsmith-api/models/conan_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/conda_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/conda_upstream.rb +7 -4
- data/lib/cloudsmith-api/models/cran_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/cran_upstream.rb +7 -4
- data/lib/cloudsmith-api/models/dart_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/dart_upstream.rb +7 -4
- data/lib/cloudsmith-api/models/deb_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/deb_upstream.rb +7 -4
- data/lib/cloudsmith-api/models/docker_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/docker_upstream.rb +4 -2
- data/lib/cloudsmith-api/models/format_support_upstream.rb +19 -4
- data/lib/cloudsmith-api/models/generic_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/generic_upstream.rb +7 -4
- data/lib/cloudsmith-api/models/go_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/go_upstream.rb +7 -4
- data/lib/cloudsmith-api/models/helm_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/helm_upstream.rb +7 -4
- data/lib/cloudsmith-api/models/hex_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/hex_upstream.rb +7 -4
- data/lib/cloudsmith-api/models/huggingface_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/huggingface_upstream.rb +7 -4
- data/lib/cloudsmith-api/models/luarocks_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/maven_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/maven_upstream.rb +7 -4
- data/lib/cloudsmith-api/models/npm_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/npm_upstream.rb +32 -5
- data/lib/cloudsmith-api/models/npm_upstream_request.rb +25 -1
- data/lib/cloudsmith-api/models/npm_upstream_request_patch.rb +25 -1
- data/lib/cloudsmith-api/models/nuget_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/nuget_upstream.rb +7 -4
- data/lib/cloudsmith-api/models/organization_team_members.rb +1 -1
- data/lib/cloudsmith-api/models/{organization_team_membership.rb → organization_team_service_member.rb} +28 -5
- data/lib/cloudsmith-api/models/p2_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/package.rb +10 -1
- data/lib/cloudsmith-api/models/package_bulk_action.rb +261 -0
- data/lib/cloudsmith-api/models/package_bulk_action_response.rb +209 -0
- data/lib/cloudsmith-api/models/package_copy.rb +10 -1
- data/lib/cloudsmith-api/models/package_move.rb +10 -1
- data/lib/cloudsmith-api/models/package_quarantine.rb +10 -1
- data/lib/cloudsmith-api/models/package_resync.rb +10 -1
- data/lib/cloudsmith-api/models/package_tag.rb +10 -1
- data/lib/cloudsmith-api/models/python_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/python_upstream.rb +7 -4
- data/lib/cloudsmith-api/models/raw_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/repository.rb +21 -1
- data/lib/cloudsmith-api/models/repository_create.rb +21 -1
- data/lib/cloudsmith-api/models/repository_create_request.rb +11 -1
- data/lib/cloudsmith-api/models/repository_request_patch.rb +11 -1
- data/lib/cloudsmith-api/models/rpm_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/rpm_upstream.rb +7 -4
- data/lib/cloudsmith-api/models/ruby_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/ruby_upstream.rb +7 -4
- data/lib/cloudsmith-api/models/swift_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/swift_upstream.rb +7 -4
- data/lib/cloudsmith-api/models/terraform_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/vagrant_package_upload.rb +10 -1
- data/lib/cloudsmith-api/models/vsx_package_upload.rb +1001 -0
- data/lib/cloudsmith-api/models/vsx_package_upload_request.rb +210 -0
- data/lib/cloudsmith-api/version.rb +1 -1
- data/lib/cloudsmith-api.rb +9 -1
- data/spec/api/bulk_action_api_spec.rb +47 -0
- data/spec/api/packages_api_spec.rb +28 -0
- data/spec/api/repos_api_spec.rb +89 -0
- data/spec/models/alpine_package_upload_spec.rb +6 -0
- data/spec/models/alpine_upstream_request_patch_spec.rb +121 -0
- data/spec/models/alpine_upstream_request_spec.rb +121 -0
- data/spec/models/alpine_upstream_spec.rb +197 -0
- data/spec/models/cargo_package_upload_spec.rb +6 -0
- data/spec/models/cocoapods_package_upload_spec.rb +6 -0
- data/spec/models/composer_package_upload_spec.rb +6 -0
- data/spec/models/conan_package_upload_spec.rb +6 -0
- data/spec/models/conda_package_upload_spec.rb +6 -0
- data/spec/models/cran_package_upload_spec.rb +6 -0
- data/spec/models/dart_package_upload_spec.rb +6 -0
- data/spec/models/deb_package_upload_spec.rb +6 -0
- data/spec/models/docker_package_upload_spec.rb +6 -0
- data/spec/models/format_support_upstream_spec.rb +6 -0
- data/spec/models/generic_package_upload_spec.rb +6 -0
- data/spec/models/go_package_upload_spec.rb +6 -0
- data/spec/models/helm_package_upload_spec.rb +6 -0
- data/spec/models/hex_package_upload_spec.rb +6 -0
- data/spec/models/huggingface_package_upload_spec.rb +6 -0
- data/spec/models/luarocks_package_upload_spec.rb +6 -0
- data/spec/models/maven_package_upload_spec.rb +6 -0
- data/spec/models/npm_package_upload_spec.rb +6 -0
- data/spec/models/npm_upstream_request_patch_spec.rb +10 -0
- data/spec/models/npm_upstream_request_spec.rb +10 -0
- data/spec/models/npm_upstream_spec.rb +10 -0
- data/spec/models/nuget_package_upload_spec.rb +6 -0
- data/spec/models/{organization_team_membership_spec.rb → organization_team_service_member_spec.rb} +16 -6
- data/spec/models/p2_package_upload_spec.rb +6 -0
- data/spec/models/package_bulk_action_response_spec.rb +53 -0
- data/spec/models/package_bulk_action_spec.rb +63 -0
- data/spec/models/package_copy_spec.rb +6 -0
- data/spec/models/package_move_spec.rb +6 -0
- data/spec/models/package_quarantine_spec.rb +6 -0
- data/spec/models/package_resync_spec.rb +6 -0
- data/spec/models/package_spec.rb +6 -0
- data/spec/models/package_tag_spec.rb +6 -0
- data/spec/models/python_package_upload_spec.rb +6 -0
- data/spec/models/raw_package_upload_spec.rb +6 -0
- data/spec/models/repository_create_request_spec.rb +6 -0
- data/spec/models/repository_create_spec.rb +12 -0
- data/spec/models/repository_request_patch_spec.rb +6 -0
- data/spec/models/repository_spec.rb +12 -0
- data/spec/models/rpm_package_upload_spec.rb +6 -0
- data/spec/models/ruby_package_upload_spec.rb +6 -0
- data/spec/models/swift_package_upload_spec.rb +6 -0
- data/spec/models/terraform_package_upload_spec.rb +6 -0
- data/spec/models/vagrant_package_upload_spec.rb +6 -0
- data/spec/models/vsx_package_upload_request_spec.rb +53 -0
- data/spec/models/vsx_package_upload_spec.rb +543 -0
- data/vendor/bundle/ruby/2.6.0/cache/addressable-2.8.9.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/ethon-0.18.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/logger-1.7.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-mocks-3.13.8.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-support-3.13.7.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/typhoeus-1.6.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.3.1/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.0.1/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.0.1/mkmf.log +4 -4
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.3/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.8 → addressable-2.8.9}/CHANGELOG.md +10 -1
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.8 → addressable-2.8.9}/lib/addressable/idna/pure.rb +0 -10
- data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.8 → addressable-2.8.9}/lib/addressable/version.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/bigdecimal-4.0.1/ext/bigdecimal/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/CHANGELOG.md +46 -1
- data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/README.md +23 -0
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.18.0/ethon.gemspec +37 -0
- data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/curls/classes.rb +12 -2
- data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/curls/codes.rb +3 -2
- data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/curls/options.rb +4 -3
- data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/callbacks.rb +10 -3
- data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/informations.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/response_callbacks.rb +6 -1
- data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/loggable.rb +0 -1
- data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/version.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.17.3/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/generator/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/parser/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/.document +4 -0
- data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/.rdoc_options +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/BSDL +22 -0
- data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/COPYING +56 -0
- data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/README.md +104 -0
- data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/lib/logger/errors.rb +9 -0
- data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/lib/logger/formatter.rb +36 -0
- data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/lib/logger/log_device.rb +265 -0
- data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/lib/logger/period.rb +47 -0
- data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/lib/logger/severity.rb +38 -0
- data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/lib/logger/version.rb +5 -0
- data/vendor/bundle/ruby/2.6.0/gems/logger-1.7.0/lib/logger.rb +789 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/Changelog.md +9 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/any_instance/recorder.rb +3 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/order_group.rb +15 -4
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/version.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/Changelog.md +10 -3
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/fuzzy_matcher.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/version.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/CHANGELOG.md +14 -1
- data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/README.md +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/version.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/typhoeus.gemspec +1 -1
- data/vendor/bundle/ruby/2.6.0/specifications/{addressable-2.8.8.gemspec → addressable-2.8.9.gemspec} +3 -5
- data/vendor/bundle/ruby/2.6.0/specifications/{ethon-0.15.0.gemspec → ethon-0.18.0.gemspec} +8 -4
- data/vendor/bundle/ruby/2.6.0/specifications/logger-1.7.0.gemspec +22 -0
- data/vendor/bundle/ruby/2.6.0/specifications/{rspec-mocks-3.13.7.gemspec → rspec-mocks-3.13.8.gemspec} +5 -5
- data/vendor/bundle/ruby/2.6.0/specifications/{rspec-support-3.13.6.gemspec → rspec-support-3.13.7.gemspec} +4 -4
- data/vendor/bundle/ruby/2.6.0/specifications/{typhoeus-1.5.0.gemspec → typhoeus-1.6.0.gemspec} +5 -5
- metadata +265 -279
- data/vendor/bundle/ruby/2.6.0/cache/addressable-2.8.8.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/ethon-0.15.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-mocks-3.13.7.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-support-3.13.6.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/cache/typhoeus-1.5.0.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/Gemfile +0 -31
- data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/Rakefile +0 -37
- data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/addressable.gemspec +0 -28
- data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/spec/addressable/idna_spec.rb +0 -302
- data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/spec/addressable/net_http_compat_spec.rb +0 -29
- data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/spec/addressable/security_spec.rb +0 -58
- data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/spec/addressable/template_spec.rb +0 -1264
- data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/spec/addressable/uri_spec.rb +0 -6854
- data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/spec/spec_helper.rb +0 -33
- data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/tasks/clobber.rake +0 -4
- data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/tasks/gem.rake +0 -100
- data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/tasks/git.rake +0 -47
- data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/tasks/metrics.rake +0 -24
- data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/tasks/profile.rake +0 -72
- data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/tasks/rspec.rake +0 -23
- data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.8/tasks/yard.rake +0 -29
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/.github/workflows/ruby.yml +0 -41
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/.gitignore +0 -8
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/.rspec +0 -3
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/Gemfile +0 -43
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/Guardfile +0 -10
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/Rakefile +0 -40
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/ethon.gemspec +0 -26
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/profile/benchmarks.rb +0 -104
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/profile/memory_leaks.rb +0 -114
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/profile/perf_spec_helper.rb +0 -37
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/profile/support/memory_test_helpers.rb +0 -76
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/profile/support/os_memory_leak_tracker.rb +0 -48
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/profile/support/ruby_object_leak_tracker.rb +0 -49
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/curl_spec.rb +0 -38
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/callbacks_spec.rb +0 -59
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/debug_info_spec.rb +0 -54
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/features_spec.rb +0 -24
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/form_spec.rb +0 -104
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/header_spec.rb +0 -79
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/http/custom_spec.rb +0 -177
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/http/delete_spec.rb +0 -21
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/http/get_spec.rb +0 -126
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/http/head_spec.rb +0 -80
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/http/options_spec.rb +0 -51
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/http/patch_spec.rb +0 -51
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/http/post_spec.rb +0 -317
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/http/put_spec.rb +0 -168
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/http_spec.rb +0 -64
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/informations_spec.rb +0 -120
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/mirror_spec.rb +0 -47
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/operations_spec.rb +0 -268
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/options_spec.rb +0 -193
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/queryable_spec.rb +0 -235
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/response_callbacks_spec.rb +0 -152
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy/util_spec.rb +0 -28
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/easy_spec.rb +0 -203
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/libc_spec.rb +0 -14
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/loggable_spec.rb +0 -22
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/multi/operations_spec.rb +0 -298
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/multi/options_spec.rb +0 -182
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/multi/stack_spec.rb +0 -80
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/ethon/multi_spec.rb +0 -152
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/spec_helper.rb +0 -28
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/support/localhost_server.rb +0 -95
- data/vendor/bundle/ruby/2.6.0/gems/ethon-0.15.0/spec/support/server.rb +0 -115
- /data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.8 → addressable-2.8.9}/LICENSE.txt +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.8 → addressable-2.8.9}/README.md +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.8 → addressable-2.8.9}/lib/addressable/idna/native.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.8 → addressable-2.8.9}/lib/addressable/idna.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.8 → addressable-2.8.9}/lib/addressable/template.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.8 → addressable-2.8.9}/lib/addressable/uri.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.8 → addressable-2.8.9}/lib/addressable.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/LICENSE +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/curl.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/curls/constants.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/curls/form_options.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/curls/functions.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/curls/infos.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/curls/messages.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/curls/settings.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/debug_info.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/features.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/form.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/header.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http/actionable.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http/custom.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http/delete.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http/get.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http/head.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http/options.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http/patch.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http/post.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http/postable.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http/put.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http/putable.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/http.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/mirror.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/operations.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/options.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/params.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/queryable.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy/util.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/easy.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/errors/ethon_error.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/errors/global_init.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/errors/invalid_option.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/errors/invalid_value.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/errors/multi_add.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/errors/multi_fdset.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/errors/multi_remove.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/errors/multi_timeout.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/errors/select.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/errors.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/libc.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/multi/operations.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/multi/options.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/multi/stack.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon/multi.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{ethon-0.15.0 → ethon-0.18.0}/lib/ethon.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/.document +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/.yardopts +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/LICENSE.md +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/README.md +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/any_instance/chain.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/any_instance/error_generator.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/any_instance/expect_chain_chain.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/any_instance/expectation_chain.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/any_instance/message_chains.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/any_instance/proxy.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/any_instance/stub_chain.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/any_instance/stub_chain_chain.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/any_instance.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/argument_list_matcher.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/argument_matchers.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/configuration.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/error_generator.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/example_methods.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/instance_method_stasher.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/marshal_extension.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/matchers/expectation_customization.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/matchers/have_received.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/matchers/receive.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/matchers/receive_message_chain.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/matchers/receive_messages.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/message_chain.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/message_expectation.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/method_double.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/method_reference.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/minitest_integration.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/mutate_const.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/object_reference.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/proxy.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/space.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/standalone.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/syntax.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/targets.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/test_double.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/verifying_double.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/verifying_message_expectation.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks/verifying_proxy.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.13.7 → rspec-mocks-3.13.8}/lib/rspec/mocks.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/LICENSE.md +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/README.md +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/caller_filter.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/comparable_version.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/differ.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/directory_maker.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/encoded_string.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/hunk_generator.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/matcher_definition.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/method_signature_verifier.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/mutex.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/object_formatter.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/recursive_const_methods.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/reentrant_mutex.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/ruby_features.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/source/location.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/source/node.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/source/token.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/source.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/spec/deprecation_helpers.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/spec/diff_helpers.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/spec/formatting_support.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/spec/in_sub_process.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/spec/library_wide_checks.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/spec/shell_out.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/spec/stderr_splitter.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/spec/string_matcher.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/spec/with_isolated_directory.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/spec/with_isolated_stderr.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/spec.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/warnings.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support/with_keywords_when_needed.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.13.6 → rspec-support-3.13.7}/lib/rspec/support.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/CONTRIBUTING.md +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/LICENSE +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/UPGRADE.md +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/rack/typhoeus/middleware/params_decoder/helper.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/rack/typhoeus/middleware/params_decoder.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/rack/typhoeus.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/adapters/faraday.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/cache/dalli.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/cache/rails.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/cache/redis.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/config.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/easy_factory.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/errors/no_stub.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/errors/typhoeus_error.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/errors.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/expectation.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/hydra/addable.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/hydra/before.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/hydra/block_connection.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/hydra/cacheable.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/hydra/memoizable.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/hydra/queueable.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/hydra/runnable.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/hydra/stubbable.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/hydra.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/pool.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/railtie.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request/actions.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request/before.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request/block_connection.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request/cacheable.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request/callbacks.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request/marshal.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request/memoizable.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request/operations.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request/responseable.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request/streamable.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request/stubbable.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/request.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/response/cacheable.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/response/header.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/response/informations.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/response/status.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus/response.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{typhoeus-1.5.0 → typhoeus-1.6.0}/lib/typhoeus.rb +0 -0
|
@@ -1,317 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
require 'spec_helper'
|
|
3
|
-
|
|
4
|
-
describe Ethon::Easy::Http::Post do
|
|
5
|
-
let(:easy) { Ethon::Easy.new }
|
|
6
|
-
let(:url) { "http://localhost:3001/" }
|
|
7
|
-
let(:params) { nil }
|
|
8
|
-
let(:form) { nil }
|
|
9
|
-
let(:options) { Hash.new }
|
|
10
|
-
let(:post) { described_class.new(url, options.merge({:params => params, :body => form})) }
|
|
11
|
-
|
|
12
|
-
describe "#setup" do
|
|
13
|
-
context "when nothing" do
|
|
14
|
-
it "sets url" do
|
|
15
|
-
post.setup(easy)
|
|
16
|
-
expect(easy.url).to eq(url)
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
it "sets postfield_size" do
|
|
20
|
-
expect(easy).to receive(:postfieldsize=).with(0)
|
|
21
|
-
post.setup(easy)
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
it "sets copy_postfields" do
|
|
25
|
-
expect(easy).to receive(:copypostfields=).with("")
|
|
26
|
-
post.setup(easy)
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
it "makes a post request" do
|
|
30
|
-
post.setup(easy)
|
|
31
|
-
easy.perform
|
|
32
|
-
expect(easy.response_body).to include('"REQUEST_METHOD":"POST"')
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
context "when params" do
|
|
37
|
-
let(:params) { {:a => "1&"} }
|
|
38
|
-
|
|
39
|
-
it "attaches escaped to url" do
|
|
40
|
-
post.setup(easy)
|
|
41
|
-
expect(easy.url).to eq("#{url}?a=1%26")
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
context "with arrays" do
|
|
45
|
-
let(:params) { {:a => %w( foo bar )} }
|
|
46
|
-
|
|
47
|
-
context "by default" do
|
|
48
|
-
it "encodes them with indexes" do
|
|
49
|
-
post.setup(easy)
|
|
50
|
-
expect(easy.url).to eq("#{url}?a%5B0%5D=foo&a%5B1%5D=bar")
|
|
51
|
-
end
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
context "when params_encoding is :rack" do
|
|
55
|
-
let(:options) { {:params_encoding => :rack} }
|
|
56
|
-
it "encodes them without indexes" do
|
|
57
|
-
post.setup(easy)
|
|
58
|
-
expect(easy.url).to eq("#{url}?a%5B%5D=foo&a%5B%5D=bar")
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
context "with :escape" do
|
|
64
|
-
context 'missing' do
|
|
65
|
-
it "escapes values" do
|
|
66
|
-
post.setup(easy)
|
|
67
|
-
expect(easy.url).to eq("#{url}?a=1%26")
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
context 'nil' do
|
|
72
|
-
let(:options) { {:escape => nil} }
|
|
73
|
-
|
|
74
|
-
it "escapes values" do
|
|
75
|
-
post.setup(easy)
|
|
76
|
-
expect(easy.url).to eq("#{url}?a=1%26")
|
|
77
|
-
end
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
context 'true' do
|
|
81
|
-
let(:options) { {:escape => true} }
|
|
82
|
-
|
|
83
|
-
it "escapes values" do
|
|
84
|
-
post.setup(easy)
|
|
85
|
-
expect(easy.url).to eq("#{url}?a=1%26")
|
|
86
|
-
end
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
context 'false' do
|
|
90
|
-
let(:options) { {:escape => false} }
|
|
91
|
-
|
|
92
|
-
it "sends raw values" do
|
|
93
|
-
post.setup(easy)
|
|
94
|
-
expect(easy.url).to eq("#{url}?a=1&")
|
|
95
|
-
end
|
|
96
|
-
end
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
it "sets postfieldsize" do
|
|
100
|
-
expect(easy).to receive(:postfieldsize=).with(0)
|
|
101
|
-
post.setup(easy)
|
|
102
|
-
end
|
|
103
|
-
|
|
104
|
-
it "sets copypostfields" do
|
|
105
|
-
expect(easy).to receive(:copypostfields=).with("")
|
|
106
|
-
post.setup(easy)
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
context "when requesting" do
|
|
110
|
-
let(:postredir) { nil }
|
|
111
|
-
|
|
112
|
-
before do
|
|
113
|
-
easy.headers = { 'Expect' => '' }
|
|
114
|
-
post.setup(easy)
|
|
115
|
-
easy.postredir = postredir
|
|
116
|
-
easy.followlocation = true
|
|
117
|
-
easy.perform
|
|
118
|
-
end
|
|
119
|
-
|
|
120
|
-
it "is a post" do
|
|
121
|
-
expect(easy.response_body).to include('"REQUEST_METHOD":"POST"')
|
|
122
|
-
end
|
|
123
|
-
|
|
124
|
-
it "uses application/x-www-form-urlencoded content type" do
|
|
125
|
-
expect(easy.response_body).to include('"CONTENT_TYPE":"application/x-www-form-urlencoded"')
|
|
126
|
-
end
|
|
127
|
-
|
|
128
|
-
it "requests parameterized url" do
|
|
129
|
-
expect(easy.response_body).to include('"REQUEST_URI":"http://localhost:3001/?a=1%26"')
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
context "when redirection" do
|
|
133
|
-
let(:url) { "localhost:3001/redirect" }
|
|
134
|
-
|
|
135
|
-
context "when no postredirs" do
|
|
136
|
-
it "is a get" do
|
|
137
|
-
expect(easy.response_body).to include('"REQUEST_METHOD":"GET"')
|
|
138
|
-
end
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
unless ENV['TRAVIS']
|
|
142
|
-
context "when postredirs" do
|
|
143
|
-
let(:postredir) { :post_all }
|
|
144
|
-
|
|
145
|
-
it "is a post" do
|
|
146
|
-
expect(easy.response_body).to include('"REQUEST_METHOD":"POST"')
|
|
147
|
-
end
|
|
148
|
-
end
|
|
149
|
-
end
|
|
150
|
-
end
|
|
151
|
-
end
|
|
152
|
-
end
|
|
153
|
-
|
|
154
|
-
context "when body" do
|
|
155
|
-
context "when multipart" do
|
|
156
|
-
let(:form) { {:a => File.open(__FILE__, 'r')} }
|
|
157
|
-
|
|
158
|
-
it "sets httppost" do
|
|
159
|
-
expect(easy).to receive(:httppost=)
|
|
160
|
-
post.setup(easy)
|
|
161
|
-
end
|
|
162
|
-
|
|
163
|
-
context "when requesting" do
|
|
164
|
-
before do
|
|
165
|
-
easy.headers = { 'Expect' => '' }
|
|
166
|
-
post.setup(easy)
|
|
167
|
-
easy.perform
|
|
168
|
-
end
|
|
169
|
-
|
|
170
|
-
it "returns ok" do
|
|
171
|
-
expect(easy.return_code).to eq(:ok)
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
it "is a post" do
|
|
175
|
-
expect(easy.response_body).to include('"REQUEST_METHOD":"POST"')
|
|
176
|
-
end
|
|
177
|
-
|
|
178
|
-
it "uses multipart/form-data content type" do
|
|
179
|
-
expect(easy.response_body).to include('"CONTENT_TYPE":"multipart/form-data')
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
it "submits a body" do
|
|
183
|
-
expect(easy.response_body).to match('"body":".+"')
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
it "submits the data" do
|
|
187
|
-
expect(easy.response_body).to include('"filename":"post_spec.rb"')
|
|
188
|
-
end
|
|
189
|
-
end
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
context "when not multipart" do
|
|
193
|
-
let(:form) { {:a => "1&b=2"} }
|
|
194
|
-
let(:encoded) { "a=1%26b%3D2" }
|
|
195
|
-
|
|
196
|
-
it "sets escaped copypostfields" do
|
|
197
|
-
expect(easy).to receive(:copypostfields=).with(encoded)
|
|
198
|
-
post.setup(easy)
|
|
199
|
-
end
|
|
200
|
-
|
|
201
|
-
it "sets postfieldsize" do
|
|
202
|
-
expect(easy).to receive(:postfieldsize=).with(encoded.bytesize)
|
|
203
|
-
post.setup(easy)
|
|
204
|
-
end
|
|
205
|
-
|
|
206
|
-
context "when requesting" do
|
|
207
|
-
before do
|
|
208
|
-
easy.headers = { 'Expect' => '' }
|
|
209
|
-
post.setup(easy)
|
|
210
|
-
easy.perform
|
|
211
|
-
end
|
|
212
|
-
|
|
213
|
-
it "returns ok" do
|
|
214
|
-
expect(easy.return_code).to eq(:ok)
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
it "is a post" do
|
|
218
|
-
expect(easy.response_body).to include('"REQUEST_METHOD":"POST"')
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
it "uses multipart/form-data content type" do
|
|
222
|
-
expect(easy.response_body).to include('"CONTENT_TYPE":"application/x-www-form-urlencoded')
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
it "submits a body" do
|
|
226
|
-
expect(easy.response_body).to match('"body":"a=1%26b%3D2"')
|
|
227
|
-
end
|
|
228
|
-
|
|
229
|
-
it "submits the data" do
|
|
230
|
-
expect(easy.response_body).to include('"rack.request.form_hash":{"a":"1&b=2"}')
|
|
231
|
-
end
|
|
232
|
-
end
|
|
233
|
-
end
|
|
234
|
-
|
|
235
|
-
context "when string" do
|
|
236
|
-
let(:form) { "{a: 1}" }
|
|
237
|
-
|
|
238
|
-
context "when requesting" do
|
|
239
|
-
before do
|
|
240
|
-
easy.headers = { 'Expect' => '' }
|
|
241
|
-
post.setup(easy)
|
|
242
|
-
easy.perform
|
|
243
|
-
end
|
|
244
|
-
|
|
245
|
-
it "returns ok" do
|
|
246
|
-
expect(easy.return_code).to eq(:ok)
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
it "sends string" do
|
|
250
|
-
expect(easy.response_body).to include('"body":"{a: 1}"')
|
|
251
|
-
end
|
|
252
|
-
end
|
|
253
|
-
end
|
|
254
|
-
|
|
255
|
-
context "when binary with null bytes" do
|
|
256
|
-
let(:form) { [1, 0, 1].pack('c*') }
|
|
257
|
-
|
|
258
|
-
context "when requesting" do
|
|
259
|
-
before do
|
|
260
|
-
easy.headers = { 'Expect' => '' }
|
|
261
|
-
post.setup(easy)
|
|
262
|
-
easy.perform
|
|
263
|
-
end
|
|
264
|
-
|
|
265
|
-
it "returns ok" do
|
|
266
|
-
expect(easy.return_code).to eq(:ok)
|
|
267
|
-
end
|
|
268
|
-
|
|
269
|
-
it "sends binary data" do
|
|
270
|
-
expect(easy.response_body).to include('"body":"\\u0001\\u0000\\u0001"')
|
|
271
|
-
end
|
|
272
|
-
end
|
|
273
|
-
end
|
|
274
|
-
|
|
275
|
-
context "when arrays" do
|
|
276
|
-
let(:form) { {:a => %w( foo bar )} }
|
|
277
|
-
|
|
278
|
-
context "by default" do
|
|
279
|
-
it "sets copypostfields with indexed, escaped representation" do
|
|
280
|
-
expect(easy).to receive(:copypostfields=).with('a%5B0%5D=foo&a%5B1%5D=bar')
|
|
281
|
-
post.setup(easy)
|
|
282
|
-
end
|
|
283
|
-
end
|
|
284
|
-
|
|
285
|
-
context "when params_encoding is :rack" do
|
|
286
|
-
let(:options) { {:params_encoding => :rack} }
|
|
287
|
-
|
|
288
|
-
it "sets copypostfields with non-indexed, escaped representation" do
|
|
289
|
-
expect(easy).to receive(:copypostfields=).with('a%5B%5D=foo&a%5B%5D=bar')
|
|
290
|
-
post.setup(easy)
|
|
291
|
-
end
|
|
292
|
-
end
|
|
293
|
-
end
|
|
294
|
-
end
|
|
295
|
-
|
|
296
|
-
context "when params and body" do
|
|
297
|
-
let(:form) { {:a => "1"} }
|
|
298
|
-
let(:params) { {:b => "2"} }
|
|
299
|
-
|
|
300
|
-
context "when requesting" do
|
|
301
|
-
before do
|
|
302
|
-
easy.headers = { 'Expect' => '' }
|
|
303
|
-
post.setup(easy)
|
|
304
|
-
easy.perform
|
|
305
|
-
end
|
|
306
|
-
|
|
307
|
-
it "url contains params" do
|
|
308
|
-
expect(easy.response_body).to include('"REQUEST_URI":"http://localhost:3001/?b=2"')
|
|
309
|
-
end
|
|
310
|
-
|
|
311
|
-
it "body contains form" do
|
|
312
|
-
expect(easy.response_body).to include('"body":"a=1"')
|
|
313
|
-
end
|
|
314
|
-
end
|
|
315
|
-
end
|
|
316
|
-
end
|
|
317
|
-
end
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
require 'spec_helper'
|
|
3
|
-
|
|
4
|
-
describe Ethon::Easy::Http::Put do
|
|
5
|
-
let(:easy) { Ethon::Easy.new }
|
|
6
|
-
let(:url) { "http://localhost:3001/" }
|
|
7
|
-
let(:params) { nil }
|
|
8
|
-
let(:form) { nil }
|
|
9
|
-
let(:options) { Hash.new }
|
|
10
|
-
let(:put) { described_class.new(url, options.merge({:params => params, :body => form})) }
|
|
11
|
-
|
|
12
|
-
describe "#setup" do
|
|
13
|
-
context "when nothing" do
|
|
14
|
-
it "sets url" do
|
|
15
|
-
put.setup(easy)
|
|
16
|
-
expect(easy.url).to eq(url)
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
it "sets upload" do
|
|
20
|
-
expect(easy).to receive(:upload=).with(true)
|
|
21
|
-
put.setup(easy)
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
it "sets infilesize" do
|
|
25
|
-
expect(easy).to receive(:infilesize=).with(0)
|
|
26
|
-
put.setup(easy)
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
context "when requesting" do
|
|
30
|
-
it "makes a put request" do
|
|
31
|
-
put.setup(easy)
|
|
32
|
-
easy.perform
|
|
33
|
-
expect(easy.response_body).to include('"REQUEST_METHOD":"PUT"')
|
|
34
|
-
end
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
context "when params" do
|
|
39
|
-
let(:params) { {:a => "1&"} }
|
|
40
|
-
|
|
41
|
-
it "attaches escaped to url" do
|
|
42
|
-
put.setup(easy)
|
|
43
|
-
expect(easy.url).to eq("#{url}?a=1%26")
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
context "with arrays" do
|
|
47
|
-
let(:params) { {:a => %w( foo bar )} }
|
|
48
|
-
|
|
49
|
-
context "by default" do
|
|
50
|
-
it "encodes them with indexes" do
|
|
51
|
-
put.setup(easy)
|
|
52
|
-
expect(easy.url).to eq("#{url}?a%5B0%5D=foo&a%5B1%5D=bar")
|
|
53
|
-
end
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
context "when params_encoding is :rack" do
|
|
57
|
-
let(:options) { {:params_encoding => :rack} }
|
|
58
|
-
it "encodes them without indexes" do
|
|
59
|
-
put.setup(easy)
|
|
60
|
-
expect(easy.url).to eq("#{url}?a%5B%5D=foo&a%5B%5D=bar")
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
it "sets upload" do
|
|
66
|
-
expect(easy).to receive(:upload=).with(true)
|
|
67
|
-
put.setup(easy)
|
|
68
|
-
end
|
|
69
|
-
|
|
70
|
-
it "sets infilesize" do
|
|
71
|
-
expect(easy).to receive(:infilesize=).with(0)
|
|
72
|
-
put.setup(easy)
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
context "when requesting" do
|
|
76
|
-
before do
|
|
77
|
-
put.setup(easy)
|
|
78
|
-
easy.perform
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
it "makes a put request" do
|
|
82
|
-
expect(easy.response_body).to include('"REQUEST_METHOD":"PUT"')
|
|
83
|
-
end
|
|
84
|
-
end
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
context "when body" do
|
|
88
|
-
let(:form) { {:a => "1&b=2"} }
|
|
89
|
-
|
|
90
|
-
it "sets infilesize" do
|
|
91
|
-
expect(easy).to receive(:infilesize=).with(11)
|
|
92
|
-
put.setup(easy)
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
it "sets readfunction" do
|
|
96
|
-
expect(easy).to receive(:readfunction)
|
|
97
|
-
put.setup(easy)
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
it "sets upload" do
|
|
101
|
-
expect(easy).to receive(:upload=).with(true)
|
|
102
|
-
put.setup(easy)
|
|
103
|
-
end
|
|
104
|
-
|
|
105
|
-
context "when requesting" do
|
|
106
|
-
context "sending string body" do
|
|
107
|
-
before do
|
|
108
|
-
easy.headers = { 'Expect' => '' }
|
|
109
|
-
put.setup(easy)
|
|
110
|
-
easy.perform
|
|
111
|
-
end
|
|
112
|
-
|
|
113
|
-
it "makes a put request" do
|
|
114
|
-
expect(easy.response_body).to include('"REQUEST_METHOD":"PUT"')
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
it "submits a body" do
|
|
118
|
-
expect(easy.response_body).to include('"body":"a=1%26b%3D2"')
|
|
119
|
-
end
|
|
120
|
-
end
|
|
121
|
-
|
|
122
|
-
context "when injecting a file as body" do
|
|
123
|
-
let(:file) { File.open(__FILE__) }
|
|
124
|
-
let(:easy) do
|
|
125
|
-
e = Ethon::Easy.new(:url => url, :upload => true)
|
|
126
|
-
e.set_read_callback(file)
|
|
127
|
-
e.infilesize = File.size(file.path)
|
|
128
|
-
e
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
before do
|
|
132
|
-
easy.headers = { 'Expect' => '' }
|
|
133
|
-
easy.perform
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
it "submits file" do
|
|
137
|
-
expect(easy.response_body).to include("injecting")
|
|
138
|
-
end
|
|
139
|
-
end
|
|
140
|
-
end
|
|
141
|
-
|
|
142
|
-
context "when arrays" do
|
|
143
|
-
let(:form) { {:a => %w( foo bar )} }
|
|
144
|
-
|
|
145
|
-
before do
|
|
146
|
-
put.setup(easy)
|
|
147
|
-
easy.perform
|
|
148
|
-
end
|
|
149
|
-
|
|
150
|
-
context "by default" do
|
|
151
|
-
it "submits an indexed, escaped representation" do
|
|
152
|
-
expect(easy.response_body).to include('"body":"a%5B0%5D=foo&a%5B1%5D=bar"')
|
|
153
|
-
end
|
|
154
|
-
end
|
|
155
|
-
|
|
156
|
-
context "when params_encoding is :rack" do
|
|
157
|
-
let(:options) { {:params_encoding => :rack} }
|
|
158
|
-
|
|
159
|
-
it "submits an non-indexed, escaped representation" do
|
|
160
|
-
expect(easy.response_body).to include('"body":"a%5B%5D=foo&a%5B%5D=bar"')
|
|
161
|
-
end
|
|
162
|
-
end
|
|
163
|
-
end
|
|
164
|
-
end
|
|
165
|
-
|
|
166
|
-
context "when params and body"
|
|
167
|
-
end
|
|
168
|
-
end
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
require 'spec_helper'
|
|
3
|
-
|
|
4
|
-
describe Ethon::Easy::Http do
|
|
5
|
-
let(:easy) { Ethon::Easy.new }
|
|
6
|
-
|
|
7
|
-
describe "#http_request" do
|
|
8
|
-
let(:url) { "http://localhost:3001/" }
|
|
9
|
-
let(:action_name) { :get }
|
|
10
|
-
let(:options) { {} }
|
|
11
|
-
|
|
12
|
-
let(:get) { double(:setup) }
|
|
13
|
-
let(:get_class) { Ethon::Easy::Http::Get }
|
|
14
|
-
|
|
15
|
-
it "instanciates action" do
|
|
16
|
-
expect(get).to receive(:setup)
|
|
17
|
-
expect(get_class).to receive(:new).and_return(get)
|
|
18
|
-
easy.http_request(url, action_name, options)
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
context "when requesting" do
|
|
22
|
-
[ :get, :post, :put, :delete, :head, :patch, :options ].map do |action|
|
|
23
|
-
it "returns ok" do
|
|
24
|
-
easy.http_request(url, action, options)
|
|
25
|
-
easy.perform
|
|
26
|
-
expect(easy.return_code).to be(:ok)
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
unless action == :head
|
|
30
|
-
it "makes a #{action.to_s.upcase} request" do
|
|
31
|
-
easy.http_request(url, action, options)
|
|
32
|
-
easy.perform
|
|
33
|
-
expect(easy.response_body).to include("\"REQUEST_METHOD\":\"#{action.to_s.upcase}\"")
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
it "streams the response body from the #{action.to_s.upcase} request" do
|
|
37
|
-
bytes_read = 0
|
|
38
|
-
easy.on_body { |chunk, response| bytes_read += chunk.bytesize }
|
|
39
|
-
easy.http_request(url, action, options)
|
|
40
|
-
easy.perform
|
|
41
|
-
content_length = ((easy.response_headers =~ /Content-Length: (\d+)/) && $1.to_i)
|
|
42
|
-
expect(bytes_read).to eq(content_length)
|
|
43
|
-
expect(easy.response_body).to eq("")
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
it "notifies when headers are ready" do
|
|
47
|
-
headers = []
|
|
48
|
-
easy.on_headers { |r| headers << r.response_headers }
|
|
49
|
-
easy.http_request(url, action, options)
|
|
50
|
-
easy.perform
|
|
51
|
-
expect(headers).to eq([easy.response_headers])
|
|
52
|
-
expect(headers.first).to match(/Content-Length: (\d+)/)
|
|
53
|
-
end
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
it "makes requests with custom HTTP verbs" do
|
|
58
|
-
easy.http_request(url, :purge, options)
|
|
59
|
-
easy.perform
|
|
60
|
-
expect(easy.response_body).to include(%{"REQUEST_METHOD":"PURGE"})
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
end
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
require 'spec_helper'
|
|
3
|
-
|
|
4
|
-
describe Ethon::Easy::Informations do
|
|
5
|
-
let(:easy) { Ethon::Easy.new }
|
|
6
|
-
|
|
7
|
-
before do
|
|
8
|
-
easy.url = "http://localhost:3001"
|
|
9
|
-
easy.perform
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
describe "#httpauth_avail" do
|
|
13
|
-
it "returns" do
|
|
14
|
-
expect(easy.httpauth_avail).to be
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
describe "#total_time" do
|
|
19
|
-
it "returns float" do
|
|
20
|
-
expect(easy.total_time).to be_a(Float)
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
describe "#starttransfer_time" do
|
|
25
|
-
it "returns float" do
|
|
26
|
-
expect(easy.starttransfer_time).to be_a(Float)
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
describe "#appconnect_time" do
|
|
31
|
-
it "returns float" do
|
|
32
|
-
expect(easy.appconnect_time).to be_a(Float)
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
describe "#pretransfer_time" do
|
|
37
|
-
it "returns float" do
|
|
38
|
-
expect(easy.pretransfer_time).to be_a(Float)
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
describe "#connect_time" do
|
|
43
|
-
it "returns float" do
|
|
44
|
-
expect(easy.connect_time).to be_a(Float)
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
describe "#namelookup_time" do
|
|
49
|
-
it "returns float" do
|
|
50
|
-
expect(easy.namelookup_time).to be_a(Float)
|
|
51
|
-
end
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
describe "#redirect_time" do
|
|
55
|
-
it "returns float" do
|
|
56
|
-
expect(easy.redirect_time).to be_a(Float)
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
describe "#effective_url" do
|
|
61
|
-
it "returns url" do
|
|
62
|
-
expect(easy.effective_url).to match(/^http:\/\/localhost:3001\/?/)
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
describe "#primary_ip" do
|
|
67
|
-
it "returns localhost" do
|
|
68
|
-
expect(easy.primary_ip).to match(/::1|127\.0\.0\.1/)
|
|
69
|
-
end
|
|
70
|
-
end
|
|
71
|
-
|
|
72
|
-
describe "#response_code" do
|
|
73
|
-
it "returns 200" do
|
|
74
|
-
expect(easy.response_code).to eq(200)
|
|
75
|
-
end
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
describe "#redirect_count" do
|
|
79
|
-
it "returns 0" do
|
|
80
|
-
expect(easy.redirect_count).to eq(0)
|
|
81
|
-
end
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
describe "#request_size" do
|
|
85
|
-
it "returns 53" do
|
|
86
|
-
expect(easy.request_size).to eq(53)
|
|
87
|
-
end
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
describe "#supports_zlib?" do
|
|
91
|
-
it "returns true" do
|
|
92
|
-
expect(Kernel).to receive(:warn)
|
|
93
|
-
expect(easy.supports_zlib?).to be_truthy
|
|
94
|
-
end
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
describe "#size_upload" do
|
|
98
|
-
it "returns float" do
|
|
99
|
-
expect(easy.size_upload).to be_a(Float)
|
|
100
|
-
end
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
describe "#size_download" do
|
|
104
|
-
it "returns float" do
|
|
105
|
-
expect(easy.size_download).to be_a(Float)
|
|
106
|
-
end
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
describe "#speed_upload" do
|
|
110
|
-
it "returns float" do
|
|
111
|
-
expect(easy.speed_upload).to be_a(Float)
|
|
112
|
-
end
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
describe "#speed_download" do
|
|
116
|
-
it "returns float" do
|
|
117
|
-
expect(easy.speed_download).to be_a(Float)
|
|
118
|
-
end
|
|
119
|
-
end
|
|
120
|
-
end
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
require 'spec_helper'
|
|
3
|
-
|
|
4
|
-
describe Ethon::Easy::Mirror do
|
|
5
|
-
let(:options) { nil }
|
|
6
|
-
let(:mirror) { described_class.new(options) }
|
|
7
|
-
|
|
8
|
-
describe "::INFORMATIONS_TO_LOG" do
|
|
9
|
-
[
|
|
10
|
-
:return_code, :response_code, :response_body, :response_headers,
|
|
11
|
-
:total_time, :starttransfer_time, :appconnect_time,
|
|
12
|
-
:pretransfer_time, :connect_time, :namelookup_time, :redirect_time,
|
|
13
|
-
:size_upload, :size_download, :speed_upload, :speed_upload,
|
|
14
|
-
:effective_url, :primary_ip, :redirect_count, :debug_info
|
|
15
|
-
].each do |name|
|
|
16
|
-
it "contains #{name}" do
|
|
17
|
-
expect(described_class::INFORMATIONS_TO_MIRROR).to include(name)
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
describe "#to_hash" do
|
|
23
|
-
let(:options) { {:return_code => 1} }
|
|
24
|
-
|
|
25
|
-
it "returns mirror as hash" do
|
|
26
|
-
expect(mirror.to_hash).to eq(options)
|
|
27
|
-
end
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
describe "#log_informations" do
|
|
31
|
-
let(:options) { {:return_code => 1} }
|
|
32
|
-
|
|
33
|
-
it "returns hash" do
|
|
34
|
-
expect(mirror.log_informations).to be_a(Hash)
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
it "only calls methods that exist" do
|
|
38
|
-
described_class::INFORMATIONS_TO_LOG.each do |method_name|
|
|
39
|
-
expect(mirror.respond_to? method_name).to eql(true)
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
it "includes return code" do
|
|
44
|
-
expect(mirror.log_informations).to include(options)
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|