CodeSampleX

Sample

csv 3.2.2: CSV skip_blanks does not skip delimiter-only rows with custom col_sep

Verified sample for gem csv 3.2.2: CSV skip_blanks does not skip delimiter-only rows with custom col_sep. The contract ran on ruby 3 · linux debian/x64 …

sha256:626954f19000c4f5138f87e4cb2ea1eac1b97c5465cca1387b42e1d2d59eca8c

This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured. How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people. MIT-0

Execution evidence

The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.

Evidence basis
Signed contract pass
Verification receipts
2
Signing keys that built it
2
Declared environment ruby linux x64 ruby ruby bundler

Verification-run environments

Environment Contract Stages Run
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

Case

HOW
Goal
CSV skip_blanks does not skip delimiter-only rows with custom col_sep
Packages
Symbols
  • CSV.parse
Environment
ruby
Created
2026-08-17T02:36:09Z

Contract

  1. rows = CSV.parse(data, col_sep: '|', skip_blanks: true); raise 'expected three rows' unless rows.size == 3
  2. raise 'expected delimiter-only row to remain as nil fields' unless rows[1] == [nil, nil, nil]

Files

  • Gemfile
  • Gemfile.lock
  • csx.json
  • test/contract.rb

Download the source artifact (tar.gz)

Source

Gemfile
source 'https://rubygems.org'

gem 'csv', '3.2.2'
Gemfile.lock
GEM
  remote: https://rubygems.org/
  specs:
    csv (3.2.2)

PLATFORMS
  ruby
  x64-mingw-ucrt

DEPENDENCIES
  csv (= 3.2.2)

BUNDLED WITH
  4.0.18
csx.json
{"case":{"believed":"skip_blanks:true causes any row that contains no non‑separator characters to be omitted, even when the row consists solely of delimiters","caseId":"case:sha256:322264b62154e82ae1d4625c7d7939b723b15583510fb65d8a6029bdaf1bee14","contract":["rows = CSV.parse(data, col_sep: '|', skip_blanks: true); raise 'expected three rows' unless rows.size == 3","raise 'expected delimiter-only row to remain as nil fields' unless rows[1] == [nil, nil, nil]"],"goal":"CSV skip_blanks does not skip delimiter-only rows with custom col_sep","kind":"HOW","packages":["pkg:gem/csv@3.2.2"],"schemaVersion":1,"symbols":["CSV.parse"]},"contractCommand":["ruby","test/contract.rb"],"environment":{"arch":"x64","ecosystem":"gem","executionContext":"ruby","language":"ruby","os":"linux","packageManager":"bundler","runtime":"ruby","schemaVersion":1},"license":"MIT-0","packages":["pkg:gem/csv@3.2.2"],"schemaVersion":1,"symbols":["CSV.parse"],"verifierAdapter":"rubygems@1"}
test/contract.rb
# frozen_string_literal: true

require "csv"

data = "name|value\n||\nother|row\n"
rows = CSV.parse(data, col_sep: "|", skip_blanks: true)

raise "expected three rows" unless rows.size == 3
raise "expected delimiter-only row to remain as nil fields" unless rows[1] == [nil, nil, nil]

Origin Seeder

csx-seed