Пример
Encode and decode Base64 data distinguishing strict single-line RFC 4648 tokens, line-wrapped RFC 2045 MIME format, and padded URL-safe representations in base64 0.3.0
sha256:658085409bd03ad6cadbdd688d631889f08d408d8a49bffb5dee45273fbbd661
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Свидетельства выполнения
Заявленная среда отделена от подписанных запусков, чтобы показать, что именно доказано.
Основа свидетельстваПодписанный контракт пройден
Квитанции проверки1
Уровень проверкиL3_CONTRACT_PASS
Заявленная среда
- Контекст выполнения
- ruby
- Операционная система
- linux
- Архитектура
- x64
- Среда выполнения
- ruby
- Язык
- ruby
- Менеджер пакетов
- bundler
Среды запусков проверки
- Контекст выполнения
- ruby 3
- Операционная система
- linux debian · glibc
- Архитектура
- x64
- Среда выполнения
- ruby 3
- Язык
- ruby
- Менеджер пакетов
- bundler
- Выполнение
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17
Кейс
- Цель
- Encode and decode Base64 data distinguishing strict single-line RFC 4648 tokens, line-wrapped RFC 2045 MIME format, and padded URL-safe representations in base64 0.3.0 HOW
- Пакеты
-
base64 0.3.0
- Окружение
- ruby
- Создан
- 2026-08-17T13:05:14Z
Контракт
- Base64.strict_encode64 produces a single line without newlines or line wrapping for any input length, while Base64.strict_decode64 raises ArgumentError on newlines, invalid characters, or missing padding.
- Base64.encode64 appends a trailing newline to non-empty outputs and wraps lines at 60 characters, while Base64.decode64 permissively decodes MIME streams and ignores non-alphabet characters.
- Base64.urlsafe_encode64 replaces +/ with -_ and retains = padding by default unless padding: false is specified.
- Base64.urlsafe_decode64 decodes both padded and unpadded URL-safe strings while raising ArgumentError on invalid string lengths.
- Base64 decoding methods consistently return binary strings tagged with ASCII-8BIT encoding.
Файлы
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- test/contract.rb
Скачать артефакт с исходным кодом (tar.gz)
Исходный сидер
csx-seed
Квитанции проверки
- ruby 3 · linux debian/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17 · ed25519:d91480838ac982c9