{"id":13877996,"url":"https://github.com/comma-csv/comma","last_synced_at":"2026-05-17T08:14:35.905Z","repository":{"id":507129,"uuid":"134623","full_name":"comma-csv/comma","owner":"comma-csv","description":"Comma is a small CSV (ie. comma separated values) generation extension for Ruby objects, that lets you seamlessly define a CSV output format via a small DSL","archived":false,"fork":false,"pushed_at":"2024-10-28T18:30:25.000Z","size":489,"stargazers_count":514,"open_issues_count":5,"forks_count":77,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-04-30T20:06:47.215Z","etag":null,"topics":["csv","ruby"],"latest_commit_sha":null,"homepage":"https://github.com/comma-csv/comma","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/comma-csv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2009-02-22T10:53:16.000Z","updated_at":"2026-02-20T11:19:36.000Z","dependencies_parsed_at":"2023-02-10T17:00:52.016Z","dependency_job_id":"e8e14ea4-ae72-41ba-84d1-abf3e47dad6d","html_url":"https://github.com/comma-csv/comma","commit_stats":{"total_commits":294,"total_committers":39,"mean_commits":7.538461538461538,"dds":0.653061224489796,"last_synced_commit":"0f639466331e6cb5ca62e83ed7f2974c717264eb"},"previous_names":[],"tags_count":40,"template":false,"template_full_name":null,"purl":"pkg:github/comma-csv/comma","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comma-csv%2Fcomma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comma-csv%2Fcomma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comma-csv%2Fcomma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comma-csv%2Fcomma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/comma-csv","download_url":"https://codeload.github.com/comma-csv/comma/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comma-csv%2Fcomma/sbom","scorecard":{"id":300759,"data":{"date":"2025-08-11","repo":{"name":"github.com/comma-csv/comma","commit":"0f639466331e6cb5ca62e83ed7f2974c717264eb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Code-Review","score":1,"reason":"Found 1/10 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/comma-csv/comma/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/comma-csv/comma/build.yml/master?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: MIT-LICENSE:0","Info: FSF or OSI recognized license: MIT License: MIT-LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-2rxp-v6pw-ch6m","Warn: Project is vulnerable to: GHSA-4xqq-m2hx-25v8","Warn: Project is vulnerable to: GHSA-5866-49gr-22v4","Warn: Project is vulnerable to: GHSA-r55c-59qm-vjw6","Warn: Project is vulnerable to: GHSA-vmwr-mc7x-5vc3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T20:34:25.097Z","repository_id":507129,"created_at":"2025-08-17T20:34:25.097Z","updated_at":"2025-08-17T20:34:25.097Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32862091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"ssl_error","status_checked_at":"2026-05-10T13:40:02.145Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csv","ruby"],"created_at":"2024-08-06T08:01:37.043Z","updated_at":"2026-05-17T08:14:35.900Z","avatar_url":"https://github.com/comma-csv.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Comma\n\nA library for generating comma-separated values (CSV) from Ruby objects, arrays, and supported ORM collections.\n\n[![Gem Version](https://badge.fury.io/rb/comma.svg)](http://badge.fury.io/rb/comma) [![Build Status](https://github.com/comma-csv/comma/actions/workflows/build.yml/badge.svg)](https://github.com/comma-csv/comma/actions/workflows/build.yml) [![Code Climate](https://codeclimate.com/github/comma-csv/comma.svg)](https://codeclimate.com/github/comma-csv/comma)\n\n## Getting Started\n\n### Prerequisites\n\nYou need Ruby 3.0 or later.\n\nFor Rails / ActiveRecord integration, this repository is currently tested against ActiveRecord and Rails 6.0 through 7.1 on Ruby 3.0 through 3.4.\n\n### Installing\n\nComma is distributed as a gem, best installed via Bundler.\n\nInclude the gem in your Gemfile:\n\n```ruby\ngem 'comma', '~\u003e 4.9.0'\n```\n\nOr, if you want to live life on the edge, you can get master from the main comma repository:\n\n```ruby\ngem 'comma', git: 'https://github.com/comma-csv/comma.git'\n```\n\nThen, run `bundle install`.\n\n### Usage\n\nDefine a CSV format on your object with `comma`. Calling `to_comma` on a single object returns the row values, while calling it on an array or supported collection generates CSV output:\n\n```ruby\nclass User\n  attr_reader :first_name, :last_name\n\n  def initialize(first_name, last_name)\n    @first_name = first_name\n    @last_name = last_name\n  end\n\n  comma do\n    first_name\n    last_name\n    full_name 'Name'\n  end\n\n  def full_name\n    \"#{first_name} #{last_name}\".strip\n  end\nend\n\nuser = User.new('Ada', 'Lovelace')\nuser.to_comma\n# =\u003e [\"Ada\", \"Lovelace\", \"Ada Lovelace\"]\n\nusers = [User.new('Ada', 'Lovelace'), User.new('Grace', 'Hopper')]\nusers.to_comma\n# =\u003e \"First name,Last name,Name\\nAda,Lovelace,Ada Lovelace\\nGrace,Hopper,Grace Hopper\\n\"\n```\n\nYou can also define named styles and select them when generating CSV:\n\n```ruby\nclass User\n  comma :short do\n    first_name\n    last_name\n  end\nend\n\nusers.to_comma(:short)\n```\n\nIn Rails controllers, requiring the gem registers `render csv:` support:\n\n```ruby\ndef index\n  render csv: User.all\nend\n```\n\nSee the [wiki](https://github.com/comma-csv/comma/wiki) for more usage examples.\n\n## Running the tests\n\nInstall dependencies:\n\n```sh\nbundle install\nbundle exec appraisal install\n```\n\nRun the default test suite and linter:\n\n```sh\nbundle exec rspec spec\nbundle exec rubocop -P\n```\n\nRun a single example:\n\n```sh\nbundle exec rspec spec/comma/comma_spec.rb:205\n```\n\nTo run the test suite across the Rails / ActiveRecord gemfile matrix, this repository uses [Appraisal](https://github.com/thoughtbot/appraisal):\n\n```sh\nbundle exec appraisal rake spec\n```\n\nYou can also run a specific spec under one appraisal:\n\n```sh\nbundle exec appraisal rails7.1.3 bundle exec rspec spec/controllers/users_controller_spec.rb\n```\n\n## Contributing\n\nPlease make sure `bundle exec rspec spec`, `bundle exec rubocop -P`, and any relevant `bundle exec appraisal ...` commands pass before opening a pull request.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/comma-csv/comma/tags).\n\n## Authors\n\n* Marcus Crafter - Initial work\n* Tom Meier - Initial work\n* Eito Katagiri\n\n## License\n\nThis project is licensed under the MIT License - see the [MIT-LICENSE](https://github.com/comma-csv/comma/blob/master/MIT-LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomma-csv%2Fcomma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomma-csv%2Fcomma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomma-csv%2Fcomma/lists"}