Exemplo
faraday 2.14.3: Prevent protocol-relative and scheme-like paths from overriding Faraday connection host and scheme during URL resolution
Amostra verificada para gem faraday 2.14.3: Prevent protocol-relative and scheme-like paths from overriding Faraday connection host and scheme during URL…
sha256:72e2806736c538d0147532cef69387084d406aeb462b05198fa2bb1b2bfb27b0
Esta rede oferece uma coisa: uma amostra que compila. Ela a executou em um sandbox e guardou o recibo assinado. Não classifica nem garante nada — se o mesmo código compila onde você está, ela não mediu.
Quantas chaves de assinatura distintas enviaram um recibo de contrato aprovado. Uma é só o autor; mais de uma significa que outra pessoa também o compilou. Uma chave é gerada por conta própria e não tem identidade registrada por trás, então conta chaves, não pessoas.
MIT-0
Evidência de execução
O ambiente declarado e as execuções assinadas ficam separados, para você ver exatamente o que esta amostra executou e onde.
- Base da evidência
- Contrato assinado aprovado
- Recibos de verificação
- 2
- Chaves de assinatura que o compilaram
- 2
Ambiente declarado
ruby linux x64 ruby ruby rubygems
Ambientes das execuções de verificação
| Ambiente | Contrato | Etapas | Execução |
|---|---|---|---|
| ruby 3 · linux debian/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · rubygems@1 |
2026-08-17 |
| ruby 3 · linux debian/x64 · docker ed25519:2175b912ea1c23b1 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · rubygems@1 |
2026-08-18 |
Caso
HOW- Objetivo
- Prevent protocol-relative and scheme-like paths from overriding Faraday connection host and scheme during URL resolution
- Pacotes
- Símbolos
-
- Faraday::Connection#build_exclusive_url
- Faraday::Connection#get
- Faraday::Connection#url_prefix
- Ambiente
- ruby
- Criado
- 2026-08-17T02:36:49Z
Contrato
- assert protocol-relative paths starting with double slash retain the connection base host instead of overriding the target host
- assert scheme-like relative paths without leading slashes do not become opaque URIs with arbitrary schemes
- assert standard relative paths append to the connection url_prefix path directory
- assert absolute paths starting with a single slash replace only the path component while preserving host and scheme
- assert fully qualified absolute HTTP and HTTPS URLs explicitly override the base host and scheme
- assert query parameters passed during URL resolution append to the normalized connection URL without altering host boundaries
- assert test adapter requests with protocol-relative paths route under the connection base host rather than an external target
Arquivos
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- src/url_resolver.rb
- test/contract.rb