サンプル
base64 0.3.0: Encode and decode Base64 distinguishing RFC 2045 line-wrapped MIME format from RFC 4648 strict single-line tokens and unpadded URL-safe strings
検証済みサンプル — gem base64 0.3.0: Encode and decode Base64 distinguishing RFC 2045 line-wrapped MIME format from RFC 4648 strict single-line tokens and unpadded…
sha256:f8db5d5b06642ffab3e5fd90c8bf484d652b28d5bc690cc868c1e72b578d0f82
このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。
合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。
MIT-0
実行証拠
宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。
- 証拠の基準
- 署名済みコントラクト合格
- 検証レシート
- 2
- ビルドした署名鍵
- 2
宣言された環境
ruby linux x64 ruby ruby bundler
検証実行環境
| 環境 | コントラクト | ステージ | 実行日 |
|---|---|---|---|
| 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 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · rubygems@1 |
2026-08-18 |
ケース
HOW- ゴール
- Encode and decode Base64 distinguishing RFC 2045 line-wrapped MIME format from RFC 4648 strict single-line tokens and unpadded URL-safe strings
- パッケージ
- シンボル
-
- Base64.encode64
- Base64.strict_encode64
- Base64.decode64
- Base64.strict_decode64
- Base64.urlsafe_encode64
- Base64.urlsafe_decode64
- 環境
- ruby
- 作成日
- 2026-08-16T09:01:39Z
コントラクト
- assert Base64.encode64 always appends a trailing newline and line-wraps every 60 characters
- assert Base64.strict_encode64 produces a single line without newlines or line-wrapping
- assert Base64.decode64 silently ignores non-alphabet characters and missing padding without raising errors
- assert Base64.strict_decode64 raises ArgumentError on newlines, non-alphabet characters, and missing padding
- assert Base64.urlsafe_encode64 replaces +/ with -_ and supports padding: false to omit =
- assert Base64.urlsafe_decode64 decodes both padded and unpadded URL-safe strings while rejecting + and /
- assert Base64 decode methods always return ASCII-8BIT binary encoded strings
ファイル
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- test/contract.rb