passbase 1.0.0 → 1.2.0
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 +4 -2
- data/README.md +13 -13
- data/docs/Identity.md +4 -0
- data/docs/IdentityApi.md +72 -13
- data/docs/IdentityOwner.md +21 -0
- data/docs/IdentityResource.md +2 -2
- data/docs/ProjectSettings.md +2 -2
- data/docs/ProjectSettingsVerificationSteps.md +1 -1
- data/docs/Resource.md +2 -2
- data/docs/ResourceInput.md +2 -2
- data/docs/User.md +1 -1
- data/lib/passbase.rb +1 -1
- data/lib/passbase/api/identity_api.rb +92 -18
- data/lib/passbase/api_client.rb +1 -1
- data/lib/passbase/models/identity.rb +20 -1
- data/lib/passbase/models/identity_owner.rb +229 -0
- data/lib/passbase/models/identity_resource.rb +2 -1
- data/lib/passbase/models/project_settings.rb +1 -1
- data/lib/passbase/models/project_settings_customizations.rb +0 -34
- data/lib/passbase/models/project_settings_verification_steps.rb +1 -1
- data/lib/passbase/models/resource.rb +2 -1
- data/lib/passbase/models/resource_input.rb +2 -1
- data/lib/passbase/version.rb +1 -1
- data/spec/api/identity_api_spec.rb +20 -6
- data/spec/models/{resource_type_spec.rb → identity_owner_spec.rb} +24 -6
- data/spec/models/identity_spec.rb +12 -0
- data/spec/models/project_settings_customizations_spec.rb +0 -4
- data/vendor/bundle/ruby/2.7.0/bin/htmldiff +1 -1
- data/vendor/bundle/ruby/2.7.0/bin/ldiff +1 -1
- data/vendor/bundle/ruby/2.7.0/cache/faraday-1.1.0.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/cache/ruby2_keywords-0.0.2.gem +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/byebug-11.1.3/byebug/byebug.so +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/byebug-11.1.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/jaro_winkler-1.5.4/gem_make.out +14 -14
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/jaro_winkler-1.5.4/jaro_winkler/jaro_winkler_ext.so +0 -0
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/psych-3.2.0/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/psych-3.2.0/mkmf.log +15 -15
- data/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0-static/psych-3.2.0/psych.so +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/Makefile +5 -5
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/breakpoint.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/byebug.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/byebug.so +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/context.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/locker.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/ext/byebug/threads.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/byebug-11.1.3/lib/byebug/byebug.so +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/CHANGELOG.md +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/LICENSE.md +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/README.md +2 -3
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/Rakefile +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/examples/client_spec.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/examples/client_test.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter.rb +1 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/em_http.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/em_http_ssl_patch.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/em_synchrony.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/em_synchrony/parallel_manager.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/excon.rb +2 -2
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/httpclient.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/net_http.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/net_http_persistent.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/patron.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/rack.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/test.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter/typhoeus.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/adapter_registry.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/autoload.rb +1 -1
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/connection.rb +3 -3
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/dependency_loader.rb +3 -1
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/encoders/flat_params_encoder.rb +9 -2
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/encoders/nested_params_encoder.rb +7 -2
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/error.rb +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/file_part.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/logging/formatter.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/middleware.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/middleware_registry.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/options.rb +4 -8
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/options/connection_options.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/options/env.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/options/proxy_options.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/options/request_options.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/options/ssl_options.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/param_part.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/parameters.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/rack_builder.rb +13 -12
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/request.rb +20 -10
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/request/authorization.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/request/basic_authentication.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/request/instrumentation.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/request/multipart.rb +9 -2
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/request/retry.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/request/token_authentication.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/request/url_encoded.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/response.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/response/logger.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/response/raise_error.rb +12 -1
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/utils.rb +2 -2
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/utils/headers.rb +2 -2
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/utils/params_hash.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/external_adapters/faraday_specs_setup.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter/em_http_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter/em_synchrony_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter/excon_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter/httpclient_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter/net_http_persistent_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter/net_http_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter/patron_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter/rack_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/faraday-1.1.0/spec/faraday/adapter/test_spec.rb +260 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter/typhoeus_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter_registry_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/composite_read_io_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/connection_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/error_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/middleware_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/options/env_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/options/options_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/options/proxy_options_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/options/request_options_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/params_encoders/flat_spec.rb +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/params_encoders/nested_spec.rb +8 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/rack_builder_spec.rb +149 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/request/authorization_spec.rb +2 -2
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/request/instrumentation_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/request/multipart_spec.rb +41 -13
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/request/retry_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/request/url_encoded_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/request_spec.rb +16 -5
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/response/logger_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/response/middleware_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/response/raise_error_spec.rb +33 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/response_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/utils/headers_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/utils_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday_spec.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/spec_helper.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/support/disabling_stub.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/support/fake_safe_buffer.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/support/helper_methods.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/support/shared_examples/adapter.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/support/shared_examples/params_encoder.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/support/shared_examples/request_method.rb +3 -3
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/support/streaming_response_checker.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/support/webmock_rack_app.rb +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +6 -6
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/adj_matrix.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/codepoints.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/jaro.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/jaro_winkler.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/jaro_winkler_ext.so +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/jaro_winkler_ext.so +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/Makefile +6 -6
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/api.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/dumper.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/emitter.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/loader.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/parser.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/psych.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/psych_emitter.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/psych_parser.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/psych_to_ruby.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/psych_yaml_tree.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/reader.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/scanner.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/psych-3.2.0/ext/psych/writer.o +0 -0
- data/vendor/bundle/ruby/2.7.0/gems/ruby2_keywords-0.0.2/README.md +51 -0
- data/vendor/bundle/ruby/2.7.0/gems/ruby2_keywords-0.0.2/lib/ruby2_keywords.rb +23 -0
- data/vendor/bundle/ruby/2.7.0/gems/ruby2_keywords-0.0.2/ruby2_keywords.gemspec +16 -0
- data/vendor/bundle/ruby/2.7.0/specifications/ast-2.4.1.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/byebug-11.1.3.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/coderay-1.1.3.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/diff-lcs-1.4.4.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/{faraday-1.0.1.gemspec → faraday-1.1.0.gemspec} +0 -0
- data/vendor/bundle/ruby/2.7.0/specifications/jaro_winkler-1.5.4.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/method_source-1.0.0.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/multipart-post-2.1.1.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/parallel-1.19.2.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/parser-2.7.1.4.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/pry-0.13.1.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/pry-byebug-3.9.0.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/psych-3.2.0.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rainbow-3.0.0.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rake-13.0.1.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rspec-3.9.0.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rspec-core-3.9.2.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rspec-expectations-3.9.2.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rspec-mocks-3.9.1.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rspec-support-3.9.3.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/rubocop-0.66.0.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/ruby-progressbar-1.10.1.gemspec +2 -2
- data/vendor/bundle/ruby/2.7.0/specifications/ruby2_keywords-0.0.2.gemspec +18 -0
- data/vendor/bundle/ruby/2.7.0/specifications/unicode-display_width-1.5.0.gemspec +2 -2
- data/walkthrough.md +2 -2
- metadata +123 -117
- data/docs/ResourceType.md +0 -16
- data/lib/passbase/models/resource_type.rb +0 -41
- data/vendor/bundle/ruby/2.7.0/cache/faraday-1.0.1.gem +0 -0
data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/utils/headers.rb
RENAMED
|
@@ -105,7 +105,7 @@ module Faraday
|
|
|
105
105
|
end
|
|
106
106
|
|
|
107
107
|
def to_hash
|
|
108
|
-
|
|
108
|
+
{}.update(self)
|
|
109
109
|
end
|
|
110
110
|
|
|
111
111
|
def parse(header_string)
|
|
@@ -114,7 +114,7 @@ module Faraday
|
|
|
114
114
|
headers = header_string.split(/\r\n/)
|
|
115
115
|
|
|
116
116
|
# Find the last set of response headers.
|
|
117
|
-
start_index = headers.rindex { |x| x.
|
|
117
|
+
start_index = headers.rindex { |x| x.start_with?('HTTP/') } || 0
|
|
118
118
|
last_response = headers.slice(start_index, headers.size)
|
|
119
119
|
|
|
120
120
|
last_response
|
data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/lib/faraday/utils/params_hash.rb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter/rack_spec.rb
RENAMED
|
File without changes
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
RSpec.describe Faraday::Adapter::Test do
|
|
4
|
+
let(:stubs) do
|
|
5
|
+
described_class::Stubs.new do |stub|
|
|
6
|
+
stub.get('http://domain.test/hello') do
|
|
7
|
+
[200, { 'Content-Type' => 'text/html' }, 'domain: hello']
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
stub.get('http://wrong.test/hello') do
|
|
11
|
+
[200, { 'Content-Type' => 'text/html' }, 'wrong: hello']
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
stub.get('http://wrong.test/bait') do
|
|
15
|
+
[404, { 'Content-Type' => 'text/html' }]
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
stub.get('/hello') do
|
|
19
|
+
[200, { 'Content-Type' => 'text/html' }, 'hello']
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
stub.get('/method-echo') do |env|
|
|
23
|
+
[200, { 'Content-Type' => 'text/html' }, env[:method].to_s]
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
stub.get(%r{\A/resources/\d+(?:\?|\z)}) do
|
|
27
|
+
[200, { 'Content-Type' => 'text/html' }, 'show']
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
stub.get(%r{\A/resources/(specified)\z}) do |_env, meta|
|
|
31
|
+
[200, { 'Content-Type' => 'text/html' }, "show #{meta[:match_data][1]}"]
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
let(:connection) do
|
|
37
|
+
Faraday.new do |builder|
|
|
38
|
+
builder.adapter :test, stubs
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
let(:response) { connection.get('/hello') }
|
|
43
|
+
|
|
44
|
+
context 'with simple path sets status' do
|
|
45
|
+
subject { response.status }
|
|
46
|
+
|
|
47
|
+
it { is_expected.to eq 200 }
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
context 'with simple path sets headers' do
|
|
51
|
+
subject { response.headers['Content-Type'] }
|
|
52
|
+
|
|
53
|
+
it { is_expected.to eq 'text/html' }
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
context 'with simple path sets body' do
|
|
57
|
+
subject { response.body }
|
|
58
|
+
|
|
59
|
+
it { is_expected.to eq 'hello' }
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
context 'with host points to the right stub' do
|
|
63
|
+
subject { connection.get('http://domain.test/hello').body }
|
|
64
|
+
|
|
65
|
+
it { is_expected.to eq 'domain: hello' }
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
describe 'can be called several times' do
|
|
69
|
+
subject { connection.get('/hello').body }
|
|
70
|
+
|
|
71
|
+
it { is_expected.to eq 'hello' }
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
describe 'can handle regular expression path' do
|
|
75
|
+
subject { connection.get('/resources/1').body }
|
|
76
|
+
|
|
77
|
+
it { is_expected.to eq 'show' }
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
describe 'can handle single parameter block' do
|
|
81
|
+
subject { connection.get('/method-echo').body }
|
|
82
|
+
|
|
83
|
+
it { is_expected.to eq 'get' }
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
describe 'can handle regular expression path with captured result' do
|
|
87
|
+
subject { connection.get('/resources/specified').body }
|
|
88
|
+
|
|
89
|
+
it { is_expected.to eq 'show specified' }
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
context 'with get params' do
|
|
93
|
+
subject { connection.get('/param?a=1').body }
|
|
94
|
+
|
|
95
|
+
before do
|
|
96
|
+
stubs.get('/param?a=1') { [200, {}, 'a'] }
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
it { is_expected.to eq 'a' }
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
describe 'ignoring unspecified get params' do
|
|
103
|
+
before do
|
|
104
|
+
stubs.get('/optional?a=1') { [200, {}, 'a'] }
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
context 'with multiple params' do
|
|
108
|
+
subject { connection.get('/optional?a=1&b=1').body }
|
|
109
|
+
|
|
110
|
+
it { is_expected.to eq 'a' }
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
context 'with single param' do
|
|
114
|
+
subject { connection.get('/optional?a=1').body }
|
|
115
|
+
|
|
116
|
+
it { is_expected.to eq 'a' }
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
context 'without params' do
|
|
120
|
+
subject(:request) { connection.get('/optional') }
|
|
121
|
+
|
|
122
|
+
it do
|
|
123
|
+
expect { request }.to raise_error(
|
|
124
|
+
Faraday::Adapter::Test::Stubs::NotFound
|
|
125
|
+
)
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
context 'with http headers' do
|
|
131
|
+
before do
|
|
132
|
+
stubs.get('/yo', 'X-HELLO' => 'hello') { [200, {}, 'a'] }
|
|
133
|
+
stubs.get('/yo') { [200, {}, 'b'] }
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
context 'with header' do
|
|
137
|
+
subject do
|
|
138
|
+
connection.get('/yo') { |env| env.headers['X-HELLO'] = 'hello' }.body
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
it { is_expected.to eq 'a' }
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
context 'without header' do
|
|
145
|
+
subject do
|
|
146
|
+
connection.get('/yo').body
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
it { is_expected.to eq 'b' }
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
describe 'different outcomes for the same request' do
|
|
154
|
+
def make_request
|
|
155
|
+
connection.get('/foo')
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
subject(:request) { make_request.body }
|
|
159
|
+
|
|
160
|
+
before do
|
|
161
|
+
stubs.get('/foo') { [200, { 'Content-Type' => 'text/html' }, 'hello'] }
|
|
162
|
+
stubs.get('/foo') { [200, { 'Content-Type' => 'text/html' }, 'world'] }
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
context 'the first request' do
|
|
166
|
+
it { is_expected.to eq 'hello' }
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
context 'the second request' do
|
|
170
|
+
before do
|
|
171
|
+
make_request
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
it { is_expected.to eq 'world' }
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
describe 'yielding env to stubs' do
|
|
179
|
+
subject { connection.get('http://foo.com/foo?a=1').body }
|
|
180
|
+
|
|
181
|
+
before do
|
|
182
|
+
stubs.get '/foo' do |env|
|
|
183
|
+
expect(env[:url].path).to eq '/foo'
|
|
184
|
+
expect(env[:url].host).to eq 'foo.com'
|
|
185
|
+
expect(env[:params]['a']).to eq '1'
|
|
186
|
+
expect(env[:request_headers]['Accept']).to eq 'text/plain'
|
|
187
|
+
[200, {}, 'a']
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
connection.headers['Accept'] = 'text/plain'
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
it { is_expected.to eq 'a' }
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
describe 'params parsing' do
|
|
197
|
+
subject { connection.get('http://foo.com/foo?a[b]=1').body }
|
|
198
|
+
|
|
199
|
+
context 'with default encoder' do
|
|
200
|
+
before do
|
|
201
|
+
stubs.get '/foo' do |env|
|
|
202
|
+
expect(env[:params]['a']['b']).to eq '1'
|
|
203
|
+
[200, {}, 'a']
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
it { is_expected.to eq 'a' }
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
context 'with nested encoder' do
|
|
211
|
+
before do
|
|
212
|
+
stubs.get '/foo' do |env|
|
|
213
|
+
expect(env[:params]['a']['b']).to eq '1'
|
|
214
|
+
[200, {}, 'a']
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
connection.options.params_encoder = Faraday::NestedParamsEncoder
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
it { is_expected.to eq 'a' }
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
context 'with flat encoder' do
|
|
224
|
+
before do
|
|
225
|
+
stubs.get '/foo' do |env|
|
|
226
|
+
expect(env[:params]['a[b]']).to eq '1'
|
|
227
|
+
[200, {}, 'a']
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
connection.options.params_encoder = Faraday::FlatParamsEncoder
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
it { is_expected.to eq 'a' }
|
|
234
|
+
end
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
describe 'raising an error if no stub was found' do
|
|
238
|
+
describe 'for request' do
|
|
239
|
+
subject(:request) { connection.get('/invalid') { [200, {}, []] } }
|
|
240
|
+
|
|
241
|
+
it { expect { request }.to raise_error described_class::Stubs::NotFound }
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
describe 'for specified host' do
|
|
245
|
+
subject(:request) { connection.get('http://domain.test/bait') }
|
|
246
|
+
|
|
247
|
+
it { expect { request }.to raise_error described_class::Stubs::NotFound }
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
describe 'for request without specified header' do
|
|
251
|
+
subject(:request) { connection.get('/yo') }
|
|
252
|
+
|
|
253
|
+
before do
|
|
254
|
+
stubs.get('/yo', 'X-HELLO' => 'hello') { [200, {}, 'a'] }
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
it { expect { request }.to raise_error described_class::Stubs::NotFound }
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
end
|
|
File without changes
|
|
File without changes
|
data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/adapter_spec.rb
RENAMED
|
File without changes
|
|
File without changes
|
data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/connection_spec.rb
RENAMED
|
File without changes
|
data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/error_spec.rb
RENAMED
|
File without changes
|
data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/middleware_spec.rb
RENAMED
|
File without changes
|
data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/options/env_spec.rb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -31,4 +31,12 @@ RSpec.describe Faraday::FlatParamsEncoder do
|
|
|
31
31
|
params = { a: [] }
|
|
32
32
|
expect(subject.encode(params)).to eq('a=')
|
|
33
33
|
end
|
|
34
|
+
|
|
35
|
+
it 'encodes unsorted when asked' do
|
|
36
|
+
params = { b: false, a: true }
|
|
37
|
+
expect(subject.encode(params)).to eq('a=true&b=false')
|
|
38
|
+
Faraday::FlatParamsEncoder.sort_params = false
|
|
39
|
+
expect(subject.encode(params)).to eq('b=false&a=true')
|
|
40
|
+
Faraday::FlatParamsEncoder.sort_params = true
|
|
41
|
+
end
|
|
34
42
|
end
|
|
@@ -94,6 +94,14 @@ RSpec.describe Faraday::NestedParamsEncoder do
|
|
|
94
94
|
expect(subject.encode(params)).to eq('a%5B%5D=true&a%5B%5D=false')
|
|
95
95
|
end
|
|
96
96
|
|
|
97
|
+
it 'encodes unsorted when asked' do
|
|
98
|
+
params = { b: false, a: true }
|
|
99
|
+
expect(subject.encode(params)).to eq('a=true&b=false')
|
|
100
|
+
Faraday::NestedParamsEncoder.sort_params = false
|
|
101
|
+
expect(subject.encode(params)).to eq('b=false&a=true')
|
|
102
|
+
Faraday::NestedParamsEncoder.sort_params = true
|
|
103
|
+
end
|
|
104
|
+
|
|
97
105
|
shared_examples 'a wrong decoding' do
|
|
98
106
|
it do
|
|
99
107
|
expect { subject.decode(query) }.to raise_error(TypeError) do |e|
|
data/vendor/bundle/ruby/2.7.0/gems/{faraday-1.0.1 → faraday-1.1.0}/spec/faraday/rack_builder_spec.rb
RENAMED
|
@@ -193,4 +193,153 @@ RSpec.describe Faraday::RackBuilder do
|
|
|
193
193
|
end
|
|
194
194
|
end
|
|
195
195
|
end
|
|
196
|
+
|
|
197
|
+
context 'when middleware is added with named arguments' do
|
|
198
|
+
let(:conn) { Faraday::Connection.new {} }
|
|
199
|
+
|
|
200
|
+
let(:dog_middleware) do
|
|
201
|
+
Class.new(Faraday::Middleware) do
|
|
202
|
+
attr_accessor :name
|
|
203
|
+
|
|
204
|
+
def initialize(app, name:)
|
|
205
|
+
super(app)
|
|
206
|
+
@name = name
|
|
207
|
+
end
|
|
208
|
+
end
|
|
209
|
+
end
|
|
210
|
+
let(:dog) do
|
|
211
|
+
subject.handlers.find { |handler| handler == dog_middleware }.build
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
it 'adds a handler to construct middleware with options passed to use' do
|
|
215
|
+
subject.use dog_middleware, name: 'Rex'
|
|
216
|
+
expect { dog }.to_not output(
|
|
217
|
+
/warning: Using the last argument as keyword parameters is deprecated/
|
|
218
|
+
).to_stderr
|
|
219
|
+
expect(dog.name).to eq('Rex')
|
|
220
|
+
end
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
context 'when a request adapter is added with named arguments' do
|
|
224
|
+
let(:conn) { Faraday::Connection.new {} }
|
|
225
|
+
|
|
226
|
+
let(:cat_request) do
|
|
227
|
+
Class.new(Faraday::Middleware) do
|
|
228
|
+
attr_accessor :name
|
|
229
|
+
|
|
230
|
+
def initialize(app, name:)
|
|
231
|
+
super(app)
|
|
232
|
+
@name = name
|
|
233
|
+
end
|
|
234
|
+
end
|
|
235
|
+
end
|
|
236
|
+
let(:cat) do
|
|
237
|
+
subject.handlers.find { |handler| handler == cat_request }.build
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
it 'adds a handler to construct request adapter with options passed to request' do
|
|
241
|
+
Faraday::Request.register_middleware cat_request: cat_request
|
|
242
|
+
subject.request :cat_request, name: 'Felix'
|
|
243
|
+
expect { cat }.to_not output(
|
|
244
|
+
/warning: Using the last argument as keyword parameters is deprecated/
|
|
245
|
+
).to_stderr
|
|
246
|
+
expect(cat.name).to eq('Felix')
|
|
247
|
+
end
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
context 'when a response adapter is added with named arguments' do
|
|
251
|
+
let(:conn) { Faraday::Connection.new {} }
|
|
252
|
+
|
|
253
|
+
let(:fish_response) do
|
|
254
|
+
Class.new(Faraday::Response::Middleware) do
|
|
255
|
+
attr_accessor :name
|
|
256
|
+
|
|
257
|
+
def initialize(app, name:)
|
|
258
|
+
super(app)
|
|
259
|
+
@name = name
|
|
260
|
+
end
|
|
261
|
+
end
|
|
262
|
+
end
|
|
263
|
+
let(:fish) do
|
|
264
|
+
subject.handlers.find { |handler| handler == fish_response }.build
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
it 'adds a handler to construct response adapter with options passed to response' do
|
|
268
|
+
Faraday::Response.register_middleware fish_response: fish_response
|
|
269
|
+
subject.response :fish_response, name: 'Bubbles'
|
|
270
|
+
expect { fish }.to_not output(
|
|
271
|
+
/warning: Using the last argument as keyword parameters is deprecated/
|
|
272
|
+
).to_stderr
|
|
273
|
+
expect(fish.name).to eq('Bubbles')
|
|
274
|
+
end
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
context 'when a plain adapter is added with named arguments' do
|
|
278
|
+
let(:conn) { Faraday::Connection.new {} }
|
|
279
|
+
|
|
280
|
+
let(:rabbit_adapter) do
|
|
281
|
+
Class.new(Faraday::Adapter) do
|
|
282
|
+
attr_accessor :name
|
|
283
|
+
|
|
284
|
+
def initialize(app, name:)
|
|
285
|
+
super(app)
|
|
286
|
+
@name = name
|
|
287
|
+
end
|
|
288
|
+
end
|
|
289
|
+
end
|
|
290
|
+
let(:rabbit) do
|
|
291
|
+
subject.adapter.build
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
it 'adds a handler to construct adapter with options passed to adapter' do
|
|
295
|
+
Faraday::Adapter.register_middleware rabbit_adapter: rabbit_adapter
|
|
296
|
+
subject.adapter :rabbit_adapter, name: 'Thumper'
|
|
297
|
+
expect { rabbit }.to_not output(
|
|
298
|
+
/warning: Using the last argument as keyword parameters is deprecated/
|
|
299
|
+
).to_stderr
|
|
300
|
+
expect(rabbit.name).to eq('Thumper')
|
|
301
|
+
end
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
context 'when handlers are directly added or updated' do
|
|
305
|
+
let(:conn) { Faraday::Connection.new {} }
|
|
306
|
+
|
|
307
|
+
let(:rock_handler) do
|
|
308
|
+
Class.new do
|
|
309
|
+
attr_accessor :name
|
|
310
|
+
|
|
311
|
+
def initialize(_app, name:)
|
|
312
|
+
@name = name
|
|
313
|
+
end
|
|
314
|
+
end
|
|
315
|
+
end
|
|
316
|
+
let(:rock) do
|
|
317
|
+
subject.handlers.find { |handler| handler == rock_handler }.build
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
it 'adds a handler to construct adapter with options passed to insert' do
|
|
321
|
+
subject.insert 0, rock_handler, name: 'Stony'
|
|
322
|
+
expect { rock }.to_not output(
|
|
323
|
+
/warning: Using the last argument as keyword parameters is deprecated/
|
|
324
|
+
).to_stderr
|
|
325
|
+
expect(rock.name).to eq('Stony')
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
it 'adds a handler with options passed to insert_after' do
|
|
329
|
+
subject.insert_after 0, rock_handler, name: 'Rocky'
|
|
330
|
+
expect { rock }.to_not output(
|
|
331
|
+
/warning: Using the last argument as keyword parameters is deprecated/
|
|
332
|
+
).to_stderr
|
|
333
|
+
expect(rock.name).to eq('Rocky')
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
it 'adds a handler with options passed to swap' do
|
|
337
|
+
subject.insert 0, rock_handler, name: 'Flint'
|
|
338
|
+
subject.swap 0, rock_handler, name: 'Chert'
|
|
339
|
+
expect { rock }.to_not output(
|
|
340
|
+
/warning: Using the last argument as keyword parameters is deprecated/
|
|
341
|
+
).to_stderr
|
|
342
|
+
expect(rock.name).to eq('Chert')
|
|
343
|
+
end
|
|
344
|
+
end
|
|
196
345
|
end
|