Exemplo
sinatra 4.2.1: Handle Sinatra halt response tuple argument parsing where two arguments treat a headers hash as the response body rather than response headers
Amostra verificada para gem sinatra 4.2.1: Handle Sinatra halt response tuple argument parsing where two arguments treat a headers hash as the response body…
sha256:e49ccc79a51fa124beeb5256802042512379cdffd9e50c5c2a25720e40eaac5e
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
- 1
Ambiente declarado
ruby linux x64 ruby ruby rubygems
Ambientes das execuções de verificação
| Ambiente | Contrato | Etapas | Execução |
|---|---|---|---|
| ruby 3 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · rubygems@1 |
2026-08-16 |
| ruby 3 · linux debian/x64 · docker ed25519:2175b912ea1c23b1 | SKIPPED | compile:SKIPPED · contract:SKIPPED · load:SKIPPED · resolve:FAIL CONTAINER_RUN · rubygems@1 |
2026-08-18 |
Caso
HOW- Objetivo
- Handle Sinatra halt response tuple argument parsing where two arguments treat a headers hash as the response body rather than response headers
- Pacotes
- Símbolos
-
- Sinatra::Base#halt
- Sinatra::Base#headers
- Ambiente
- ruby
- Criado
- 2026-08-16T16:58:46Z
Contrato
- assert halt with status code and hash assigns the hash to the response body and leaves headers unset
- assert halt with three arguments status, headers hash, and body string correctly sets both headers and body
- assert calling headers before halt status sets response headers with an empty body
- assert halt with single integer sets status with empty body
- assert halt with single string sets default status 200 and body
- assert halt with integer and string sets status and body
Arquivos
- Gemfile
- NOTES.md
- csx.json
- test/contract.rb