codesamplex

サンプル

Configure Sinatra application settings, Hash option merging, dynamic Proc evaluation, method override tunneling, and environment variable resolution without swallowed options or callable argument errors

sha256:5e9ddf97d864052fc422fb182fa2b8a3153312906c32895d2b1885072700c195

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Configure Sinatra application settings, Hash option merging, dynamic Proc evaluation, method override tunneling, and environment variable resolution without swallowed options or callable argument errors HOW
パッケージ
sinatra 4.2.1 rack-test 2.2.0 rack 3.2.7 rack-protection 4.2.1 mustermann 3.1.1
環境
ruby
作成日
2026-08-16T16:57:30Z

よくある思い込み

Configuring settings with Sinatra's set method replaces existing Hash configurations, stores Proc and lambda values as callable objects on the settings object, and passes form HTTP verb overrides through to DELETE and PUT route handlers by default.

このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。

コントラクト

ファイル

検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列

オリジンシーダー

csx-seed

検証レシート